[mantic] ppa-purge no longer purges what add-apt-repository adds
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
ppa-purge (Ubuntu) | Status tracked in Mantic | |||||
Mantic |
Triaged
|
High
|
Unassigned | |||
software-properties (Ubuntu) | Status tracked in Mantic | |||||
Mantic |
Confirmed
|
Undecided
|
Unassigned |
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/
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:/
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
tags: |
added: foundations-todo removed: rls-mm-incoming |
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.