Public bug reported: Ubuntu 20.10 Apt version 2.1.10ubuntu0.2
Here the content of /etc/apt/01autoremove-kernels: // DO NOT EDIT! File autogenerated by /etc/kernel/postinst.d/apt-auto-removal APT::NeverAutoRemove { "^linux-.*-5\.8\.0-40-lowlatency$"; "^linux-.*-5\.8\.0-41-lowlatency$"; "^kfreebsd-.*-5\.8\.0-40-lowlatency$"; "^kfreebsd-.*-5\.8\.0-41-lowlatency$"; "^gnumach-.*-5\.8\.0-40-lowlatency$"; "^gnumach-.*-5\.8\.0-41-lowlatency$"; "^.*-modules-5\.8\.0-40-lowlatency$"; "^.*-modules-5\.8\.0-41-lowlatency$"; "^.*-kernel-5\.8\.0-40-lowlatency$"; "^.*-kernel-5\.8\.0-41-lowlatency$"; }; /* Debug information: # dpkg list: rc linux-image-5.8.0-25-lowlatency 5.8.0-25.26 amd64 Signed kernel image lowlatency rc linux-image-5.8.0-29-lowlatency 5.8.0-29.31 amd64 Signed kernel image lowlatency rc linux-image-5.8.0-31-lowlatency 5.8.0-31.33 amd64 Signed kernel image lowlatency rc linux-image-5.8.0-33-lowlatency 5.8.0-33.36 amd64 Signed kernel image lowlatency rc linux-image-5.8.0-34-lowlatency 5.8.0-34.37 amd64 Signed kernel image lowlatency rc linux-image-5.8.0-36-lowlatency 5.8.0-36.40 amd64 Signed kernel image lowlatency ii linux-image-5.8.0-38-lowlatency 5.8.0-38.43 amd64 Signed kernel image lowlatency ii linux-image-5.8.0-40-lowlatency 5.8.0-40.45 amd64 Signed kernel image lowlatency iF linux-image-5.8.0-41-lowlatency 5.8.0-41.46 amd64 Signed kernel image lowlatency ii linux-image-lowlatency 5.8.0.41.45 amd64 lowlatency Linux kernel image # list of installed kernel packages: 5.8.0-38-lowlatency 5.8.0-38.43 5.8.0-40-lowlatency 5.8.0-40.45 5.8.0-41-lowlatency 5.8.0-41.46 # list of different kernel versions: 5.8.0-41.46 5.8.0-40.45 5.8.0-38.43 # Installing kernel: 5.8.0-41.46 (5.8.0-41-lowlatency) # Running kernel: 5.8.0-40.45 (5.8.0-40-lowlatency) # Last kernel: 5.8.0-41.46 # Previous kernel: 5.8.0-40.45 # Kernel versions list to keep: 5.8.0-40.45 5.8.0-41.46 # Kernel packages (version part) to protect: 5\.8\.0-40-lowlatency 5\.8\.0-41-lowlatency */ Running sudo apt autoremove results in: Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. It worked properly in previous versions of apt, but since upgrade to apt version 2.1.10ubuntu0.2 I seem to be unable to autoremove old kernels. I expect the kernel version 5.8.0-38.43 to be removed with the autoremove command. ** Affects: apt (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apt in Ubuntu. https://bugs.launchpad.net/bugs/1913571 Title: apt autoremove does not remove old kernel Status in apt package in Ubuntu: New Bug description: Ubuntu 20.10 Apt version 2.1.10ubuntu0.2 Here the content of /etc/apt/01autoremove-kernels: // DO NOT EDIT! File autogenerated by /etc/kernel/postinst.d/apt-auto-removal APT::NeverAutoRemove { "^linux-.*-5\.8\.0-40-lowlatency$"; "^linux-.*-5\.8\.0-41-lowlatency$"; "^kfreebsd-.*-5\.8\.0-40-lowlatency$"; "^kfreebsd-.*-5\.8\.0-41-lowlatency$"; "^gnumach-.*-5\.8\.0-40-lowlatency$"; "^gnumach-.*-5\.8\.0-41-lowlatency$"; "^.*-modules-5\.8\.0-40-lowlatency$"; "^.*-modules-5\.8\.0-41-lowlatency$"; "^.*-kernel-5\.8\.0-40-lowlatency$"; "^.*-kernel-5\.8\.0-41-lowlatency$"; }; /* Debug information: # dpkg list: rc linux-image-5.8.0-25-lowlatency 5.8.0-25.26 amd64 Signed kernel image lowlatency rc linux-image-5.8.0-29-lowlatency 5.8.0-29.31 amd64 Signed kernel image lowlatency rc linux-image-5.8.0-31-lowlatency 5.8.0-31.33 amd64 Signed kernel image lowlatency rc linux-image-5.8.0-33-lowlatency 5.8.0-33.36 amd64 Signed kernel image lowlatency rc linux-image-5.8.0-34-lowlatency 5.8.0-34.37 amd64 Signed kernel image lowlatency rc linux-image-5.8.0-36-lowlatency 5.8.0-36.40 amd64 Signed kernel image lowlatency ii linux-image-5.8.0-38-lowlatency 5.8.0-38.43 amd64 Signed kernel image lowlatency ii linux-image-5.8.0-40-lowlatency 5.8.0-40.45 amd64 Signed kernel image lowlatency iF linux-image-5.8.0-41-lowlatency 5.8.0-41.46 amd64 Signed kernel image lowlatency ii linux-image-lowlatency 5.8.0.41.45 amd64 lowlatency Linux kernel image # list of installed kernel packages: 5.8.0-38-lowlatency 5.8.0-38.43 5.8.0-40-lowlatency 5.8.0-40.45 5.8.0-41-lowlatency 5.8.0-41.46 # list of different kernel versions: 5.8.0-41.46 5.8.0-40.45 5.8.0-38.43 # Installing kernel: 5.8.0-41.46 (5.8.0-41-lowlatency) # Running kernel: 5.8.0-40.45 (5.8.0-40-lowlatency) # Last kernel: 5.8.0-41.46 # Previous kernel: 5.8.0-40.45 # Kernel versions list to keep: 5.8.0-40.45 5.8.0-41.46 # Kernel packages (version part) to protect: 5\.8\.0-40-lowlatency 5\.8\.0-41-lowlatency */ Running sudo apt autoremove results in: Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. It worked properly in previous versions of apt, but since upgrade to apt version 2.1.10ubuntu0.2 I seem to be unable to autoremove old kernels. I expect the kernel version 5.8.0-38.43 to be removed with the autoremove command. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1913571/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp