Public bug reported: I noticed that apt autoremove stopped removing old kernels recently. Currently I have 6 installed and apt autoremove does not try to remove old ones:
$ sudo apt autoremove --purge Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. In /etc/apt/apt.conf.d/01autoremove-kernels it is said to only keep last three versions: # list of different kernel versions: 4.15.0-24.26~16.04.1 4.15.0-23.25~16.04.1 4.15.0-22.24~16.04.1 4.15.0-15.16~16.04.1 4.13.0-45.50~16.04.1 4.13.0-43.48~16.04.1 # Installing kernel: 4.13.0-45.50~16.04.1 (4.13.0-45-generic) # Running kernel: 4.15.0-23.25~16.04.1 (4.15.0-23-generic) # Last kernel: 4.15.0-24.26~16.04.1 # Previous kernel: 4.15.0-23.25~16.04.1 # Kernel versions list to keep: 4.13.0-45.50~16.04.1 4.15.0-23.25~16.04.1 4.15.0-24.26~16.04.1 # Kernel packages (version part) to protect: 4\.13\.0-45-generic 4\.15\.0-23-generic 4\.15\.0-24-generic It was working fine previously and I didn't change anything that could break this functionality. ProblemType: Bug DistroRelease: Ubuntu 16.04 Package: apt 1.2.26 ProcVersionSignature: Ubuntu 4.15.0-24.26~16.04.1-generic 4.15.18 Uname: Linux 4.15.0-24-generic x86_64 ApportVersion: 2.20.1-0ubuntu2.18 Architecture: amd64 CurrentDesktop: Unity Date: Mon Jul 2 14:12:03 2018 InstallationDate: Installed on 2018-01-19 (164 days ago) InstallationMedia: Ubuntu 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801) SourcePackage: apt UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: apt (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug xenial ** Summary changed: - apt autoremove not removing old 4.15 kernels + apt autoremove not removing old kernels -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1779657 Title: apt autoremove not removing old kernels To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1779657/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs