[Bug 1175637] [NEW] Kernel updates are being marked as manually installed

Steve J. 1175637 at bugs.launchpad.net
Fri May 3 12:24:31 UTC 2013


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!

-- 
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/1175637

Title:
  Kernel updates are being marked as manually installed

Status in “apt” package in Ubuntu:
  New

Bug description:
  Updates to the linux-image-* packages in Precise are being marked as
  "manually" installed, regardless of the auto/manual flag on the
  existing kernel packages. This happens when updating packages with
  apt, aptitude, or unattended-upgrades. I'm running an up-to-date
  12.04.2 LTS installed (amd64).

  I can see that my existing kernels were marked as automatically
  installed:

  % apt-mark showauto | grep linux-image
  linux-image-3.2.0-40-generic
  linux-image-generic

  And, after the update was performed by unattended-upgrades last night,
  the new kernel is marked manual:

  % apt-mark showmanual | grep linux-image
  linux-image-3.2.0-41-generic

  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.

  I'm running the following package versions:

  apt: 0.8.16~exp12ubuntu10.10
  aptitude: 0.8.16~exp12ubuntu10.10
  unattended-upgrades: 0.8.16~exp12ubuntu10.10
  aptdaemon: 0.43+bzr805-0ubuntu9

  This bug looks similar to
  https://bugs.launchpad.net/aptdaemon/+bug/1078544, however, I'm
  running a version of aptdaemon that supposedly has this fix applied.

  Please let me know if I can provide any other useful information.

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




More information about the foundations-bugs mailing list