Skip to content

Instantly share code, notes, and snippets.

@CitizenOfRome
Created January 27, 2018 03:20
Show Gist options
  • Save CitizenOfRome/ec2014186ecacc47073f773a723ce299 to your computer and use it in GitHub Desktop.
Save CitizenOfRome/ec2014186ecacc47073f773a723ce299 to your computer and use it in GitHub Desktop.
To overcome the `gzip: stdout: No space left on device` /boot full errors on ubuntu
sudo dpkg --list 'linux-image*'|awk '{ if ($1=="ii") print $2}'|grep -vuname -r| while read -r line; do sudo apt-get -y purge $line;done;sudo apt-get autoremove; sudo update-grub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment