News for hackers. Stuff that matters.
Re:Ask HN: What do you want to see in Ubuntu 17.10? by amarant on Friday March 31, 2017 @11:16AM (#14004651)
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-kern...

Re:Ask HN: What do you want to see in Ubuntu 17.10? by alphapapa on Friday March 31, 2017 @05:49PM (#14008626)
That'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".