E: 无法下载 https://download.docker.com/linux/ubuntu/dists/Xenial/stable/binary-amd64/Packages 404 Not
E: 无法下载 https://download.docker.com/linux/ubuntu/dists/Xenial/stable/binary-amd64/Packages 404 Not Found
- 在ubuntu16.04上安装Docker Engine时出错
- 一、先用常规解决办法
- 二、漏网之鱼(仍没有删掉的两个文件)
- 三、结果
在ubuntu16.04上安装Docker Engine时出错
在ubuntu16.04上安装Docker Engine时出错,在官网https://docs.docker.com/engine/install/ubuntu/
链接: https://docs.docker.com/engine/install/ubuntu/.
使用以下命令后
echo \"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
接着往下面运行
sudo apt-get update
时出现以下报错
E: 无法下载 https://download.docker.com/linux/ubuntu/dists/Xenial/stable/binary-amd64/Packages 404 Not Found
部分终端中的信息如下:
命中:1 http://packages.osrfoundation.org/gazebo/ubuntu xenial InRelease
命中:2 https://mirrors.ustc.edu.cn/ubuntu xenial InRelease
命中:3 https://mirrors.ustc.edu.cn/ubuntu xenial-updates InRelease
命中:4 https://mirrors.ustc.edu.cn/ubuntu xenial-backports InRelease
命中:5 https://mirrors.ustc.edu.cn/ubuntu xenial-security InRelease
命中:6 http://packages.ros.org/ros/ubuntu xenial InRelease
命中:7 http://ppa.launchpad.net/thopiekar/mt7601/ubuntu xenial InRelease
命中:8 http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu xenial InRelease
忽略:9 https://download.docker.com/linux/ubuntu Xenial InRelease
命中:10 http://ppa.launchpad.net/zarquon42/meshlab/ubuntu xenial InRelease
忽略:11 https://download.docker.com/linux/ubuntu Xenial Release
忽略:12 https://download.docker.com/linux/ubuntu Xenial/stable amd64 Packages
忽略:13 https://download.docker.com/linux/ubuntu Xenial/stable all Packages
忽略:14 https://download.docker.com/linux/ubuntu Xenial/stable Translation-zh_CN
忽略:15 https://download.docker.com/linux/ubuntu Xenial/stable Translation-zh
忽略:16 https://download.docker.com/linux/ubuntu Xenial/stable Translation-en
忽略:17 https://download.docker.com/linux/ubuntu Xenial/stable amd64 DEP-11 Metadata
忽略:18 https://download.docker.com/linux/ubuntu Xenial/stable DEP-11 64x64 Icons
忽略:12 https://download.docker.com/linux/ubuntu Xenial/stable amd64 Packages
忽略:13 https://download.docker.com/linux/ubuntu Xenial/stable all Packages
忽略:14 https://download.docker.com/linux/ubuntu Xenial/stable Translation-zh_CN
忽略:15 https://download.docker.com/linux/ubuntu Xenial/stable Translation-zh
忽略:16 https://download.docker.com/linux/ubuntu Xenial/stable Translation-en
忽略:17 https://download.docker.com/linux/ubuntu Xenial/stable amd64 DEP-11 Metadata
忽略:18 https://download.docker.com/linux/ubuntu Xenial/stable DEP-11 64x64 Icons
忽略:12 https://download.docker.com/linux/ubuntu Xenial/stable amd64 Packages
忽略:13 https://download.docker.com/linux/ubuntu Xenial/stable all Packages
忽略:14 https://download.docker.com/linux/ubuntu Xenial/stable Translation-zh_CN
忽略:15 https://download.docker.com/linux/ubuntu Xenial/stable Translation-zh
忽略:16 https://download.docker.com/linux/ubuntu Xenial/stable Translation-en
忽略:17 https://download.docker.com/linux/ubuntu Xenial/stable amd64 DEP-11 Metadata
忽略:18 https://download.docker.com/linux/ubuntu Xenial/stable DEP-11 64x64 Icons
忽略:12 https://download.docker.com/linux/ubuntu Xenial/stable amd64 Packages
从中可以看出是由于https://download.docker.com此网站添加到了软件源列表中,访问它时,从而引起的报错,那么再把它从软件源列表中删除掉,找一篇博客,照着重新从头再安装一次Docker Engine就好了。
一、先用常规解决办法
1、在“设置”里的软件与更新中将https://download.docker.com此网站前面的对勾取消掉或者直接将此网站“删除”,发现仍然报同样的错误,说明没有彻底清理干净。
2、参考其他博客,采用编辑修改source.list的方法,发现由于上一步的操作,source.list中已经没有此网站,也就无从改起。
3、参考其他博客,将目录下var/lib/apt/lists下的以download.docker开头的两个文件删除,提升权限并使用强制删除命令删除
sudo su
rm -f download.docker.com_linux_ubuntu_dists_xenial_stable_binary-amd64_Packages
rm -f download.docker.com_linux_ubuntu_dists_xenial_InRelease
接着往下面运行
sudo apt-get update
仍然报错…
说明还有没有删掉的。
二、漏网之鱼(仍没有删掉的两个文件)
在etc/apt/sources.list.d中存在两个文件 docker.list以及docker.list.save,仿照前面的操作将其强制删除即可。
sudo su
rm -f docker.list
rm -f docker.list.save
三、结果
做完以上操作之后,再次运行
sudo apt-get update
没有报错,问题解决。
yyd@yyd-linux:/etc/apt/sources.list.d$ sudo apt-get update
命中:1 https://mirrors.ustc.edu.cn/ubuntu xenial InRelease
命中:2 https://mirrors.ustc.edu.cn/ubuntu xenial-updates InRelease
命中:3 https://mirrors.ustc.edu.cn/ubuntu xenial-backports InRelease
命中:4 https://mirrors.ustc.edu.cn/ubuntu xenial-security InRelease
命中:5 http://ppa.launchpad.net/thopiekar/mt7601/ubuntu xenial InRelease
命中:6 http://packages.ros.org/ros/ubuntu xenial InRelease
命中:7 http://packages.osrfoundation.org/gazebo/ubuntu xenial InRelease
命中:8 http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu xenial InRelease
命中:9 http://ppa.launchpad.net/zarquon42/meshlab/ubuntu xenial InRelease
正在读取软件包列表... 完成
E: 无法下载 https://download.docker.com/linux/ubuntu/dists/Xenial/stable/binary-amd64/Packages 404 Not相关推荐
- Ubuntu 16.04系统下出现E: 无法下载 http://ppa.launchpad.net/fcitx-team/nightly/ubuntu/dists/xenial/main/binary
Ubuntu 16.04系统下出现E: 无法下载 http://ppa.launchpad.net/fcitx-team/nightly/ubuntu/dists/xenial/main/binary ...
- E: 无法下载 http://us.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-armhf/Packages 404 Not Found
~$ sudo apt-get update 命中:1 http://deb.odroid.in/5422-s xenial InRelease 命中:2 http://ports.ubuntu.co ...
- X86 ubuntu update提示E: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-arm64/Packag
问题描述: 在使用JetPack3.1给Nvidia TX2 刷机之后,自己电脑在执行sudo apt-get update的时候提示一些arm包安装失败,如下错误: 已下载 42.6 MB,耗时 2 ...
- 从桌面下载源码包到linux,Ubuntu kylin安装微信客户端过程(源码包安装方法)
Ubuntu kylin 17.10系统自带的微信客户端不能使用,删除后重新用源码包安装就可以使用了.本文最后的相关主题采用的方法是通过Snap在Ubuntu中安装微信,源码包安装详细过程如下: 1. ...
- ubuntu16.04出现无法下载 http://ppa.launchpad.net/pyside/ppa/ubuntu/dists/xenial/main/binary-amd64/Packages
一:cd /etc/apt/sources.list.d 二: mv pyside-ubuntu-ppa-xenial.list pyside-ubuntu-ppa-xenial.list.bak 三 ...
- docker显示linux桌面,怎样在桌面上安装 Docker CE?
按照这些简单的步骤在你的 Linux.Mac 或 Windows 桌面上安装 Docker CE. 在上一篇文章中,我们学习了容器世界的一些基本术语.当我们运行命令并在后续文章中使用其中一些术语时,这 ...
- Docker在linux下的安装
Table of Contents Ubuntu Docker 安装 卸载旧版本 使用 Docker 仓库进行安装 设置仓库 安装 Docker Engine-Community 使用 Shell 脚 ...
- Linux ubuntu 服务器部署详细教程
系统环境:ubuntu20.04 安装显卡驱动: 驱动下载,我选择的是520.56.06 禁用nouveau驱动 echo "blacklist nouveau">>/ ...
- docker学习之Ubuntu系统部署docker
目录 安装环境: 支持安装docker的Ubuntu操作系统版本 卸载旧版本的docker 安装docker所需要的依赖包 添加Docker的官方GPG密钥: 设置docker的镜像仓库 安装dock ...
最新文章
- MySQL在创建相同表结构时as和like 使用的区别
- python速度比较_Python和C运算速度对比实测
- 零基础的跨界自学拿到腾讯Offer的学习资料
- HALCON示例程序sequence_diff.hdev通过两张连续图像进行车辆流量监控
- idea中常用的快捷键以及一些奇淫技巧 , 加快我们的开发效率
- 11-mysql-查询进阶六-多表连接查询-自关联查询-练习题
- C语言单向动态链表程序,实现链表的建立,合并,重新排序,链表元素的插入与删除,以及根据元素成员的值进行元素删除。
- SAP License:PS十日通-超预算自动邮件提醒功能
- destoon复制新模块的方法
- cad填充图案乱理石_CAD图案填充应该这么操作!简单又高效!!!1分钟就能学会...
- GB28181之H264打包PS
- 2017年杭州java面试题_2017年Java面试题整理
- Atitit 深入理解耦合Coupling的原理与attilax总结 目录 1.1. 耦合作为名词在通信工程、软件工程、机械工程等工程中都有相关名词术语。	2 1.2. 所有的耦合形式可分为5类:
- 《JAVA并发编程实践JavaConcurrencyinPractice-中文-高清-带书签-完整版(Doug Lea)》
- vs2013连接access2016
- shine your way
- Duplicate Finder and Remover for Mac(重复文件查找删除工具)
- 感觉媒体、表示媒体、表现媒体、存储媒体和传输媒体
- 全国31个省份农产品进口出口额省级数据2001-2021
- SQL UNION运算符