Bug#847813: rmdir: failed to remove '/lib/modules/4.8.0-1-686-pae': Directory not empty

積丹尼 Dan Jacobson jidanni at jidanni.org
Sun Dec 11 23:25:27 UTC 2016


Package: nvidia-legacy-304xx-kernel-dkms
Version: 304.132-1
Severity: minor
File: nvidia-legacy-304xx-kernel-dkms

Stuff is left behind upon purge.

Removing linux-image-4.8.0-1-686-pae (4.8.7-1) ...
/etc/kernel/prerm.d/dkms:
dkms: removing: nvidia-legacy-304xx 304.132 (4.8.0-1-686-pae) (i686)

-------- Uninstall Beginning --------
Module:  nvidia-legacy-304xx
Version: 304.132
Kernel:  4.8.0-1-686-pae (i686)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

nvidia-legacy-304xx.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.8.0-1-686-pae/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.
I: /vmlinuz.old is now a symlink to boot/vmlinuz-4.7.0-1-686-pae
I: /initrd.img.old is now a symlink to boot/initrd.img-4.7.0-1-686-pae
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.8.0-1-686-pae
/etc/kernel/postrm.d/zz-update-grub:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.8.0-2-686-pae
Found initrd image: /boot/initrd.img-4.8.0-2-686-pae
Found linux image: /boot/vmlinuz-4.7.0-1-686-pae
Found initrd image: /boot/initrd.img-4.7.0-1-686-pae
done
(Reading database ... 179556 files and directories currently installed.)
Purging configuration files for linux-image-4.8.0-1-686-pae (4.8.7-1) ...
rmdir: failed to remove '/lib/modules/4.8.0-1-686-pae': Directory not empty

Had to do it by hand:

# find /lib/modules/4.8.0-1-686-pae -print -delete
/lib/modules/4.8.0-1-686-pae/source
/lib/modules/4.8.0-1-686-pae/build
/lib/modules/4.8.0-1-686-pae



More information about the pkg-nvidia-devel mailing list