autoremove kernel management leaves one single kernel

Bug #1446269 reported by nam1962
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
One Hundred Papercuts
Confirmed
High
Unassigned
apt (Ubuntu)
Confirmed
High
Unassigned

Bug Description

After a kernel upgrade, autoremove removes kernel -2
This is normal.
BUT :
If, a new update/full-upgrade is entered, apt suggests an autoremove for kernel -1
If one performs the autoremove, it leaves the system with a single kernel :

:~$ dpkg -l | grep -Ei "linux-headers|linux-image"
ii linux-headers-3.19.0-15 3.19.0-15.15 all Header files related to Linux kernel version 3.19.0
ii linux-headers-3.19.0-15-generic 3.19.0-15.15 amd64 Linux kernel headers for version 3.19.0 on 64 bit x86 SMP
ii linux-headers-generic 3.19.0.15.14 amd64 Generic Linux kernel headers
rc linux-image-3.19.0-13-generic 3.19.0-13.13 amd64 Linux kernel image for version 3.19.0 on 64 bit x86 SMP
rc linux-image-3.19.0-14-generic 3.19.0-14.14 amd64 Linux kernel image for version 3.19.0 on 64 bit x86 SMP
ii linux-image-3.19.0-15-generic 3.19.0-15.15 amd64 Linux kernel image for version 3.19.0 on 64 bit x86 SMP
rc linux-image-extra-3.19.0-13-generic 3.19.0-13.13 amd64 Linux kernel extra modules for version 3.19.0 on 64 bit x86 SMP
rc linux-image-extra-3.19.0-14-generic 3.19.0-14.14 amd64 Linux kernel extra modules for version 3.19.0 on 64 bit x86 SMP
ii linux-image-extra-3.19.0-15-generic 3.19.0-15.15 amd64 Linux kernel extra modules for version 3.19.0 on 64 bit x86 SMP
ii linux-image-generic 3.19.0.15.14 amd64 Generic Linux kernel image

By the way, autoremove also leaves a bunch of rc files that need to be wiped with :
dpkg --list |grep "^rc" | cut -d " " -f 3 | xargs sudo dpkg --purge

Having a single kernel is highly uneasy !

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: apt 1.0.9.7ubuntu4
ProcVersionSignature: Ubuntu 3.19.0-15.15-generic 3.19.3
Uname: Linux 3.19.0-15-generic x86_64
ApportVersion: 2.17.2-0ubuntu1
Architecture: amd64
CurrentDesktop: XFCE
Date: Mon Apr 20 16:52:14 2015
InstallationDate: Installed on 2015-02-07 (71 days ago)
InstallationMedia: Xubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
SourcePackage: apt
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
nam1962 (amauryat) wrote :
Revision history for this message
dino99 (9d9) wrote :

Two latest installed kernels are expected to be 'actual active' ones, not 'obsolete' like 'synaptic' shows. Or that setting should be set by the user depending on his wish.
This often happen with the devlopment ubuntu release, where there is not several kernels yet (genuine, proposed, security)

So voting to get 2 latest kernels not removed when 'autoremove' is ran.

Changed in apt (Ubuntu):
status: New → Confirmed
Revision history for this message
nam1962 (amauryat) wrote :

To add precision in my post, autoremove removes the image & image-extra of the n-1 kernel.

Changed in hundredpapercuts:
status: New → Confirmed
importance: Undecided → High
Changed in apt (Ubuntu):
importance: Undecided → High
Revision history for this message
jplemoine (untoutseul05) wrote :

I have the same problem. So I user no more auto-remove

Sometimes, you have to do a auto-remove (you try a software and uninstall it : there is some package what are not automatically remove)
So either, you have to do some apt-get purge to still have 2 kernels.
Either, you do the auto-remove and you have only one kernel.

Is-it possible to have 2 install kernels like in the beginning of the system of removing the olds kernels.

Revision history for this message
Adam Conrad (adconrad) wrote :

The "leaves conffiles behind" complaint is entirely unrelated, and solved by using "apt-get --purge autoremove"

Revision history for this message
Adam Conrad (adconrad) wrote :

As for the "single kernel" complaint, I'm a bit confused by your description, since that shows three kernels installed, not one. I am aware of situations on can get into that lead to only one kernel installed, but I'm not sure you're describing a scenario I know of.

Revision history for this message
nam1962 (amauryat) wrote :

..if your last post was for me, check the status : after the autoremove I had only 3.19.0-15.15 fully installed (ii) all others had full or partial (rc) tags

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.