Comment 2 for bug 1175637

Revision history for this message
Stephen Jahl (sjahl) wrote : Re: [Bug 1175637] [NEW] Kernel updates are being marked as manually installed

On Fri, May 03, 2013 at 01:09:09AM -0000, Daniel Hartwig wrote:
> > This is a problem, because it renders the fix in this bug,
> > https://bugs.launchpad.net/ubuntu/+source/apt/+bug/923876 (Limit and
> > clean-up kernel images and headers automatically in LTS) ineffective,
> > since apt-get autoremove will not remove packages which are marked as
> > manually installed.
> >
>
> When the kernel image is upgraded again, 3.2.0-41 will be marked auto.
> The kernel cleanup hack works by putting the active kernel image
> outside of APTs autoremove system, i.e. to mark it manually installed.

I see, but that's not the behavior that I'm seeing (the host I picked to
use as an example wasn't a very good one, sorry). I'm seeing all the
kernel packages remaining marked manual, and they're never being marked
as auto after new updates.

The kernel cleanup isn't solely relying on auto/manual status, as it's
adding the appropriate kernel versions (iirc, 'active', latest, and
latest - 1) to the NeverAutoRemove clause in the 01autoremove-kernels
apt config.

So, long story short, I'm seeing lots of 'manually' installed kernels
pile up and fill /boot partitions :/

Thanks for taking the time to respond so quickly!