[Bug 923876] Re: FR: Limit and clean-up kernel images and headers automatically

Jarno Suni 923876 at bugs.launchpad.net
Fri Feb 12 17:42:05 UTC 2016


As for apt, does the fix offered to this bug mean that you can upgrade by 
sudo apt-get dist-upgrade
and have no fear of /boot getting full?

Anyway, I suppose this method of upgrading will work now for the issue in Trusty and later:
sudo apt-get dist-upgrade --auto-remove --purge

sudo apt-get autoremove 
may also remove other packages besides old kernels and related packages, but maybe that is not bad thing.

If I install a kernel manually by `apt-get install`, it will be marked
as "manual", and will not be removed by `apt-get autoremove`, unless I
run `apt-mark auto` for it first. Isn't is bad to skip removing any
manually installed kernels? Would it be better to skip only kernels
marked as "hold"?

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/923876

Title:
  FR: Limit and clean-up kernel images and headers automatically

Status in apt package in Ubuntu:
  Fix Released
Status in aptitude package in Ubuntu:
  Fix Released
Status in apt source package in Precise:
  Fix Released
Status in aptitude source package in Precise:
  Confirmed
Status in apt source package in Quantal:
  Fix Released
Status in aptitude source package in Quantal:
  Won't Fix

Bug description:
  Question #186146 is one among multiple where user unintentionally collects multiple kernel images in particular with LTS. There is no hint from relevant package management application GUIs which advise to clean up those images. With future LTS support of five years the issue presumable will extend.
  Expected.
  After installation of a newer kernel image ask the user if previous kernel images should be removed.
  Checkbox: yes - no
  If yes, offer a list of installed kernel images, don't list the one booted. Advise to keep at least the last functional one.
  Also remove -headers.

  Perhaps an additional consideration for the blueprint.
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-lts-upgrades

  There is a new Quantal blueprint regarding the subject.
  https://blueprints.launchpad.net/ubuntu/+spec/desktop-q-clean-old-kernels

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/923876/+subscriptions



More information about the foundations-bugs mailing list