Skip to content

Instantly share code, notes, and snippets.

@mgpradeepa
Last active May 13, 2022 11:47
Show Gist options
  • Save mgpradeepa/4d2d85a6bc9bc0e46d704ffa0e953041 to your computer and use it in GitHub Desktop.
Save mgpradeepa/4d2d85a6bc9bc0e46d704ffa0e953041 to your computer and use it in GitHub Desktop.
Its obvious to encounter boot space filled. Steps to clear it

** /boot folder gets filled up as and when upgrades are done. How to free it up **

Lets check by auto remove

sudo apt autoremove If the above does not remove old ones lets first check the current kernel thats being used

uname -r

Lists the current used kernel version. Lets remove the earlier versions of the kernel upgrades

if the current version is 15.11.8.* all prior versions can be removed

sudo rm /boot/*-5.11.18-{10,9}-*

upgrade if any broken packages

sudo dpkg --configure -a

sudo apt install -f

Once upgrade is successful, lets not forget to update grub

sudo update-grub

One last time lets update all once to be intact

sudo apt autoremove

sudo apt upgrade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment