Kernel updates marked as "manually installed", prevents old kernels cleanup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
plasma-discover (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Actually, I'm not 100% sure it's Discover's fault, but I'm quite confident it could the source of the problem.
On 2021-01-27, when trying to install the latest kernel version for my Kubuntu 20.04 installation, I went out of space in my /boot partition. Looking at the installed kernels, I saw that I had 6 (SIX!) old kernels installed, including the one I was running on.
I knew I had all the automatic kernel update and cleaning in place thanks to unattended-
Substantially this sentence is enlightening:
Note: The following methods will only remove kernels that are marked as being automatically installed as described above.
My problem was that all the installed kernels where marked as MANUALLY INSTALLED:
$ apt-mark showauto 'linux-image-.*'
linux-image-generic
$ apt-mark showmanual 'linux-image-.*'
linux-image-
linux-image-
linux-image-
linux-image-
linux-image-
linux-image-
linux-image-
(note: the last kernel version was the one I was not able to completely install due to insufficient disk space)
Also, looking at /etc/apt/
rc linux-image-
rc linux-image-
rc linux-image-
rc linux-image-
rc linux-image-
rc linux-image-
ii linux-image-
ii linux-image-
iF linux-image-
ii linux-image-generic 5.4.0.65.68 amd64 Generic Linux kernel image
So, some kernel versions were indeed automatically pruned in the past (those marked with "rc"), but other are missing there and indeed they were marked as "manually installed".
Running "apt autoremove" manually of course does not remove old kernels, for the same reason.
I'm pretty sure the problem lies here: some kernel version were automatically installed by unattended-upgrades (and these where automatically purged), some others were installed by me by hitting "update all" button in Discover, when it periodically notifies me about new updates.
So, looking again at the Ubuntu wiki page, I see:
In Ubuntu 16.04 kernels installed by Software Updater are marked as being automatically installed. In Ubuntu 14.04 only kernels installed by unattended-upgrades are marked as being automatically installed. See bug #1439769 for details.
So, I suspect such a "bug" is still present in Kubuntu 20.04 Discover, which marks all kernels installed through it as "manually installed".
This problem has also been reported already at:
https:/
https:/
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: plasma-discover 5.18.5-0ubuntu0.1
ProcVersionSign
Uname: Linux 5.4.0-65-generic x86_64
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: KDE
Date: Sun Feb 7 14:47:01 2021
InstallationDate: Installed on 2020-10-05 (124 days ago)
InstallationMedia: Kubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
SourcePackage: plasma-discover
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in plasma-discover (Ubuntu): | |
status: | New → Incomplete |
status: | Incomplete → New |
Status changed to 'Confirmed' because the bug affects multiple users.