Comment 5 for bug 2036761

Revision history for this message
Norbert (nrbrtx) wrote :

Below commands does nothing on freshly installed Ubuntu MATE 23.10, but worked for years before.

```
sudo add-apt-repository ppa:nrbrtx/xorg-hotkeys
...
sudo apt-get dist-upgrade
...
$ apt-cache policy $(dpkg -l | grep ppa1 | awk '{print $2}')
xserver-common:
  Installed: 2:21.1.7-3ubuntu2.2ppa1
  Candidate: 2:21.1.7-3ubuntu2.2ppa1
  Version table:
 *** 2:21.1.7-3ubuntu2.2ppa1 500
        500 https://ppa.launchpadcontent.net/nrbrtx/xorg-hotkeys/ubuntu mantic/main amd64 Packages
        500 https://ppa.launchpadcontent.net/nrbrtx/xorg-hotkeys/ubuntu mantic/main i386 Packages
        100 /var/lib/dpkg/status
     2:21.1.7-3ubuntu2.1 500
        500 http://archive.ubuntu.com/ubuntu mantic-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu mantic-updates/main i386 Packages
        500 http://security.ubuntu.com/ubuntu mantic-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu mantic-security/main i386 Packages
     2:21.1.7-3ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu mantic/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu mantic/main i386 Packages
xserver-xorg-core:
  Installed: 2:21.1.7-3ubuntu2.2ppa1
  Candidate: 2:21.1.7-3ubuntu2.2ppa1
  Version table:
 *** 2:21.1.7-3ubuntu2.2ppa1 500
        500 https://ppa.launchpadcontent.net/nrbrtx/xorg-hotkeys/ubuntu mantic/main amd64 Packages
        100 /var/lib/dpkg/status
     2:21.1.7-3ubuntu2.1 500
        500 http://archive.ubuntu.com/ubuntu mantic-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu mantic-security/main amd64 Packages
     2:21.1.7-3ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu mantic/main amd64 Packages
xserver-xorg-legacy:
  Installed: 2:21.1.7-3ubuntu2.2ppa1
  Candidate: 2:21.1.7-3ubuntu2.2ppa1
  Version table:
 *** 2:21.1.7-3ubuntu2.2ppa1 500
        500 https://ppa.launchpadcontent.net/nrbrtx/xorg-hotkeys/ubuntu mantic/main amd64 Packages
        100 /var/lib/dpkg/status
     2:21.1.7-3ubuntu2.1 500
        500 http://archive.ubuntu.com/ubuntu mantic-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu mantic-security/main amd64 Packages
     2:21.1.7-3ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu mantic/main amd64 Packages
...
sudo apt-get install ppa-purge

$ sudo ppa-purge ppa:nrbrtx/xorg-hotkeys
Updating packages lists
PPA to be removed: nrbrtx xorg-hotkeys
Package revert list generated:
 xserver-common/mantic xserver-xorg-core/mantic xserver-xorg-legacy/mantic

Updating packages lists
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
xserver-common is already the newest version (2:21.1.7-3ubuntu2.2ppa1).
xserver-xorg-core is already the newest version (2:21.1.7-3ubuntu2.2ppa1).
xserver-xorg-legacy is already the newest version (2:21.1.7-3ubuntu2.2ppa1).
Selected version '2:21.1.7-3ubuntu2.2ppa1' (PPA with patched xserver-xorg to fix bug 865:23.10/mantic [all]) for 'xserver-common'
Selected version '2:21.1.7-3ubuntu2.2ppa1' (PPA with patched xserver-xorg to fix bug 865:23.10/mantic [amd64]) for 'xserver-xorg-core'
Selected version '2:21.1.7-3ubuntu2.2ppa1' (PPA with patched xserver-xorg to fix bug 865:23.10/mantic [amd64]) for 'xserver-xorg-legacy'
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
PPA purged successfully

$ apt-cache policy $(dpkg -l | grep ppa1 | awk '{print $2}')
xserver-common:
  Installed: 2:21.1.7-3ubuntu2.2ppa1
  Candidate: 2:21.1.7-3ubuntu2.2ppa1
  Version table:
 *** 2:21.1.7-3ubuntu2.2ppa1 500
        500 https://ppa.launchpadcontent.net/nrbrtx/xorg-hotkeys/ubuntu mantic/main amd64 Packages
        500 https://ppa.launchpadcontent.net/nrbrtx/xorg-hotkeys/ubuntu mantic/main i386 Packages
        100 /var/lib/dpkg/status
     2:21.1.7-3ubuntu2.1 500
        500 http://archive.ubuntu.com/ubuntu mantic-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu mantic-updates/main i386 Packages
        500 http://security.ubuntu.com/ubuntu mantic-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu mantic-security/main i386 Packages
     2:21.1.7-3ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu mantic/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu mantic/main i386 Packages
xserver-xorg-core:
  Installed: 2:21.1.7-3ubuntu2.2ppa1
  Candidate: 2:21.1.7-3ubuntu2.2ppa1
  Version table:
 *** 2:21.1.7-3ubuntu2.2ppa1 500
        500 https://ppa.launchpadcontent.net/nrbrtx/xorg-hotkeys/ubuntu mantic/main amd64 Packages
        100 /var/lib/dpkg/status
     2:21.1.7-3ubuntu2.1 500
        500 http://archive.ubuntu.com/ubuntu mantic-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu mantic-security/main amd64 Packages
     2:21.1.7-3ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu mantic/main amd64 Packages
xserver-xorg-legacy:
  Installed: 2:21.1.7-3ubuntu2.2ppa1
  Candidate: 2:21.1.7-3ubuntu2.2ppa1
  Version table:
 *** 2:21.1.7-3ubuntu2.2ppa1 500
        500 https://ppa.launchpadcontent.net/nrbrtx/xorg-hotkeys/ubuntu mantic/main amd64 Packages
        100 /var/lib/dpkg/status
     2:21.1.7-3ubuntu2.1 500
        500 http://archive.ubuntu.com/ubuntu mantic-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu mantic-security/main amd64 Packages
     2:21.1.7-3ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu mantic/main amd64 Packages

$ grep ^deb -r /etc/apt --include=*.list
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu/ mantic main restricted
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu/ mantic-updates main restricted
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu/ mantic universe
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu/ mantic-updates universe
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu/ mantic multiverse
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu/ mantic-updates multiverse
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu/ mantic-backports main restricted universe multiverse
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu mantic-security main restricted
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu mantic-security universe
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu mantic-security multiverse

```

So PPA is not removed at all, packages are at their latest versions.
You have incosistency between APT database and real sources.list.

Do you really recommend to downgrade packages manually?
The PPA may contain LibreOffice, which is very hard to downgrade!

<angry-mode>
I was using Ubuntu since 6.06, so I believe I have reasonable authoritative opinion.

Really you are breaking PPAs culture by breaking ppa-purge.
This utility was created in 2009 year by Robert Hooker aka @sarvatt (see https://git.launchpad.net/ppa-purge/log/?ofs=50 and https://wiki.ubuntu.com/Sarvatt ). It worked great for years!
It was used very often along with Y PPA Manager (since 2010, see https://launchpad.net/~webupd8team/+archive/ubuntu/y-ppa-manager).
But for now ppa-purge is useless. So PPAs are becoming useless and in the long perspective this will mean a death of Ubuntu, thus people will use vanilla-blend Debian without bells and whistles.

Thank you, new-age programmers who forgot their own Ubuntu history!
Keep doing! Drop debs, put Snaps everywhere and make new Canonical Windows 11++.
</angry-mode>

Really, please rethink this problem and fix this bug along with bug 2037210 before 24.04 LTS release!