Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 1019 Bytes

File metadata and controls

32 lines (26 loc) · 1019 Bytes

Cleaning up /boot of kernel images

If you don’t run a

sudo apt autoremove

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

You 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 ^ii

Remove the oldest by version number first:

sudo apt-get remove linux-image-VERSION

Now try running an autoremove

sudo apt autoremove

References:

https://askubuntu.com/questions/345588/what-is-the-safest-way-to-clean-up-boot-partition