Public bug reported: Ubuntu 18.04.3 (LXLE 18.04.3) i386 "apt -y autoremove --purge" Expected Behavior: Remove old kernels, except running kernel and 2nd most recent kernel. Observed Behavior: Removes all kernels except running kernel. Well, itat least warns before removing the running kernel. Other notes: apt config file "/etc/apt/apt.conf.d/01autoremove-kernels" contains no data for the section APT::NeverAutoRemove. There are just the empty braces. Executable file "/etc/kernel/postinst.d/apt-auto-removal" seems to want a configuration file containing a section with APT:VersionedKernelPackages, but there is none. I created a file "/etc/apt/apt.conf.d/200versiondkernelpackages" which seemed to solve the problem for me. It may not be the general solution.
** Affects: apt (Ubuntu) Importance: Undecided Status: New ** Attachment added: "200versionedkernelpackages" https://bugs.launchpad.net/bugs/1883195/+attachment/5383123/+files/200versionedkernelpackages -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1883195 Title: apt autoremove config file for VersionedKernelPackages To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1883195/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs