News for hackers. Stuff that matters.
Re:Ask HN: What do you want to see in Ubuntu 17.10? by mrb on Friday March 31, 2017 @01:50PM (#14006224)
It's user error on your part. The proper way to upgrade a Debian/Ubuntu system is:

  $ apt-get dist-upgrade
  $ apt-get autoremove
dist-upgrade installs new kernels, and autoremove will automatically remove old kernels (and keep the last 2 most recent ones.)
Re:Ask HN: What do you want to see in Ubuntu 17.10? by lathiat on Saturday April 01, 2017 @04:49AM (#14011246)
I like to use apt-get dist-upgrade --auto-remove, all in one step. Though for kernels they will be removed on the next invocation after reboot as the default logic keeps the last installed kernel version as well as the current one.

As for the original issue of not cleaning up the kernels, this is fixed in xenial/16.04 but not in trusty/14.04, see bug report here: https://bugs.launchpad.net/ubuntu/+source/update-manager/+bu...

Re:Ask HN: What do you want to see in Ubuntu 17.10? by nightsky30 on Saturday April 01, 2017 @11:15AM (#14012511)
Xenial/16.04 has other issues regarding kernel cleanup involving DKMS leaving files behind:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=717584

https://bugs.launchpad.net/ubuntu/+source/dkms/+bug/1515513

Re:Ask HN: What do you want to see in Ubuntu 17.10? by edoloughlin on Friday March 31, 2017 @02:19PM (#14006486)
autoremove followed by dist-upgrade to 16.04 for me somehow decided to build multiple kernel versions and ran out of space on /boot mid build. That was really annoying to fix.
Re:Ask HN: What do you want to see in Ubuntu 17.10? by mrb on Saturday April 01, 2017 @02:49AM (#14010906)
There is a lot of confusion in this thread.

dist-upgrade is NOT (in most cases) meant to upgrade to a newer distribution (eg. Ubuntu 14.04 to 16.04). dist-upgrade is just like upgrade except it also installs additional packages if necessary (eg. linux-kernel-4.1 AND linux-kernel-4.2).

Most people should always run "apt-get dist-upgrade" and never "apt-get upgrade" in order to simply keep their packages up-to-date.

An actual distribution upgrade is triggered by a different command. On Ubuntu: do-release-upgrade

Re:Ask HN: What do you want to see in Ubuntu 17.10? by blacksmith_tb on Friday March 31, 2017 @08:37PM (#14009625)
dist-upgrade shouldn't try and move you to another release version, do-release-upgrade alone does that, as far as I know. Things get a little more confusing using apt update/upgrade vs. apt-get update/dist-upgrade, they don't seem to be quite the same in all cases for me. But I agree with the general frustration that it shouldn't be necessary to run apt(-get) autoremove frequently to keep /boot from filling up with old kernels.
Re:Ask HN: What do you want to see in Ubuntu 17.10? by mrb on Friday March 31, 2017 @08:13PM (#14009534)
Run autoremove after dist-upgrade.