首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >Ubuntu 16.4 "W: The repository does not have a Release file." 解决方法

Ubuntu 16.4 "W: The repository does not have a Release file." 解决方法

作者头像
叉叉敌
发布2020-04-23 15:00:57
发布2020-04-23 15:00:57
3.9K2
举报
文章被收录于专栏:ChasaysChasays

问题

执行这个命令sudo apt-get update, 会遇到如下提示

代码语言:javascript
复制
W: The repository 'https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu xenial Release' does not have a Release file.

解决

直接在apt源里面找到对应的, 文件然后注释即可.

代码语言:javascript
复制
$ sudo grep -rwn docker /etc/apt/ 
Binary file /etc/apt/trusted.gpg matches
/etc/apt/sources.list_bak:56:deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu xenial stable
/etc/apt/sources.list_bak:57:# deb-src [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu xenial stable
/etc/apt/sources.list:56:deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu xenial stable
/etc/apt/sources.list:57:# deb-src [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu xenial stable
Binary file /etc/apt/trusted.gpg~ matches
/etc/apt/sources.list.save:56:deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu xenial stable
/etc/apt/sources.list.save:57:# deb-src [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu xenial stable

注释掉对于的行数即可. 前面加上# pound key.

代码语言:javascript
复制
# deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu xenial stable

然后在执行 sudo apt-get update

代码语言:javascript
复制
Reading package lists... Done

小结

遇到类似的问题, 直接就是找到对应的source.list里面有这个, 屏蔽了即可.

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2020/04/22 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 问题
  • 解决
  • 小结
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档