Does any one know why I get this over and over every time I delete an old kernel:
cavsfan@cavsfan-MS-7529:~$ sudo apt-get purge linux-headers-3.2.0-64 linux-headers-3.2.0-64-generic linux-image-3.2.0-64-generic
[sudo] password for cavsfan:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-headers-3.2.0-64* linux-headers-3.2.0-64-generic* linux-image-3.2.0-64-generic*
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
After this operation, 218 MB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 238747 files and directories currently installed.)
Removing linux-headers-3.2.0-64-generic ...
Removing linux-headers-3.2.0-64 ...
Removing linux-image-3.2.0-64-generic ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/dkms 3.2.0-64-generic /boot/vmlinuz-3.2.0-64-generic
dkms: removing: nvidia-331 331.20 (3.2.0-64-generic) (x86_64)
-------- Uninstall Beginning --------
Module: nvidia-331
Version: 331.20
Kernel: 3.2.0-64-generic (x86_64)
-------------------------------------
Status: Before uninstall, this module version was ACTIVE on this kernel.
nvidia_331.ko:
- Uninstallation
- Deleting from: /lib/modules/3.2.0-64-generic/kernel/drivers/char/drm/
- 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.
dkms: removing: virtualbox-guest 4.1.12 (3.2.0-64-generic) (x86_64)
-------- Uninstall Beginning --------
Module: virtualbox-guest
Version: 4.1.12
Kernel: 3.2.0-64-generic (x86_64)
-------------------------------------
Status: Before uninstall, this module version was ACTIVE on this kernel.
vboxguest.ko:
- Uninstallation
- Deleting from: /lib/modules/3.2.0-64-generic/updates/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
vboxsf.ko:
- Uninstallation
- Deleting from: /lib/modules/3.2.0-64-generic/updates/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
vboxvideo.ko:
- Uninstallation
- Deleting from: /lib/modules/3.2.0-64-generic/updates/
- 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.
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-64-generic /boot/vmlinuz-3.2.0-64-generic
update-initramfs: Deleting /boot/initrd.img-3.2.0-64-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-64-generic /boot/vmlinuz-3.2.0-64-generic
Generating grub.cfg ...
Found background image: skull-wallpapers-23.jpg
Adding Precise Pangolin 12.04, Trusty Tahr 14.04, Utopic Unicorn 14.10 (Devel Branch), Mint 13 Maya, Mint 17 Qiana and Windows 7
done
Purging configuration files for linux-image-3.2.0-64-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-64-generic /boot/vmlinuz-3.2.0-64-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-64-generic /boot/vmlinuz-3.2.0-64-generic
[COLOR=#ff0000]dpkg: warning: while removing linux-image-3.2.0-64-generic, directory '/lib/modules/3.2.0-64-generic/kernel/drivers/char' not empty so not removed.[/COLOR]
Look for the red line at the bottom. I always end up having to do this to remove the folder:
cavsfan@cavsfan-MS-7529:~$ sudo rm -r -v /lib/modules/3.2.0-64-generic/kernel/drivers/char
[sudo] password for cavsfan:
removed directory: `/lib/modules/3.2.0-64-generic/kernel/drivers/char/drm'
removed directory: `/lib/modules/3.2.0-64-generic/kernel/drivers/char'
And I know that is not right. It should be automagically removed.