Kernel updates marked as "manually installed", prevents old kernels cleanup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
packagekit (Ubuntu) |
Fix Released
|
High
|
Julian Andres Klode | ||
Focal |
Confirmed
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
High
|
Julian Andres Klode |
Bug Description
With the machines I help administer, we have been finding situations where the /boot directory is filling-up beyond 3 kernels on LUKS encrypted systems. apt autoremove is not removing old kernels as expected.
This may also be an issue with unattended-upgrades since I found the following line commented-out by default:
// Remove unused automatically installed kernel-related packages
// (kernel images, kernel headers and kernel version locked tools).
// Unattended-
We have had a system with as many as 15 kernel packages installed as a result of this not working as expected.
The majority of these machines are using Discover to do their package upgrading, which uses PackageKit as its backend.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: apt 2.0.4
ProcVersionSign
Uname: Linux 5.8.0-41-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: KDE
Date: Tue Feb 2 09:29:01 2021
InstallationDate: Installed on 2020-11-07 (87 days ago)
InstallationMedia: Kubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
SourcePackage: apt
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in unattended-upgrades (Ubuntu): | |
status: | Incomplete → New |
summary: |
- discover is not removing unused kernels + Kernel updates marked as "manually installed", prevents old kernels + cleanup |
tags: | added: jammy rls-jj-incoming |
Changed in packagekit (Ubuntu Jammy): | |
importance: | Undecided → High |
status: | Confirmed → In Progress |
tags: | added: fr-2064 |
tags: | removed: rls-jj-incoming |
Changed in packagekit (Ubuntu Jammy): | |
status: | In Progress → Fix Committed |
The configuration file is fine, it is the default value that's commented out.
Please check unattended-upgrades logs if it performed kernel removals: unattended- upgrades/ *.gz
zgrep 'unused kernel' /var/log/
Also please check if it ran at all.