Comment 16 for bug 2036761

Revision history for this message
Norbert (nrbrtx) wrote :

Actually the bug is not fixed on Noble, the PPA is not removed:

```
$ sudo bash -x -c "export DEBIAN_FRONTEND=noninteractive; apt-get -qq update && apt-get -qq dist-upgrade > /dev/null && apt-get -qq install software-properties-common apt-utils gpg-agent ppa-purge > /dev/null || apt-get -qq install software-properties-common apt-utils ppa-purge > /dev/null ; apt-cache policy software-properties-common ppa-purge; add-apt-repository -y ppa:nrbrtx/xorg-hotkeys > /dev/null; apt-cache policy | grep -E 'http://ppa|https://ppa' ; ppa-purge ppa:nrbrtx/xorg-hotkeys; grep -irE 'http://ppa|https://ppa' /etc/apt; apt-cache policy | grep -E 'http://ppa|https://ppa'"
[sudo] password for n:
+ export DEBIAN_FRONTEND=noninteractive
+ DEBIAN_FRONTEND=noninteractive
+ apt-get -qq update
+ apt-get -qq dist-upgrade
Extracting templates from packages: 100%
+ apt-get -qq install software-properties-common apt-utils gpg-agent ppa-purge
+ apt-cache policy software-properties-common ppa-purge
software-properties-common:
  Installed: 0.99.46
  Candidate: 0.99.46
  Version table:
 *** 0.99.46 500
        500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu noble/main i386 Packages
        100 /var/lib/dpkg/status
ppa-purge:
  Installed: 0.2.8+bzr63-0ubuntu2
  Candidate: 0.2.8+bzr63-0ubuntu2
  Version table:
 *** 0.2.8+bzr63-0ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu noble/universe amd64 Packages
        500 http://archive.ubuntu.com/ubuntu noble/universe i386 Packages
        100 /var/lib/dpkg/status
+ add-apt-repository -y ppa:nrbrtx/xorg-hotkeys
+ apt-cache policy
+ grep -E 'http://ppa|https://ppa'
 500 https://ppa.launchpadcontent.net/nrbrtx/xorg-hotkeys/ubuntu noble/main i386 Packages
 500 https://ppa.launchpadcontent.net/nrbrtx/xorg-hotkeys/ubuntu noble/main amd64 Packages
+ ppa-purge ppa:nrbrtx/xorg-hotkeys
Updating packages lists
PPA to be removed: nrbrtx xorg-hotkeys
Package revert list generated:
 xserver-common/noble xserver-xorg-core/noble
xserver-xorg-legacy/noble

awk: not an option: -i
Updating packages lists
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Selected version '2:21.1.11-2ubuntu2ppa2' (PPA with patched xserver-xorg to fix bug 865:24.04/noble [all]) for 'xserver-common'
Selected version '2:21.1.11-2ubuntu2ppa2' (PPA with patched xserver-xorg to fix bug 865:24.04/noble [amd64]) for 'xserver-xorg-core'
Selected version '2:21.1.11-2ubuntu2ppa2' (PPA with patched xserver-xorg to fix bug 865:24.04/noble [amd64]) for 'xserver-xorg-legacy'
The following packages were automatically installed and are no longer required:
  cpdb-backend-cups cryptsetup
  cryptsetup-initramfs gir1.2-goa-1.0
  gsfonts irqbalance libatk-adaptor
  libbabeltrace1 libc6-dbg libcpdb-frontend2
  libcpdb2t64 libdebuginfod-common
  libecal-2.0-2 libipt2
  libmagickcore-6.q16-6
  libmagickcore-6.q16-6-extra
  libmagickwand-6.q16-6 libnetplan0
  libnsl-dev libperl5.36 libplist3
  libpython3.11 libpython3.11-minimal
  libpython3.11-stdlib
  libsource-highlight-common
  libsource-highlight4v5 libtirpc-dev
  libvpx8 numix-gtk-theme numix-icon-theme
  p7zip-full perl-modules-5.36
  python3-pyatspi python3.11
  python3.11-minimal
  ubuntu-mate-wallpapers-mantic
Use 'sudo apt autoremove' to remove them.
Suggested packages:
  xfonts-100dpi | xfonts-75dpi
The following packages will be upgraded:
  xserver-common xserver-xorg-core
  xserver-xorg-legacy
3 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Need to get 1546 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 https://ppa.launchpadcontent.net/nrbrtx/xorg-hotkeys/ubuntu noble/main amd64 xserver-common all 2:21.1.11-2ubuntu2ppa2 [33.0 kB]
Get:2 https://ppa.launchpadcontent.net/nrbrtx/xorg-hotkeys/ubuntu noble/main amd64 xserver-xorg-legacy amd64 2:21.1.11-2ubuntu2ppa2 [40.0 kB]
Get:3 https://ppa.launchpadcontent.net/nrbrtx/xorg-hotkeys/ubuntu noble/main amd64 xserver-xorg-core amd64 2:21.1.11-2ubuntu2ppa2 [1473 kB]
Fetched 1546 kB in 1s (2180 kB/s)
Preconfiguring packages ...
setting xserver-xorg-legacy/xwrapper/allowed_users from configuration file
(Reading database ... 321614 files and directories currently installed.)
Preparing to unpack .../xserver-common_2%3a21.1.11-2ubuntu2ppa2_all.deb ...
Unpacking xserver-common (2:21.1.11-2ubuntu2ppa2) over (2:21.1.11-2ubuntu1) ...
Preparing to unpack .../xserver-xorg-legacy_2%3a21.1.11-2ubuntu2ppa2_amd64.deb ...
Unpacking xserver-xorg-legacy (2:21.1.11-2ubuntu2ppa2) over (2:21.1.11-2ubuntu1) ...
Preparing to unpack .../xserver-xorg-core_2%3a21.1.11-2ubuntu2ppa2_amd64.deb ...
Unpacking xserver-xorg-core (2:21.1.11-2ubuntu2ppa2) over (2:21.1.11-2ubuntu1) ...
Setting up xserver-common (2:21.1.11-2ubuntu2ppa2) ...
Setting up xserver-xorg-legacy (2:21.1.11-2ubuntu2ppa2) ...
setting xserver-xorg-legacy/xwrapper/allowed_users from configuration file
Setting up xserver-xorg-core (2:21.1.11-2ubuntu2ppa2) ...
Processing triggers for man-db (2.12.0-4build1) ...
PPA purged successfully
+ grep -irE 'http://ppa|https://ppa' /etc/apt
/etc/apt/sources.list.d/nrbrtx-ubuntu-xorg-hotkeys-noble.sources:URIs: https://ppa.launchpadcontent.net/nrbrtx/xorg-hotkeys/ubuntu/
+ apt-cache policy
+ grep -E 'http://ppa|https://ppa'
 500 https://ppa.launchpadcontent.net/nrbrtx/xorg-hotkeys/ubuntu noble/main i386 Packages
 500 https://ppa.launchpadcontent.net/nrbrtx/xorg-hotkeys/ubuntu noble/main amd64 Packages
```

