# linux-purge --keep=1 Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: linux-headers-5.8.0-63-generic* linux-hwe-5.8-headers-5.8.0-63* linux-image-5.10.0-1033-oem* linux-image-5.10.0-1034-oem* linux-image-5.8.0-59-generic* linux-image-5.8.0-63-generic* linux-modules-5.10.0-1033-oem* linux-modules-5.10.0-1034-oem* linux-modules-5.8.0-59-generic* linux-modules-5.8.0-63-generic* linux-modules-extra-5.8.0-59-generic* linux-modules-extra-5.8.0-63-generic* 0 upgraded, 0 newly installed, 12 to remove and 68 not upgraded. After this operation, 179 MB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 501007 files and directories currently installed.) Removing linux-headers-5.8.0-63-generic (5.8.0-63.71~20.04.1) ... Removing linux-hwe-5.8-headers-5.8.0-63 (5.8.0-63.71~20.04.1) ... Removing linux-image-5.8.0-63-generic (5.8.0-63.71~20.04.1) ... /etc/kernel/prerm.d/dkms: dkms: removing: nvidia 460.91.03 (5.8.0-63-generic) (x86_64) -------- Uninstall Beginning -------- Module: nvidia Version: 460.91.03 Kernel: 5.8.0-63-generic (x86_64) ------------------------------------- Status: Before uninstall, this module version was ACTIVE on this kernel. nvidia.ko: - Uninstallation - Deleting from: /lib/modules/5.8.0-63-generic/updates/dkms/ - Original module - No original module was found for this module on this kernel. - Use the dkms install command to reinstall any previous module version. nvidia-modeset.ko: - Uninstallation - Deleting from: /lib/modules/5.8.0-63-generic/updates/dkms/ - Original module - No original module was found for this module on this kernel. - Use the dkms install command to reinstall any previous module version. nvidia-drm.ko: - Uninstallation - Deleting from: /lib/modules/5.8.0-63-generic/updates/dkms/ - Original module - No original module was found for this module on this kernel. - Use the dkms install command to reinstall any previous module version. nvidia-uvm.ko: - Uninstallation - Deleting from: /lib/modules/5.8.0-63-generic/updates/dkms/ - Original module - No original module was found for this module on this kernel. - Use the dkms install command to reinstall any previous module version. depmod... DKMS: uninstall completed. /etc/kernel/postrm.d/initramfs-tools: update-initramfs: Deleting /boot/initrd.img-5.8.0-63-generic /etc/kernel/postrm.d/zz-update-grub: Sourcing file `/etc/default/grub' Sourcing file `/etc/default/grub.d/init-select.cfg' Sourcing file `/etc/default/grub.d/oem-flavour.cfg' Generating grub configuration file ... Found linux image: /boot/vmlinuz-5.11.0-27-generic Found initrd image: /boot/initrd.img-5.11.0-27-generic Found linux image: /boot/vmlinuz-5.11.0-25-generic Found initrd image: /boot/initrd.img-5.11.0-25-generic Found linux image: /boot/vmlinuz-5.10.0-1044-oem Found initrd image: /boot/initrd.img-5.10.0-1044-oem Found linux image: /boot/vmlinuz-5.10.0-1038-oem Found initrd image: /boot/initrd.img-5.10.0-1038-oem Adding boot menu entry for UEFI Firmware Settings done Removing linux-modules-5.8.0-63-generic (5.8.0-63.71~20.04.1) ... (Reading database ... 468936 files and directories currently installed.) Purging configuration files for linux-image-5.10.0-1034-oem (5.10.0-1034.35) ... rmdir: failed to remove '/lib/modules/5.10.0-1034-oem': Directory not empty Purging configuration files for linux-modules-5.10.0-1034-oem (5.10.0-1034.35) ... dpkg: warning: while removing linux-modules-5.10.0-1034-oem, directory '/lib/modules/5.10.0-1034-oem' not empty so not removed Purging configuration files for linux-modules-extra-5.8.0-63-generic (5.8.0-63.71~20.04.1) ... Purging configuration files for linux-modules-5.8.0-59-generic (5.8.0-59.66~20.04.1) ... dpkg: warning: while removing linux-modules-5.8.0-59-generic, directory '/lib/modules/5.8.0-59-generic' not empty so not removed Purging configuration files for linux-modules-5.10.0-1033-oem (5.10.0-1033.34) ... dpkg: warning: while removing linux-modules-5.10.0-1033-oem, directory '/lib/modules/5.10.0-1033-oem' not empty so not removed Purging configuration files for linux-modules-5.8.0-63-generic (5.8.0-63.71~20.04.1) ... dpkg: warning: while removing linux-modules-5.8.0-63-generic, directory '/lib/modules/5.8.0-63-generic' not empty so not removed Purging configuration files for linux-image-5.8.0-63-generic (5.8.0-63.71~20.04.1) ... Purging configuration files for linux-image-5.10.0-1033-oem (5.10.0-1033.34) ... Purging configuration files for linux-image-5.8.0-59-generic (5.8.0-59.66~20.04.1) ... rmdir: failed to remove '/lib/modules/5.8.0-59-generic': Directory not empty Purging configuration files for linux-modules-extra-5.8.0-59-generic (5.8.0-59.66~20.04.1) ...