天天看点

docker配置仓储库时出错:无法安全地用该源进行更新,所以默认禁用该源

在Ubuntu上安装docker,配置仓储库时第一次使用了阿里去的镜像,如下

?

1

sudo

add-apt-repository

"deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"

 结果出现了以下错误:

2

3

4

5

6

7

8

9

10

11

12

13

14

misland@misland-virtual-machine:

/etc/apt

$

sudo

add-apt-repository

"deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"

命中:1 http:

//cn

.archive.ubuntu.com

/ubuntu

bionic InRelease                                                                                                                                                     

忽略:2 http:

//ppa

.launchpad.net

/chris-lea/node

.js

/ubuntu

bionic InRelease                                                                                                                                       

获取:3 http:

//security

.ubuntu.com

/ubuntu

bionic-security InRelease [83.2 kB]                                                                                                                                    

获取:4 http:

//cn

.archive.ubuntu.com

/ubuntu

bionic-updates InRelease [88.7 kB]                                                                                                                                    

命中:5 https:

//dl

.yarnpkg.com

/debian

stable InRelease                                                                                                                                                            

错误:6 http:

//ppa

.launchpad.net

/chris-lea/node

.js

/ubuntu

bionic Release                                                                                                                                          

404  Not Found [IP: 91.189.95.83 80]

命中:7 http:

//mirrors

.aliyun.com

/docker-ce/linux/ubuntu

bionic InRelease                                                                                                                                         

命中:8 http:

//packages

.microsoft.com

/repos/vscode

stable InRelease                                                                                                                                               

正在读取软件包列表... 完成                                                                                                                                                                                       

E: 仓库 “http:

//ppa

.launchpad.net

/chris-lea/node

.js

/ubuntu

bionic Release” 没有 Release 文件。

N: 无法安全地用该源进行更新,所以默认禁用该源。

N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。

显示是连接 到download.docker.com时失败,无法下载,试了N次,始终不行,换了各种镜像,都 不行,坑的不要不要的,最后终于注意到一句话:

E: 仓库 “http:

//ppa

.launchpad.net

/chris-lea/node

.js

/ubuntu

bionic Release” 没有 Release 文件

 配合上面 的错误 6,我决定搜一下这个问题,最终找到 了这个链接

按照这个哥们 的说法,这些旧的什么 鬼ppa会导致 很多问题,要把这些东西删掉,先找到这些无法使用的,使用如下 命令:

sudo

apt-get update |

grep

"Failed"

 回车执行输出如下:

sudo

apt-get update |

grep

"Failed"

E: 仓库 “http:

//ppa

.launchpad.net

/chris-lea/node

.js

/ubuntu

bionic Release” 没有 Release 文件。

 于是按照上面哥们 说的,执行下面命令:

sudo

add-apt-repository --remove ppa:chris-lea

/node

.js

 回车卸载。卸载 后再次执行阿里去的仓储库,成功!

感谢上面的哥们!

sudo

add-apt-repository

"deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"

misland@misland-virtual-machine:

/etc/apt

$

sudo

add-apt-repository

"deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"

命中:1 http:

//cn

.archive.ubuntu.com

/ubuntu

bionic InRelease                                                                                                                                                     

忽略:2 http:

//ppa

.launchpad.net

/chris-lea/node

.js

/ubuntu

bionic InRelease                                                                                                                                       

获取:3 http:

//security

.ubuntu.com

/ubuntu

bionic-security InRelease [83.2 kB]                                                                                                                                    

获取:4 http:

//cn

.archive.ubuntu.com

/ubuntu

bionic-updates InRelease [88.7 kB]                                                                                                                                    

命中:5 https:

//dl

.yarnpkg.com

/debian

stable InRelease                                                                                                                                                            

错误:6 http:

//ppa

.launchpad.net

/chris-lea/node

.js

/ubuntu

bionic Release                                                                                                                                          

404  Not Found [IP: 91.189.95.83 80]

命中:7 http:

//mirrors

.aliyun.com

/docker-ce/linux/ubuntu

bionic InRelease                                                                                                                                         

命中:8 http:

//packages

.microsoft.com

/repos/vscode

stable InRelease                                                                                                                                               

正在读取软件包列表... 完成                                                                                                                                                                                       

E: 仓库 “http:

//ppa

.launchpad.net

/chris-lea/node

.js

/ubuntu

bionic Release” 没有 Release 文件。

N: 无法安全地用该源进行更新,所以默认禁用该源。

N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。

E: 仓库 “http:

//ppa

.launchpad.net

/chris-lea/node

.js

/ubuntu

bionic Release” 没有 Release 文件

sudo

apt-get update |

grep

"Failed"

sudo

apt-get update |

grep

"Failed"

E: 仓库 “http:

//ppa

.launchpad.net

/chris-lea/node

.js

/ubuntu

bionic Release” 没有 Release 文件。

sudo

add-apt-repository --remove ppa:chris-lea

/node

.js

原文地址:https://www.cnblogs.com/daner1257/p/10197801.html

继续阅读