I think the problems can be worked around by the attached code by adding it to post-installation scripts such as apt-auto-removal, unattended- upgrades, update-notifier, zz-update-grub, but not in initramfs-tools or dkms.
** Attachment added: "code to add in probably all post-installation scripts except initramfs-tools and dkms to exit them before their job in case removing linux-image-extra" https://bugs.launchpad.net/ubuntu/+source/linux-lts-trusty/+bug/1501884/+attachment/4883533/+files/addition2 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1501884 Title: linux-image-extra-*-generic postrm script runs install actions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1501884/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
