Remove-Unused-Kernel-Packages leaves unused linux-hwe-.*-headers-.* packages around

Bug #1942703 reported by Jarno Suni
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unattended-upgrades
New
Unknown
unattended-upgrades (Ubuntu)
New
Undecided
Unassigned

Bug Description

If user has linux-generic-hwe-18.04 installed, versioned linux-headers packages depend on versioned linux-hwe-5.4-headers packages that will not get removed. Consequently in time there will be hundreds of thousands of unused files under /usr/src. For example I have about 450000 totalling 1.4 GB. The number of inodes may be bigger issue, because file systems have some limitations.

I noted the issue when using my linux-purge tool. It is supposed to be able to remove kernels, even if the file system runs out of inodes.

Workaround:

Install linux-purge from https://launchpad.net/linux-purge and run

sudo linux-purge

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: unattended-upgrades 1.1ubuntu1.18.04.14
ProcVersionSignature: Ubuntu 5.4.0-81.91~18.04.1-generic 5.4.128
Uname: Linux 5.4.0-81-generic i686
ApportVersion: 2.20.9-0ubuntu7.24
Architecture: i386
Date: Sun Sep 5 14:38:49 2021
InstallationDate: Installed on 2016-09-05 (1826 days ago)
InstallationMedia: Mythbuntu 16.04.1 LTS "Xenial Xerus" - Release i386 (20160719)
PackageArchitecture: all
SourcePackage: unattended-upgrades
UpgradeStatus: Upgraded to bionic on 2019-04-06 (882 days ago)
modified.conffile..etc.apt.apt.conf.d.10periodic: [modified]
mtime.conffile..etc.apt.apt.conf.d.10periodic: 2018-03-26T11:42:30.041160

Revision history for this message
Jarno Suni (jarnos) wrote :
Changed in unattended-upgrades:
status: Unknown → New
Revision history for this message
Jarno Suni (jarnos) wrote :

Works by 2.3ubuntu0.3 but there is no such update for 18.04.

description: updated
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.