[Bug 1947429] [NEW] linux-object-* not autoremoved on upgrade
Steve Langasek
1947429 at bugs.launchpad.net
Sat Oct 16 01:11:46 UTC 2021
Public bug reported:
After upgrading my kernel, directories are left behind in /lib/modules
for previous kernel because with the kernel packaging layout, not all
binary packages are autoremoved:
$ dpkg -S /lib/modules/5.11.0-34-generic
linux-objects-nvidia-460-5.11.0-34-generic: /lib/modules/5.11.0-34-generic
$ sudo apt autoremove --purge linux-objects-nvidia-460-5.11.0-34-generic
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
linux-objects-nvidia-460-5.11.0-34-generic*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Requesting to save current system state
Successfully saved as "autozsys_sdijbm"
(Reading database ... 362960 files and directories currently installed.)
Purging configuration files for linux-objects-nvidia-460-5.11.0-34-generic (5.11
.0-34.36) ...
dpkg: warning: while removing linux-objects-nvidia-460-5.11.0-34-generic, directory '/lib/modules/5.11.0-34-generic' not empty so not removed
ZSys is adding automatic system snapshot to GRUB menu
$
ProblemType: Bug
DistroRelease: Ubuntu 21.10
Package: apt 2.3.9
ProcVersionSignature: Ubuntu 5.11.0-37.41-generic 5.11.22
Uname: Linux 5.11.0-37-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu70
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Fri Oct 15 14:36:40 2021
InstallationDate: Installed on 2019-12-23 (661 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: apt
UpgradeStatus: Upgraded to impish on 2021-10-15 (0 days ago)
** Affects: apt (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug impish
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1947429
Title:
linux-object-* not autoremoved on upgrade
Status in apt package in Ubuntu:
New
Bug description:
After upgrading my kernel, directories are left behind in /lib/modules
for previous kernel because with the kernel packaging layout, not all
binary packages are autoremoved:
$ dpkg -S /lib/modules/5.11.0-34-generic
linux-objects-nvidia-460-5.11.0-34-generic: /lib/modules/5.11.0-34-generic
$ sudo apt autoremove --purge linux-objects-nvidia-460-5.11.0-34-generic
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
linux-objects-nvidia-460-5.11.0-34-generic*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Requesting to save current system state
Successfully saved as "autozsys_sdijbm"
(Reading database ... 362960 files and directories currently installed.)
Purging configuration files for linux-objects-nvidia-460-5.11.0-34-generic (5.11
.0-34.36) ...
dpkg: warning: while removing linux-objects-nvidia-460-5.11.0-34-generic, directory '/lib/modules/5.11.0-34-generic' not empty so not removed
ZSys is adding automatic system snapshot to GRUB menu
$
ProblemType: Bug
DistroRelease: Ubuntu 21.10
Package: apt 2.3.9
ProcVersionSignature: Ubuntu 5.11.0-37.41-generic 5.11.22
Uname: Linux 5.11.0-37-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu70
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Fri Oct 15 14:36:40 2021
InstallationDate: Installed on 2019-12-23 (661 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: apt
UpgradeStatus: Upgraded to impish on 2021-10-15 (0 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1947429/+subscriptions
More information about the foundations-bugs
mailing list