I also had this problem show up out of the blue on me last night. I removed a custom kernel several months ago and thought nothing of it until a recent update was pushed down to my system which caused dpkg to fail. The error:
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.25-custom-pae-xeon
Cannot find /lib/modules/2.6.25-custom-pae-xeon
update-initramfs: failed for /boot/initrd.img-2.6.25-custom-pae-xeon
dpkg: subprocess post-installation script returned error exit status 1
Like I said, this kernel image hasn't been installed in months, and I removed it via synaptic. Even when I did a purge, of this package I couldn't get dpkg to finish what it had started with initramfs.
I renamed the /var/lib/dpkg/triggers/initramfs-tools file and that resolve the issue.
Where is initramfs-tools reading information from to know which initrd's it needs to create during the update process?
I also had this problem show up out of the blue on me last night. I removed a custom kernel several months ago and thought nothing of it until a recent update was pushed down to my system which caused dpkg to fail. The error:
Processing triggers for initramfs-tools ... img-2.6. 25-custom- pae-xeon 2.6.25- custom- pae-xeon img-2.6. 25-custom- pae-xeon
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
Like I said, this kernel image hasn't been installed in months, and I removed it via synaptic. Even when I did a purge, of this package I couldn't get dpkg to finish what it had started with initramfs.
I renamed the /var/lib/ dpkg/triggers/ initramfs- tools file and that resolve the issue.
Where is initramfs-tools reading information from to know which initrd's it needs to create during the update process?