Also the bug is not fixed on Mantic even with package from proposed:

```
$ sudo bash -x -c "export DEBIAN_FRONTEND=noninteractive; apt-get -qq update && apt-get -qq dist-upgrade > /dev/null && apt-get -qq install software-properties-common apt-utils gpg-agent ppa-purge > /dev/null || apt-get -qq install software-properties-common apt-utils ppa-purge > /dev/null ; apt-cache policy software-properties-common ppa-purge; add-apt-repository -y ppa:nrbrtx/xorg-hotkeys > /dev/null; apt-cache policy | grep -E 'http://ppa|https://ppa' ; ppa-purge ppa:nrbrtx/xorg-hotkeys; grep -irE 'http://ppa|https://ppa' /etc/apt; apt-cache policy | grep -E 'http://ppa|https://ppa'"
+ export DEBIAN_FRONTEND=noninteractive
+ DEBIAN_FRONTEND=noninteractive
+ apt-get -qq update
+ apt-get -qq dist-upgrade
+ apt-get -qq install software-properties-common apt-utils gpg-agent ppa-purge
+ apt-cache policy software-properties-common ppa-purge
software-properties-common:
  Installed: 0.99.39
  Candidate: 0.99.39
  Version table:
 *** 0.99.39 500
        500 http://archive.ubuntu.com/ubuntu mantic/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu mantic/main i386 Packages
        100 /var/lib/dpkg/status
ppa-purge:
  Installed: 0.2.8+bzr63-0ubuntu1.23.10.1
  Candidate: 0.2.8+bzr63-0ubuntu1.23.10.1
  Version table:
 *** 0.2.8+bzr63-0ubuntu1.23.10.1 100
        100 http://archive.ubuntu.com/ubuntu mantic-proposed/universe amd64 Packages
        100 http://archive.ubuntu.com/ubuntu mantic-proposed/universe i386 Packages
        100 /var/lib/dpkg/status
     0.2.8+bzr63-0ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu mantic/universe amd64 Packages
        500 http://archive.ubuntu.com/ubuntu mantic/universe i386 Packages
+ add-apt-repository -y ppa:nrbrtx/xorg-hotkeys
+ grep -E 'http://ppa|https://ppa'
+ apt-cache policy
 500 https://ppa.launchpadcontent.net/nrbrtx/xorg-hotkeys/ubuntu mantic/main i386 Packages
 500 https://ppa.launchpadcontent.net/nrbrtx/xorg-hotkeys/ubuntu mantic/main amd64 Packages
+ 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

awk: not an option: -i
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.9ppa4).
xserver-common set to manually installed.
xserver-xorg-core is already the newest version (2:21.1.7-3ubuntu2.9ppa4).
xserver-xorg-core set to manually installed.
xserver-xorg-legacy is already the newest version (2:21.1.7-3ubuntu2.9ppa4).
xserver-xorg-legacy set to manually installed.
Selected version '2:21.1.7-3ubuntu2.9ppa4' (PPA with patched xserver-xorg to fix bug 865:23.10/mantic [all]) for 'xserver-common'
Selected version '2:21.1.7-3ubuntu2.9ppa4' (PPA with patched xserver-xorg to fix bug 865:23.10/mantic [amd64]) for 'xserver-xorg-core'
Selected version '2:21.1.7-3ubuntu2.9ppa4' (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
+ grep -irE 'http://ppa|https://ppa' /etc/apt
/etc/apt/sources.list.d/nrbrtx-ubuntu-xorg-hotkeys-mantic.sources:URIs: https://ppa.launchpadcontent.net/nrbrtx/xorg-hotkeys/ubuntu/
+ grep -E 'http://ppa|https://ppa'
+ apt-cache policy
 500 https://ppa.launchpadcontent.net/nrbrtx/xorg-hotkeys/ubuntu mantic/main i386 Packages
 500 https://ppa.launchpadcontent.net/nrbrtx/xorg-hotkeys/ubuntu mantic/main amd64 Packages
```

Please check your patches more carefully. You are breaking user experience.
The same commands work normally on all previous LTS releases - from 16.04 LTS to 22.04 LTS.