2022-05-20 15:03:22 |
David Röthlisberger |
bug |
|
|
added bug |
2022-05-20 16:00:20 |
Julian Andres Klode |
nominated for series |
|
Ubuntu Focal |
|
2022-05-20 16:00:20 |
Julian Andres Klode |
bug task added |
|
apt (Ubuntu Focal) |
|
2022-05-20 16:00:20 |
Julian Andres Klode |
nominated for series |
|
Ubuntu Bionic |
|
2022-05-20 16:00:20 |
Julian Andres Klode |
bug task added |
|
apt (Ubuntu Bionic) |
|
2022-05-23 08:55:39 |
Launchpad Janitor |
apt (Ubuntu): status |
New |
Confirmed |
|
2022-05-23 08:55:39 |
Launchpad Janitor |
apt (Ubuntu Bionic): status |
New |
Confirmed |
|
2022-05-23 08:55:39 |
Launchpad Janitor |
apt (Ubuntu Focal): status |
New |
Confirmed |
|
2022-05-23 11:30:51 |
Julian Andres Klode |
description |
#1968154 removed `/etc/kernel/postinst.d/apt-auto-removal` in this patch:
https://git.launchpad.net/ubuntu/+source/apt/commit/?id=f9d2d993687c0d5223c241956ef6a0aabcf15bf0
...but `apt.postinst` still tries to run it:
# create kernel autoremoval blacklist on update
if dpkg --compare-versions "$2" lt 0.9.9.3; then
/etc/kernel/postinst.d/apt-auto-removal
fi
If I understand correctly, "$2" is the most-recently-configured-version, and if it's empty `dpkg --compare-versions lt` will evaluate to true.
This fails when I'm building a focal (20.04) userspace from scratch:
$ dpkg --configure -a
[...]
Setting up apt (2.0.8) ...
/var/lib/dpkg/info/apt.postinst: 65: /etc/kernel/postinst.d/apt-auto-removal: not found
dpkg: error processing package apt (--configure):
installed apt package post-installation script subprocess returned error exit status 127
It works with apt 2.0.6. |
[Impact]
bootstrapping a system with apt that fixes #1968154 fails in focal and bionic, as they try to execute the config file that is being removed.
This is not a problem on updates, only on new installs, so impact is limited to bootstrapping tools that enable -updates, such as mmdebstrap.
[Test case]
bootstrapping with -updates enabled can easily be tested with mmdebstrap:
mmdebstrap -v focal ~/Projects/Ubuntu/Scratch/focal
for example, on focal:
Setting up apt (2.0.8) ...
/var/lib/dpkg/info/apt.postinst: 65: /etc/kernel/postinst.d/apt-auto-removal: not found
dpkg: error processing package apt (--configure):
installed apt package post-installation script subprocess returned error exit status 127
[Regression potential]
We remove 5 lines from the shell postinst script, there could be syntax errors? But then we'd see those during upgrades, so practically none.
[Original bug report]
#1968154 removed `/etc/kernel/postinst.d/apt-auto-removal` in this patch:
https://git.launchpad.net/ubuntu/+source/apt/commit/?id=f9d2d993687c0d5223c241956ef6a0aabcf15bf0
...but `apt.postinst` still tries to run it:
# create kernel autoremoval blacklist on update
if dpkg --compare-versions "$2" lt 0.9.9.3; then
/etc/kernel/postinst.d/apt-auto-removal
fi
If I understand correctly, "$2" is the most-recently-configured-version, and if it's empty `dpkg --compare-versions lt` will evaluate to true.
This fails when I'm building a focal (20.04) userspace from scratch:
$ dpkg --configure -a
[...]
Setting up apt (2.0.8) ...
/var/lib/dpkg/info/apt.postinst: 65: /etc/kernel/postinst.d/apt-auto-removal: not found
dpkg: error processing package apt (--configure):
installed apt package post-installation script subprocess returned error exit status 127
It works with apt 2.0.6. |
|
2022-05-24 02:15:57 |
Gary Chapman |
bug |
|
|
added subscriber Gary Chapman |
2022-05-24 15:31:26 |
Yuta Higuchi |
bug |
|
|
added subscriber Yuta Higuchi |
2022-05-30 20:25:59 |
Błażej Sowa |
bug |
|
|
added subscriber Błażej Sowa |
2022-06-01 01:44:46 |
Chris Halse Rogers |
apt (Ubuntu Focal): status |
Confirmed |
Fix Committed |
|
2022-06-01 01:44:48 |
Chris Halse Rogers |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2022-06-01 01:44:50 |
Chris Halse Rogers |
bug |
|
|
added subscriber SRU Verification |
2022-06-01 01:44:57 |
Chris Halse Rogers |
tags |
|
verification-needed verification-needed-focal |
|
2022-06-14 09:46:22 |
Julian Andres Klode |
tags |
verification-needed verification-needed-focal |
verification-done verification-done-focal |
|
2022-06-14 21:33:15 |
Launchpad Janitor |
apt (Ubuntu Focal): status |
Fix Committed |
Fix Released |
|
2022-06-14 21:33:18 |
Brian Murray |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2022-08-08 08:51:49 |
Łukasz Zemczak |
apt (Ubuntu Bionic): status |
Confirmed |
Fix Committed |
|
2022-08-08 08:51:52 |
Łukasz Zemczak |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2022-08-08 08:51:56 |
Łukasz Zemczak |
tags |
verification-done verification-done-focal |
verification-done-focal verification-needed verification-needed-bionic |
|
2022-08-08 13:24:34 |
Julian Andres Klode |
tags |
verification-done-focal verification-needed verification-needed-bionic |
verification-done verification-done-bionic verification-done-focal |
|
2022-09-14 05:21:19 |
Chris Halse Rogers |
tags |
verification-done verification-done-bionic verification-done-focal |
verification-done-focal verification-needed verification-needed-bionic |
|
2022-09-19 13:38:15 |
Julian Andres Klode |
tags |
verification-done-focal verification-needed verification-needed-bionic |
verification-done verification-done-bionic verification-done-focal |
|
2022-09-20 17:02:48 |
Brian Murray |
apt (Ubuntu Bionic): importance |
Undecided |
High |
|
2023-04-12 06:58:38 |
Launchpad Janitor |
apt (Ubuntu Bionic): status |
Fix Committed |
Fix Released |
|