Damaged /vmlinuz and /initrd.img symbolic links after Kernel uninstall
Solution 1
Those messages are nothing to worry about. The symlinks that are being complained about are only needed if you're using lilo
as your bootloader, because it uses those symlinks to find your "current" kernel. Grub, being more flexible, has it's own way of doing things, and doesn't need the symlinks.
Solution 2
You shouldn't need to re-run grub. You would, but after a kernel change you may need to run /usr/sbin/update-grub.
Those messages probably do not indicate an issue. The real test would be to simply reboot the computer. If it boots fine, then nothing bad happened.
You may want to update your /etc/kernel-img.conf and disable the do_symlinks option, and you shouldn't see this message again.
Related videos on Youtube
maxyfc
01011001 01100101 01110100 00100000 01100001 01101110 01101111 01110100 01101000 01100101 01110010 00100000 01110000 01110010 01101111 01100111 01110010 01100001 01101101 01101101 01100101 01110010 00101110
Updated on September 17, 2022Comments
-
maxyfc over 1 year
OS: Ubuntu 8.04 LTS Server Edition
We just rolled back an kernel update using the following command:
sudo apt-get remove linux-image-2.6.24-24-server
The uninstallation was successful, but it had the following message before
apt-get
exited:The link /vmlinuz is a damaged link Removing symbolic link vmlinuz you may need to re-run your boot loader[grub] The link /initrd.img is a damaged link Removing symbolic link initrd.img you may need to re-run your boot loader[grub]
Should we be worrying about this message? Do we need to re-run GRUB? How do we go about doing this if we have to re-run GRUB?
Thanks in advance.
-
Cookie over 8 yearsI am sorry but rebooting the computer to check whether it can reboot is not good advice. What if it can't?
-
Zoredache over 8 yearsIf you can't schedule a reboot of a system to test if you have broken the boot setup, then it almost certainly means you have a single point of failure in your network, that you should be fixing. I have no idea how you expect test if your computer boots properly, without testing that it boots properly. Obviously you should be prepared when you do this to fix your system, if it fails.
-
Zlatko about 8 yearsThat's weird, I do not have lilo. I have grub and still getting those messages.
-
womble about 8 yearsYeah, my explanation was a little misleading. I've edited it to clarify.
-
B. Shea over 7 yearsIf for some reason it doesn't boot, you should use a live DVD/CD that matches your release and mount/repair it. (Many articles on this) And as @Zoredache says you won't know till you do it.
-
mc0e over 6 yearsIt would be nice if worrying sounding error messages could be avoided in circumstances where they are irrelevant, or at least come with a brief explanation of the circumstances in which you should worry.
-
womble over 6 yearsYeah, well, I want a pony, too. (grin)
-
GreenReaper almost 5 yearsThey are, however, used by kexec-tools if you're trying to use fast kernel reloads. It has a GRUB option but I've found that didn't load my initrd and so couldn't boot. You can update symlinks with e.g.
linux-update-symlinks upgrade 4.19.39 /boot/vmlinuz-4.19.39
if whatever you're doing (e.g. dpkg -i) doesn't do it automatically.