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

Posted jpfss

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker配置仓储库时出错:无法安全地用该源进行更新,所以默认禁用该源相关的知识,希望对你有一定的参考价值。

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

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

 结果出现了以下错误:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
[email protected]:/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次,始终不行,换了各种镜像,都 不行,坑的不要不要的,最后终于注意到一句话:

1
E: 仓库 “http://ppa.launchpad.net/chris-lea/node.js/ubuntu bionic Release” 没有 Release 文件

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

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

1
sudo apt-get update | grep "Failed"

 回车执行输出如下:

1
2
sudo apt-get update | grep "Failed"
E: 仓库 “http://ppa.launchpad.net/chris-lea/node.js/ubuntu bionic Release” 没有 Release 文件。

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

1
sudo add-apt-repository --remove ppa:chris-lea/node.js

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

感谢上面的哥们!

 

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

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

 结果出现了以下错误:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
[email protected]:/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次,始终不行,换了各种镜像,都 不行,坑的不要不要的,最后终于注意到一句话:

1
E: 仓库 “http://ppa.launchpad.net/chris-lea/node.js/ubuntu bionic Release” 没有 Release 文件

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

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

1
sudo apt-get update | grep "Failed"

 回车执行输出如下:

1
2
sudo apt-get update | grep "Failed"
E: 仓库 “http://ppa.launchpad.net/chris-lea/node.js/ubuntu bionic Release” 没有 Release 文件。

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

1
sudo add-apt-repository --remove ppa:chris-lea/node.js

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

感谢上面的哥们!

 

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

以上是关于docker配置仓储库时出错:无法安全地用该源进行更新,所以默认禁用该源的主要内容,如果未能解决你的问题,请参考以下文章

kali更新时出现无法安全地用该源进行更新,所以默认禁用该源。

Ubuntu系统 apt-get update失败,出现“Certificate verification failed ”错误以及“无法安全地用该源进行更新“等问题解决办法

有关ubuntu16.04进行sudo apt-get update更新时出现:‘N: 无法安全地用该源进行更新,所以默认禁用该源。’等问题解决方案

sudo apt update 没有 Release 文件

docker compose:加载共享库时出错:libz.so.1:无法从共享对象映射段:不允许操作

加载共享库时出错:libgfortran.so.1:无法打开共享对象文件:没有这样的文件或目录