Public bug reported: Binary package hint: initramfs-tools
If you have an obsolete initrd.img symlink in /boot, then upgrading the initramfs-tools package will fail. This occurred to me when I migrated from lilo to grub (where the lymlinks were no longer maintained), then later removed the kernel image to which the symlinks still pointed. Worse, it appears other kernels (i.e. correct, installed ones) are not updated as update-initramfs bails out at this point. Steps to reproduce: 1. Create an incorrect initrd.img symlink (e.g. "ln -s /boot/initrd.img-2.6.20-8-generic /boot/initrd.img") 2. Run "update-initramfs -u" (this action is triggered during a package upgrade/reinstall too Results: update-initramfs: Generating /boot/initrd.img-2.6.20-8-generic Cannot find /lib/modules/2.6.20-8-generic update-initramfs: failed for /boot/initrd.img-2.6.20-8-generic update-initramfs should not try and use initrd.img as its basis for updating if that version is no longer installed (i.e. missing from /lib/modules) - and should probably either remove or update the symlink during the process. ** Affects: initramfs-tools (Ubuntu) Importance: Undecided Status: Unconfirmed -- Obsolete /boot/initrd.img symlink causes package upgrade failure https://launchpad.net/bugs/98984 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs