5 ms·
sounds like you're keeping too many old kernels, I've had this problem too in the past..try this nice little oneliner: dpkg --list | grep linux-image | awk '{ p
by amarant 10y ago
sounds like you're keeping too many old kernels, I've had this problem too in the past..try this nice little oneliner:
dpkg --list | grep linux-image | awk '{ print $2 }' | sort -V | sed -n '/'`uname -r`'/q;p' | xargs sudo apt-get -y purge
really, this is what your package manager should do automatically before/after installing new kernels
for your reference:
http://askubuntu.com/questions/2793/how-do-i-remove-old-kernel-versions-to-clean-up-the-boot-menu http://askubuntu.com/questions/2793/how-do-i-remove-old-kern...
- alphapapa 10y agoThat's not a good one liner, because it doesn't do anything about the linux-headers packages (which are hundreds of thousands of small files) or the linux-image-extra packages. Just run "apt-get autoremove".