问题描述
先装Ubuntu22.04,后装Windows10导致Ubuntu没有被正确引导
解决方案:
**前提:**本文是在UEFI Only下先后安装的Ubuntu和windows10导致的问题,其他方式未验证。
通过boost-repair进行修复:
搬运一下网上的方法和遇到的问题。
1.通过安装盘(U盘)启动,并“Try Ubuntu”,连接网络
2.安装boo-repair
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt update
sudo apt install boot-repair
这一步可能会出现定位不到包的问题(E: Unable to locate package boot-repair),此时需要修改:
cd /etc/apt/sources.list.d/
sudo gedit yannubuntu-ubuntu-boot-repair-***.list
将其中“hirsute”或其他(“xenial”)修改为 bionic,并保存
sudo apt-get update
sudo apt-get install boot-repair
boot-repair
运行后点击recommand repair即可,按提示步骤重启。