dkms package causes linux-headers-* packages stay in the system forever consuming disk space
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
dkms (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Because of some veird dependency in dkms package, on each kernel upgrade old linux-headers-* packages are not getting removed, consuming a lot of disk space. Finally, root partition runs out of space which causes serious issues. Without dkms, everything works fine. I checked dependency and it indeed recommends all old packages.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: dkms 2.1.1.2-2ubuntu1
ProcVersionSign
Uname: Linux 2.6.32-40-server x86_64
Architecture: amd64
Date: Fri Mar 23 15:38:38 2012
InstallationMedia: Ubuntu-Server 10.04.2 LTS "Lucid Lynx" - Release amd64 (20110211.1)
PackageArchitec
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: dkms
dkms doesn't directly depend on a particular version of linux-headers, but just on having at least one of the metapackages installed.
Normally kernel upgrades don't remove old versions, that's up to the user to do with something like Computer Janitor. If anything this is a bug in the way that apt will figure out the dependency chain not a bug in DKMS.