Public bug reported:

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/initramfs-tools. This leads to problems when either grub, a
kernel, initramfs-tools or any other package which leads to a grub menu
rebuild is installed, updated or removed. Eg. after having removed a
kernel image (2.6.23-t23-04 - a homebrew image made with make-kpkg) this
happens when I try to use apt:

# 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.img-2.6.23-t23-04
Cannot find /lib/modules/2.6.23-t23-04
update-initramfs: failed for /boot/initrd.img-2.6.23-t23-04
dpkg: subprocess post-installation script returned error exit status 1

Removing the stale configuration files in /var/lib/initramfs-tools makes
dpkg happy again

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/initramfs-tools/version_number-release) I'll
leave to the respective package maintainers.

** Affects: initramfs-tools (Ubuntu)
     Importance: Undecided
         Status: New

-- 
stale files in /var/lib/initramfs-tools after removing kernel
https://bugs.launchpad.net/bugs/152756
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to