sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair

解决报错问题:E: unable to locate package boot-repair

方法一:源网下载

方法二:更改该库的发行版本关键字

cd /etc/apt/sources.list.d/
sudo gedit yannubuntu-ubuntu-boot-repair-bionic.list
sudo cp yannubuntu-ubuntu-boot-repair-bionic.list yannubuntu-ubuntu-boot-repair-cosmic.list
sudo chmod 777 /etc/apt/sources.list.d/yannubuntu-ubuntu-boot-repair-cosmic.list

找到该list,修改内容为:focal也可以是bionic

deb https://ppa.launchpadcontent.net/yannubuntu/boot-repair/ubuntu focal main 
deb-src https://ppa.launchpadcontent.net/yannubuntu/boot-repair/ubuntu focal main 

然后执行:

sudo rm yannubuntu-ubuntu-boot-repair-bionic.list
sudo apt-get update
sudo apt-get install boot-repair
boot-repair

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