autoremove kernel management leaves one single kernel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
One Hundred Papercuts |
High
|
Unassigned | |||
apt (Ubuntu) |
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-
ii linux-headers-
ii linux-headers-
ii linux-headers-
rc linux-image-
rc linux-image-
ii linux-image-
rc linux-image-
rc linux-image-
ii linux-image-
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
ProcVersionSign
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)
nam1962 (amauryat) wrote : | #1 |
dino99 (9d9) wrote : | #2 |
Changed in apt (Ubuntu): | |
status: | New → Confirmed |
nam1962 (amauryat) wrote : | #4 |
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 |
jplemoine (untoutseul05) wrote : | #5 |
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.
Adam Conrad (adconrad) wrote : | #6 |
The "leaves conffiles behind" complaint is entirely unrelated, and solved by using "apt-get --purge autoremove"
Adam Conrad (adconrad) wrote : | #7 |
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.
nam1962 (amauryat) wrote : | #8 |
..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
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.