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

Daniel Hartwig 923876 at bugs.launchpad.net
Sun Sep 16 00:56:08 UTC 2012

APT has good reason to not autoremove kernels, why you want to break

You want *some* process to reap old kernels, ok, but that does not
mean that the core package manager should be that process.  The
selection of which kernels to clean up is domain-specific.  Determine
such a list external to apt and use apt-get remove (not autoremove) to

At the very least, if you insist on using markauto + autoremove, do
not make this the default.  Your external process should invoke apt
with a custom configuration where APT::NeverAutoRemove does not
contain the entries blocking the desired autoremoval.  Use APT_CONFIG
envvar and/or apt-get -c.

You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.

  FR: Limit and clean-up kernel images and headers automatically in LTS

Status in “apt” package in Ubuntu:

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.
  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.

  There is a new Quantal blueprint regarding the subject.

To manage notifications about this bug go to:

More information about the foundations-bugs mailing list