Comment 6 for bug 1175637

Revision history for this message
Daniel Hartwig (wigs) wrote : Re: [Bug 1175637] [NEW] Kernel updates are being marked as manually installed

On 3 May 2013 22:11, Steve J. <email address hidden> wrote:
> Unattended-upgrades does perform
> kernel updates, so it's likely installing/dist-upgrade-ing kernel upgrades as new
> packages (which must be why I'm seeing them as being marked 'manual').
>

Looks like an issue with unattended-upgrades (or possibly python-apt).
 It does not specifically install kernel packages, so the new package
('linux-image-3.2.0-41-generic' in the original message) must have
come as a dependency of upgrading 'linux-image-generic' or similar.
In that case, it must not be marked manually installed.

 affects ubuntu/unattended-upgrades

A cursory glance at the main parts of 'unattended-upgrade' did not
reveal any obvious errors, but it performs such heavy manipulation of
the depcache that a more detailed inspection is required.

Do the systems have either apt.conf option set:

- Unattended-Upgrades::MinimalSteps
- Unattended-Upgrade::MinimalSteps

> Do you have any suggestions for automatically flagging obsolete kernels as 'auto', or
> might it be worth adding a feature to the kernel cleanup to do this?
>

Markauto every kernel image as the cleanup script protects the most
relevent ones.

# apt-mark markauto linux-image.*

Although you will have to do that after every new kernel image is
installed, until the issue with upgrade-alternatives is resolved.