【解决问题】Cannot add PPA: ‘ppa:~yannubuntuubuntuboot-repair‘. ERROR: ‘~yannubuntu‘ does not exist

    技术2026-06-18  6

    本博客运行环境为Ubuntu 18.04 。

    问题描述如下: ubuntu@ubuntu:~$ sudo add-apt-repository ppa:yannubuntu/boot-repair Cannot add PPA: ‘ppa:~yannubuntu/ubuntu/boot-repair’. ERROR: ‘~yannubuntu’ user or team does not exist.

    解决方案

    进入该网站:https://launchpad.net/~yannubuntu/+archive/ubuntu/boot-repair 单击"Technical details about this PPA"(“有关此PPA的技术详细信息”),然后从"显示sources.list条目:"中选择您的ubuntu版本,例如 bionic, xenial 等等。我的是ubuntu18.04对应叫做bionic。

    如果不知道代码名称,则在命令行运行如下命令:

    lsb_release -sc

    运行结果如下: bionic

    选择bionic版本后,它会输出如下内容:

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

    ubuntu中使用root访问权限打开此文件: /etc/apt/sources.list 。 例如在使用 nano的终端中 :

    sudo nano /etc/apt/sources.list

    将这些链接添加到此文件并保存.现在添加PPA的签名密钥:

    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1024R/3C48D16124B50277AF10D27F32B18A1260D8DA0B

    然后保存退出,更新一下。

    sudo apt-get update
    Processed: 0.009, SQL: 9