Automatic uninstall of kernel modules after sudo apt autoremove

2 risposte [Ultimo contenuto]
ao
ao
Offline
Iscritto: 07/20/2017

Dear fellow Trisquel users,

After sudo apt autoremove I got an automatic uninstall of kernel modules [1]. Why, should I worry and can I safely reboot? Thank you very much!

[1]
directly after linux-image-5.15.0-105-generic (5.15.0-105.115+11.0trisquel28) being removed ...:
-
/etc/kernel/prerm.d/dkms:
dkms: removing: tp_smapi 0.43 (5.15.0-105-generic) (x86_64)
Module tp_smapi-0.43 for kernel 5.15.0-105-generic (x86_64).
Before uninstall, this module version was ACTIVE on this kernel.

thinkpad_ec.ko:
- Uninstallation
- Deleting from: /lib/modules/5.15.0-105-generic/extra/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.

tp_smapi.ko:
- Uninstallation
- Deleting from: /lib/modules/5.15.0-105-generic/extra/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.

hdaps.ko:
- Uninstallation
- Deleting from: /lib/modules/5.15.0-105-generic/updates/
- Original module
- Archived original module found in the DKMS tree
- Moving it to: /lib/modules/5.15.0-105-generic/updates/
depmod...

Removing original_module from DKMS tree for kernel 5.15.0-105-generic (x86_64)
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.15.0-105-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/background.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found background: /boot/background.png
Found background image: /boot/background.png
Found linux image: /boot/vmlinuz-5.15.0-107-generic
Found initrd image: /boot/initrd.img-5.15.0-107-generic
Found linux image: /boot/vmlinuz-5.15.0-106-generic
Found initrd image: /boot/initrd.img-5.15.0-106-generic
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
done

Adrian Malacoda

I am a member!

Offline
Iscritto: 12/26/2010

When a kernel package is installed, DKMS will build and install kernel modules for that version. Likewise, when a kernel package is removed, as is happening here, DKMS will remove the kernel modules for that version of the kernel.

In other words, since kernel 5.15.0-105-generic was removed, the corresponding kernel modules were removed too. Those modules will exist for other kernels and will continue to be built for newer kernel packages. This is normal and there's nothing to worry about.

ao
ao
Offline
Iscritto: 07/20/2017

Thank you very much Adrian Malacoda.