Same here...none of these commands remove the old /lib/modules/ kernel
dirs:
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove
sudo apt-get purge
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
AFAIU by default it's unattended-upgrades that takes care of removing
old kernel (and kernel module packages). Apparently it doesn't pass
--purge when it removes the old kernel packages. Should it?
--
You received this bug notification because you are a member of Kernel
Packages, which is
[Expired for linux (Ubuntu) because there has been no activity for 60
days.]
** Changed in: linux (Ubuntu)
Status: Incomplete => Expired
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
For the relevant kernels running:
sudo apt purge linux-image-5.15.0-xx-generic linux-modules-5.15.0-xx-
generic linux-modules-extra-5.15.0-xx-generic
Or using this utility: https://git.launchpad.net/linux-purge
Then the leftover directories are correctly removed.
But I don't think you should
corrado@corrado-x-kinetic:~$ ls /lib/modules
5.19.0-23-generic 5.19.0-28-generic 5.19.0-29-generic 5.19.0-31-generic
corrado@corrado-x-kinetic:~$ sudo apt autoremove --purge
[sudo] password for corrado:
Reading package lists... Done
Building dependency tree... Done
Reading state information...
Actually let me reassign to Linux and mark incomplete.
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2007286
Title:
Ubuntu does not clean out old kernel module files (in /lib/modules)
There can be many reasons why files remain. Did you purge the packages
for those Linux versions? Did you do any dkms modules.
This is not a bug in apt, apt is not responsible for those files.
** Changed in: apt (Ubuntu)
Status: New => Invalid
** Package changed: apt (Ubuntu) => linux
7 matches
Mail list logo