我最近将笔记本电脑从 Ubuntu 19.10 更新到了 Ubuntu 20.04。在更新过程中,我遇到了一些与内核相关的错误。无论如何,更新完成后,我尝试重新启动笔记本电脑,它卡在启动屏幕上,显示:
not syncing VFS: Unable to mount root fs on unknown
于是我重启了系统,这次选择了之前的内核(5.3),Ubuntu 20.04 启动正常。无论如何,当我尝试安装该内核的 initram 时,却无法安装。问题似乎与有关kernelstub
。以下是来自
sudo apt reinstall -f linux-image-5.4.0-26-generic
update-initramfs: Generating /boot/initrd.img-5.4.0-26-generic apt
reinstall -f linux-image-5.4.0-26-generic
/etc/initramfs/post-update.d//zz-kernelstub: line 7: kernelstub:
command not found run-parts:
/etc/initramfs/post-update.d//zz-kernelstub exited with return code
127 run-parts: /etc/kernel/postinst.d/initramfs-tools exited with
return code 1 dpkg: error processing package
linux-image-5.4.0-26-generic (--configure): installed
linux-image-5.4.0-26-generic package post-installation script
subprocess returned error exit status 1 Errors were encountered while
processing: initramfs-tools linux-image-5.4.0-26-generic E:
Sub-process /usr/bin/dpkg returned an error code (1)