[Bug 2036761] Re: [mantic] ppa-purge no longer purges what add-apt-repository adds
Julian Andres Klode
2036761 at bugs.launchpad.net
Wed Sep 20 18:00:00 UTC 2023
ppa-purge is a pretty dangerous script to run due to the downgrade
functionality that we should be discouraging use of.
It can create systems that look like they have supported components only
but had everything messed up by downgrading from some PPA.
If the PPA added packages not available in other sources, removing them
is fine. But if downgrades are involved it should come with reasonably
strong warnings.
Generally speaking people should probably reinstall from scratch if they
added a PPA that replaced important system packages.
** Also affects: software-properties (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to software-properties in Ubuntu.
https://bugs.launchpad.net/bugs/2036761
Title:
[mantic] ppa-purge no longer purges what add-apt-repository adds
Status in ppa-purge package in Ubuntu:
Triaged
Status in software-properties package in Ubuntu:
New
Bug description:
Test Case
---------
From Ubuntu 23.10:
sudo apt install hello
sudo add-apt-repository ppa:jbicha/temp
sudo apt upgrade
apt policy hello
sudo ppa-purge ppa:jbicha/temp
apt policy hello
reveals that the PPA version of hello is still installed
Also /etc/apt/sources.list.d/jbicha-ubuntu-temp-mantic.sources
is still present and active
What Should Happen
------------------
ppa-purge should disable the PPA and reinstall any PPA packages with the version apt currently sees.
Background
----------
add-apt-repository creates deb822 sources lists, starting in Ubuntu 23.10
https://discourse.ubuntu.com/t/spec-apt-deb822-sources-by-
default/29333
Other Info
----------
add-apt-repository has a --remove option
But it does not do the reinstall part which is important
Honestly, that feature is so important, I suggest that add-apt-repository take over the functionality of ppa-purge so that we always get the ppa-purge behavior
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ppa-purge/+bug/2036761/+subscriptions
More information about the foundations-bugs
mailing list