Kernel updates are being marked as manually installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
unattended-upgrades (Ubuntu) |
Fix Released
|
High
|
Unassigned |
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-
I can see that my existing kernels were marked as automatically installed:
% apt-mark showauto | grep linux-image
linux-image-
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-
This is a problem, because it renders the fix in this bug, https:/
I'm running the following package versions:
apt: 0.8.16~
aptitude: 0.8.16~
unattended-
aptdaemon: 0.43+bzr805-
This bug looks similar to https:/
Please let me know if I can provide any other useful information.
Changed in unattended-upgrades (Ubuntu): | |
importance: | Undecided → High |
Changed in apt (Ubuntu): | |
status: | Confirmed → Fix Released |
Changed in unattended-upgrades (Ubuntu): | |
status: | Confirmed → Fix Released |
On 2 May 2013 22:57, Steve J. <email address hidden> wrote: upgrades. I'm running an up-to-date 12.04.2 LTS installed
> Public bug reported:
>
> 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-
> (amd64).
>
The most recent kernel image (or was that active?) is marked manual,
and others are auto.
> I can see that my existing kernels were marked as automatically 3.2.0-40- generic 3.2.0-41- generic
> installed:
>
> % apt-mark showauto | grep linux-image
> linux-image-
> 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-
>
This is exactly the behaviour expected by:
> This is a problem, because it renders the fix in this bug, /bugs.launchpad .net/ubuntu/ +source/ apt/+bug/ 923876 (Limit and
> https:/
> 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.