Skip to content

Instantly share code, notes, and snippets.

@gerjantd
Created January 25, 2015 12:44
Show Gist options
  • Save gerjantd/6ada8e54c60400725e19 to your computer and use it in GitHub Desktop.
Save gerjantd/6ada8e54c60400725e19 to your computer and use it in GitHub Desktop.
ubuntu apt-get update boot no space left on device
sudo apt-get update
sudo apt-get upgrade
dpkg -l linux-image-\* | grep ^ii
kernelver=$(uname -r | sed -r 's/-[a-z]+//')
echo $kernelver
dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve $kernelver
sudo apt-get purge linux-image-3.13.0-{34,35,36,37,40}
sudo apt-get purge linux-headers-3.13.0-{34,35,36,37,40}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment