Tested in 16.04

Lower free space at /boot to 10MB by the following one-liner:

sudo dd if=/dev/zero of=/boot/tmpfile bs=1MB count=$(($(stat -f
--format="%f*%S" /boot)/1000000-10))

Then remove a linux-image-extra package by apt, e.g.

sudo apt purge linux-image-extra-4.10.0-19-generic

Check status of the package:

dpkg -l linux-image-extra-4.10.0-19-generic

(If you run

sudo apt purge linux-image-4.10.0-19-generic

There is an error, too, but the requested package will be removed.
Running 'sudo apt install' thereafter finishes removing the linux-image-
extra package.)

Remember to remove the created temporary file:

sudo rm /boot/tmpfile

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1678187

Title:
  Removing a linux-image-extra package fails, if /boot is about full

To manage notifications about this bug go to:
https://bugs.launchpad.net/initramfs-tools/+bug/1678187/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to