Ubuntu apt-get upgrade 破坏了 update-initramfs?

Ubuntu apt-get upgrade 破坏了 update-initramfs?

apt-get upgrade在 Ubuntu 8.04 32 位服务器上运行。它升级了很多软件包,但在这里失败了:

Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.24-16-server
update-initramfs: lilo run failed for /boot/initrd.img-2.6.24-16-server:

Warning: LBA32 addressing assumed
Fatal: raid_setup: stat("/dev/sda")
dpkg: subprocess post-installation script returned error exit status 1
E: Sub-process /usr/bin/dpkg returned an error code (2)

系统中唯一的硬盘是,/dev/hde并且显然update-initramfs正在尝试查找/dev/sda

现在我担心下次启动系统时无法启动。有什么办法可以解决这个问题吗?如果您需要任何其他信息,请告诉我。

答案1

您在 /boot 中是否有备份 initrd.img-2.6.24-16-server?如果有,请比较两者的大小。它们有区别吗?您可以尝试用备份替换新的,然后看看它是否能启动。在我旧的 Ubuntu 桌面 (8.04) 上的更新 (GUI) 破坏了我的 initrd.img 之后,这种方法对我有用。我可能大错特错,但如果您的系统无法启动,那么值得一试。

答案2

显然,解决方案是运行apt-get remove lilo

这样,就不再需要升级相关的软件包了。

请注意,Lilo 仍然充当引导加载程序,它只是卸载了 Lilo 的安装程序/引导程序。

相关内容