docker配置仓储库时出错:无法安全地用该源进行更新,所以默认禁用该源
2024-08-26 19:22:35
在Ubuntu上安装docker,配置仓储库时第一次使用了阿里去的镜像,如下
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) 手册以了解仓库创建和用户配置方面的细节。
显示是连接 到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
回车卸载。卸载 后再次执行阿里云的仓储库,成功!
感谢上面的哥们!
最新文章
- JMeter入门使用指南
- 对于大量left join 的表查询,可以在关键的 连接节点字段上创建索引。
- java代码整理---正则表达式
- 【Java】集合_Collections_学习记录
- 搭建Android环境
- 【Machine Learning in Action --5】逻辑回归(LogisticRegression)从疝气病预测病马的死亡率
- CSS也需要重构
- P1879 [USACO06NOV]玉米田Corn Fields
- WKWebView--JS调用OC的方法
- 2017-2018-1 1623 bug终结者 冲刺001
- fidderl 录制导出 jmeter格式文件
- 【洛谷p1066】2^k进制数
- ELK 集群升级操作
- spring boot+logback+JdbcTemplate打印sql日志
- Django的httprequest对象和httpresponse对象
- vue教程1-03 v-for循环
- C语言学习笔记 (005) - 二维数组作为函数参数传递剖析
- JS实现幸运抽奖页面
- JS设计模式——4.继承(概念)
- Java和JDK版本的关系