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
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