If you don’t run a
sudo apt autoremovefrequently enough, the boot partition may become full, and then you won’t be able to remove old kernels. Generally make sure you run an autoremove after doing an upgrade, which will insure that unneeded pacakgese are removed.
In order to remove old kernels and get the update process to succeed, you have to manually remove some old kernels. Do the following:
- Verify the current working kernel with
uname -rYou will want to make sure you don’t remove this kernel.
Get a list of all the kernels installed on the boot partition
dpkg --list 'linux-image*' | grep ^iiRemove the oldest by version number first:
sudo apt-get remove linux-image-VERSIONNow try running an autoremove
sudo apt autoremovehttps://askubuntu.com/questions/345588/what-is-the-safest-way-to-clean-up-boot-partition