Created
January 25, 2015 12:44
-
-
Save gerjantd/6ada8e54c60400725e19 to your computer and use it in GitHub Desktop.
ubuntu apt-get update boot no space left on device
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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