Jarno, I did notice that those commands were in the original script after I 
posted that.
I got the 4.3.0-6-generic installed in Xubuntu 16.04 just a while ago and your 
script worked flawlessly.
I had 3 kernels: 4.3.0-2-generic, 4.3.0-5-generic and 4.3.0-6-generic after 
installation and the 01autoremove-kernels file contained just the last 2 both 
before and after rebooting. The output is attached

** Attachment added: "01autoremove-kernels contents"
   
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1440608/+attachment/4553589/+files/01autoremove-kernels%20after%204.3.0-6-generic%20installed%20as%20well%20as%20after%20reboot

-- 
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/hundredpapercuts/+bug/1440608/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to