报错信息
Error File ‘/boot/vmlinuz-5.4-x86_64’ not found
Error File ‘boot/initramfs-5.4-x86_64.img’ not found
error: could not open file: /etc/mtab: No such file or directory
error: could not determine filesystem mount points
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.
以上三种报错信息都是我在解决同一个问题时出现
,所以解决方案也是统一
的。另外Arch Linux
跟Manjaro属于同系的,解决方案应该可以通用。
2020年10月6日
再加一条报错信息,同样方法解决的,更新系统后出现的报错,这难道就是传说中的滚挂吗?
error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or directory
废话,可跳过
因为不想改动我Manjaro物理机的环境,所以在Windows用了挺长一段时间Ubuntu虚拟机,今天打算在我的Manjaro下安装虚拟机允许其他系统或者是作为调试环境,慢慢彻底抛弃Windows,结果发现原来好好的Manjaro不知道为啥无缘无故开不了机了(不是滚挂的,Manjaro也不会滚挂),墙内没有资料墙外的资料也是散落在各个论坛和arch官网,没有一条贴可以一条龙服务解决这个问题,所以也算首发吧。因为参考的资料挺多的,后来命令都是记住没看帖子解决的,所以没贴参考链接了,感谢国外各位大神。
解决方法
用U盘装一个Manjaro的启动盘,进U盘的系统
里,打开终端。电脑要联网
# 查看你原来那个系统硬盘root分区的设备文件名,例如/dev/sdb2
sudo fdisk -l
# 这里换成上一步你自己查到的设备名
sudo mount -t ext4 /dev/sdb2 /mnt
sudo pacman -Sy arch-install-scripts
# 一定是arch-chroot
arch-chroot /mnt
sudo pacman -Sy linux
reboot
这里有个坑,命令一定是arch-chroot
,不能用chroot
替代,安装arch-install-scripts
就是为了能够使用arch-chroot
。