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

原文地址:https://www.cnblogs.com/jpfss/p/11106413.html

时间: 2024-10-09 20:57:07

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

配置Mysql Cluster时出错Unable to connect with connect string: nodeid=0,localhost:1186问题的解决

在执行 /etc/init.d/ndbd --initial出现下列错误 [[email protected] ~]# /etc/init.d/ndbd --initialUnable to connect with connect string: nodeid=0,localhost:1186Retrying every 5 seconds. Attempts left: 12 11 10 9 8 7 6 5 4 3 2 1, failed. 解决办法 1.查看/etc/my.cnf文件配置

创建 cachingConfiguration 的配置节处理程序时出错: 未能加载文件或

C:\Users\xxx\Documents\IISExpress\config\applicationhost.config 将这里面带的项目路径替换成你当前路径 {"创建 cachingConfiguration 的配置节处理程序时出错: 未能加载文件或程序集"Microsoft.Practices.EnterpriseLibrary.Caching, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e

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

kali更新时无法安全地用该源进行更新,所以默认禁用该源. 先附上各种源             (其实系统本身就自带了更新源,去掉其注释也是可以的,现在官方源的下载速度也还ok,下面的三选一亦可) #kali官方源 deb http://http.kali.org/kali kali-rolling main non-free contrib #中科大的源 deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contri

Spring配置c3p0数据源时出错报:java.lang.NoClassDefFoundError: com/mchange/v2/ser/Indirector

今天在使用Spring配置c3p0数据源时,使用的数据库是mysql,服务器是tomcat,运行时报了一个 java.lang.NoClassDefFoundError: com/mchange/v2/ser/Indirector 网络上找了很久都没有解决,最后发现是因为:         C3P0 少了个 jar 包,mchange-commons-java-0.2.3.1.jar 因为c3p0.jar依赖另一个jar包,就是mchange-commons-java-0.2.3.1.jar.

那些年我们装过的数据库---盘点sqlserver2008安装时遇到的各种的问题(持续更新中)

给自己安过sqlServer2008,也给好多同学安过sqlServer2008,期间遇到了好多不同的另人心烦的问题,在这里整理一下,(涉及到的部分方法是在网上找的,有些也没试过,仅仅是在这里整理一下,特此声明) 错误一:创建 system.diagnostics 的配置节处理程序时出错:,这样的问题在检查配置时会一直要求重新启动 未能载入文件或程序集"System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e08

将本地jar包手动拷贝到Maven库中,在其他电脑上用Maven打包时出错

背景交代:在做图片水印时候引入了两个包文件,这两个包是JDK自带的私有包,不能用Maven库里下载,因此笔者手动将rt和jce两个工具jar文件拷贝到本地的Maven库中,如下图 import com.sun.image.codec.jpeg.JPEGCodec; import com.sun.image.codec.jpeg.JPEGImageEncoder; 然后在pom配置文件里写上下面的配置 将jce和rt拷到如下路径(rt类似) 然后项目在其他电脑上用Maven打包时候报错如下: Fa

决Ubuntu使用`make menuconfig`配置Linux 内核时,出现缺少'ncurses-devel'库支持。

*** Unable to find the ncurses libraries or the *** required header files. *** 'make menuconfig' requires the ncurses libraries. *** *** Install ncurses (ncurses-devel) and try again. ***  1. 问题状况 一般情况下使用系统自带的软件管理器apt-get就可以安装了(`sudo apt-get install 

nginx配置if错误语句时出错一例

server{ if (!-e $request_filename)        {                rewrite ^(.*)$ /index.php last;        } } 如果if 没有放在location时,在做memc缓存时,在错误日志里会提示以下信息 2014/05/12 10:45:51 [error] 11520#0: *325726 srcache_fetch: cache sent truncated response body while send

无法将类型为“Excel.ApplicationClass”的 COM 对象强制转换为接口类 型“Excel._Application”。此操作失败的原因是对 IID 为“{000208D5 -0000-0000-C000-000000000046}”的接口的 COM 组件调用 QueryInterface 因以下错误而失败: 加载类型库/DLL 时出错。 (异常来 自 HRESULT:

无法将类型为“Excel.ApplicationClass”的 COM 对象强制转换为接口类 型“Excel._Application”.此操作失败的原因是对 IID 为“{000208D5 -0000-0000-C000-000000000046}”的接口的 COM 组件调用 QueryInterface 因以下错误而失败: 加载类型库/DLL 时出错. (异常来 自 HRESULT:0x80029C4A (TYPE_E_CANTLOADLIBRARY)) 经过多般折腾,还是没什么更好的办法.