Jarnos, I can confirm that your /etc/kernel/postinst.d/apt-auto-removal and adding the cron job resolves this problem. I installed the 4.3.0-5-generic kernel and rebooted and then manually purged the 4.3.0-1-generic and it gave some erroneous errors about not being able to find the DKMS modules to delete for that kernel. But after rebooting again there were no dkms modules and the 4.3.0-2-generic and 4.3.0-5-generic are all that are on my system.
Attached is the output of the error messages although the kernel and DKMS modules for 4.3.0-1-generic are confirmed to be gone. ** Attachment added: "output of manually deleting kernel 4.3.0-1-generic" https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1440608/+attachment/4544371/+files/kernel%204.3.0-1-generic%20removed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1440608 Title: /etc/kernel/postinst.d/apt-auto-removal wants to remove all kernels except the latest one To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1440608/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs