stale files in /var/lib/initramfs-tools after removing kernel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: initramfs-tools
Removing a kernel image and accompanying headers with apt-get remove --purge does not seem to remove the corresponding configuration file in /var/lib/
# apt-get install some_package
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
# dpkg --configure -a
Setting up initramfs-tools (0.85eubuntu20) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.
Cannot find /lib/modules/
update-initramfs: failed for /boot/initrd.
dpkg: subprocess post-installation script returned error exit status 1
Removing the stale configuration files in /var/lib/
As to whether this is a bug in initramfs-tools (which could ignore or remove configuration files for which no corresponding kernel image is found) or the kernel package (which could contain a config file reference to /var/lib/
I had the same issue happen to me. I created a custom kernel of 2.6.23, then removed it using the stock 2.6.22-14-generic kernel. Oddly enough, I also had a stale file for 2.6.22.9 in /var/lib/ initramfs- tools, which I didn't install. I'm wondering if the issue lies in initramfs-tools? My custom kernel package was created with make-kpkg.