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

本博客运行环境为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
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值