在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

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

感谢上面的哥们!

最新文章

  1. JMeter入门使用指南
  2. 对于大量left join 的表查询,可以在关键的 连接节点字段上创建索引。
  3. java代码整理---正则表达式
  4. 【Java】集合_Collections_学习记录
  5. 搭建Android环境
  6. 【Machine Learning in Action --5】逻辑回归(LogisticRegression)从疝气病预测病马的死亡率
  7. CSS也需要重构
  8. P1879 [USACO06NOV]玉米田Corn Fields
  9. WKWebView--JS调用OC的方法
  10. 2017-2018-1 1623 bug终结者 冲刺001
  11. fidderl 录制导出 jmeter格式文件
  12. 【洛谷p1066】2^k进制数
  13. ELK 集群升级操作
  14. spring boot+logback+JdbcTemplate打印sql日志
  15. Django的httprequest对象和httpresponse对象
  16. vue教程1-03 v-for循环
  17. C语言学习笔记 (005) - 二维数组作为函数参数传递剖析
  18. JS实现幸运抽奖页面
  19. JS设计模式——4.继承(概念)
  20. Java和JDK版本的关系

热门文章

  1. jQuery 新添加元素事件绑定无效
  2. window.location.href 页面不跳转解决
  3. elasticsearch 动态增加副本
  4. 从 ELK 到 EFK 的演进
  5. python中的元组
  6. Spyder设置代码自动补全
  7. js data日期初始化的5种方法
  8. mysql sql_mode=only_full_group_by错误解析
  9. [翻译]高并发框架 LMAX Disruptor 介绍
  10. service redis start