Oh, you can do something now: you can set update-grub executable (found by command `which update-grub`) not executable by `sudo chmod -x` temporarily, and then remove the kernels, and then restore the state of the file by `sudo chmod +x` and finally run `sudo update-grub` manually. This is because /etc/kernel/postinst.d/zz-update-grub exits, if the executable is not found (at least in 14.04 and 16.04).
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1462596 Title: apt-get autoremove takes quadratically long To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1462596/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
