无法添加 PPA:'ppa:yannubuntu/boot-repair'

Meh*_*ban 11 boot grub2 dual-boot ppa

我的笔记本电脑上安装了 Ubuntu 13.10。升级 Windows 后,我尝试通过此处Boot Repair提到的这些命令恢复 grub :

sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair
Run Code Online (Sandbox Code Playgroud)

但是当我运行第一个命令时,我收到此错误:

Cannot add PPA: 'ppa:yannubuntu/boot-repair'.
Please check that the PPA name or format is correct.
Run Code Online (Sandbox Code Playgroud)

有什么问题?

小智 26

当您实时启动并尝试在连接到互联网之前添加 ppa 时,会出现此特定问题。

只需先连接到互联网,然后像以前一样尝试再次添加 ppa。

  • 哈哈,是的,你说得对,我没有互联网:facepalm: (2认同)

Jef*_*nte 9

我建议你在终端做:

sudo add-apt-repository ppa:yannubuntu/boot-repair
Run Code Online (Sandbox Code Playgroud)

然后做:

 sudo apt-get update
Run Code Online (Sandbox Code Playgroud)

如果它不起作用,我建议您在 apt-get 中手动添加它

nano /etc/apt/source.list.d/yannubuntu-boot-repair-saucy.list
Run Code Online (Sandbox Code Playgroud)

并写下这个:

deb http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu saucy main

然后保存并更新:

sudo apt-get update
Run Code Online (Sandbox Code Playgroud)

  • 在 18.10 中,deb 之后 BIOS 只能是 UEFI 和 [trusted=yes]:deb [trusted=yes] http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu cosmic main (2认同)