Advertisement
Guest User

Untitled

a guest
Oct 17th, 2020
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. someone here once told me to
  2. "df -h"
  3. "df -i"
  4. and then
  5. "sudo apt-get autoremove && sudo apt-get autoclean".
  6. and then
  7. "dpkg -l | grep linux-headers" and put that into a pastebin
  8. and then
  9. "sudo rm -rf /usr/src/linux-headers-3.13.0-4*"
  10. and then
  11. "df -h" and -i again
  12. and then
  13. "sudo apt-get install -f"
  14. and then
  15. "echo $(dpkg --list | grep linux-image | awk '{ print $2 }' | sort -V | sed -n '/'`uname -r`'/q;p') $(dpkg --list | grep linux-headers | awk '{ print $2 }' | sort -V | sed -n '/'"$(uname -r | sed "s/\([0-9.-]*\)-\([^0-9]\+\)/\1/")"'/q;p') | xargs sudo apt-get -y purge"
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement