第n+1次介绍这个方法了。 就是Boot-repair, ubuntu特有的傻瓜型修复引导工具。
无论是win不能引导, 还是ubuntu不能引导,还是死在grub提示符。。反正就是安装ubuntu后启动出问题了, 都可以用这个方法解决, 唯一的要求是安装盘live启动后可以联网。(如果不能联网,稍麻烦一些, 必须到联网环境去 下载boot-repair-disk.iso (sourceforge有下), 做一张ubuntu修复盘)
步骤:
- 用ubuntu 安装盘livecd模式启动系统 ( 安装盘启动选项中,类似“try ubuntu but do not install it ”那项 )
- 打开terminal (win键, 输入terminal, 启动搜索出来的第一个app)
- 在terminal里输入引号内内容,不包括引号: “sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update”
回车 - 再输入 “sudo apt-get install -y boot-repair && (sudo boot-repair &)”
回车
因为版本过高,所以现有的流程就无法使用了,你会发现你找不到boot-repair的包
add-apt-repository ppa:yannubuntu/boot-repair
Website: https://sourceforge.net/p/boot-repair/home
更多資訊:https://launchpad.net/~yannubuntu/+archive/ubuntu/boot-repair
請按下 [ENTER] 繼續或 Ctrl-C 取消加入。
按下Enter以后,
/etc/apt/sources.list.d下面会增加一个文件yannubuntu-ubuntu-boot-repair-cosmic.list
编辑yannubuntu-ubuntu-boot-repair-cosmic.list,把里面的:
deb http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu cosmic main
改成
deb http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu bionic main
保存后退出.
然后再进行更新和安装,就能顺利locate到你想要的package了.
apt update
apt install boot-repair
- 以上完成后, 按win键,输入Boot-repair, 回车启动之, 点击“recommanded repair”按钮。
接下来都是软件自动进行了, 一路到底, 重启完成。 (过程中可能会让你 手动打字/复制 命令。 如果你英文不好, 那么画面停在某处不动, 又显示命令提示符的时候, 找到提示中的引号部分,复制其中内容,拷贝在命令提示符后,回车继续。)
原文链接:https://blog.csdn.net/appleyuchi/article/details/103284689/
https://blog.csdn.net/qq413187589/article/details/43273011