Ubuntu19无法安装docker源的示例分析
发表于:2025-12-02 作者:千家信息网编辑
千家信息网最后更新 2025年12月02日,这篇文章主要为大家展示了"Ubuntu19无法安装docker源的示例分析",内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下"Ubuntu19无法安装docke
千家信息网最后更新 2025年12月02日Ubuntu19无法安装docker源的示例分析
这篇文章主要为大家展示了"Ubuntu19无法安装docker源的示例分析",内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下"Ubuntu19无法安装docker源的示例分析"这篇文章吧。
按照各大网站以及个人习惯我会使用下面这种方法添加Docker源:
root@ubuntu:~# sudo add-apt-repository "deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
然而使用上面这条命令给我带来了无尽的烦恼,甚至我都怀疑我是不是一个合格的linux工程师了,使用了这条命令提示以下错误:
Ign:1 https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu eoan InReleaseErr:2 https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu eoan Release404 Not Found [IP: 218.104.71.170 443]Hit:3 http://cn.archive.ubuntu.com/ubuntu eoan InReleaseHit:4 http://cn.archive.ubuntu.com/ubuntu eoan-updates InReleaseHit:5 http://cn.archive.ubuntu.com/ubuntu eoan-backports InReleaseHit:6 http://cn.archive.ubuntu.com/ubuntu eoan-security InReleaseReading package lists... Done E: The repository 'https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu eoan Release' does not have a Release file.N: Updating from such a repository can't be done securely, and is therefore disabled by default.N: See apt-secure(8) manpage for repository creation and user configuration details.
下面是apt源文件中的内容:
deb [arch=amd64] https://download.docker.com/linux/ubuntu eoan stable# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu eoan stabledeb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
发现是没有任何错误的,但是你会发现在使用apt更新时会出现各种各样报错,最终还是没有你想要的docker-ce安装包,还是无法安装:
root@uduntu:~# apt-get updateGet:1 http://cn.archive.ubuntu.com/ubuntu eoan InRelease [255 kB]Get:2 http://cn.archive.ubuntu.com/ubuntu eoan-updates InRelease [88.4 kB]Hit:3 http://cn.archive.ubuntu.com/ubuntu eoan-backports InReleaseGet:4 http://cn.archive.ubuntu.com/ubuntu eoan-security InRelease [92.9 kB]Ign:5 https://download.docker.com/linux/ubuntu eoan InRelease Err:6 https://download.docker.com/linux/ubuntu eoan Release 404 Not Found [IP: 13.225.103.32 443]Reading package lists... Done E: The repository 'https://download.docker.com/linux/ubuntu eoan Release' does not have a Release file.N: Updating from such a repository can't be done securely, and is therefore disabled by default.N: See apt-secure(8) manpage for repository creation and user configuration details.root@uduntu:~# apt search docker-ceroot@uduntu:~#
遇到这种问题我也觉得很头疼,在网上找了很多解决方法都是不行,有人都说是网络问题无法使用外网的源码库,我看到这个文章我都懵了,我还试过安装网易、阿里以及科大的源都不能更好的解决问题,其实这个很简单看一下阿里、科大和网易的他们的源码库是怎么往配置文件里面写的,然后比葫芦画瓢画一个不就完了
解决方法:
在sources.list添加下面这一条就可以:
deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
更新apt源:
root@uduntu:~# apt-get updateGet:1 http://cn.archive.ubuntu.com/ubuntu eoan InRelease [255 kB]Get:2 http://cn.archive.ubuntu.com/ubuntu eoan-updates InRelease [88.4 kB]Hit:3 http://cn.archive.ubuntu.com/ubuntu eoan-backports InReleaseGet:4 http://cn.archive.ubuntu.com/ubuntu eoan-security InRelease [92.9 kB]Get:5 https://download.docker.com/linux/ubuntu bionic InRelease [64.4 kB] Get:6 https://download.docker.com/linux/ubuntu bionic/stable amd64 Packages [9,594 B] Fetched 511 kB in 11s (48.3 kB/s) Reading package lists... Doneroot@uduntu:~#
这样就好了,不报错了,再看看docker-ce这个安装包有没有:
root@uduntu:~# apt search docker-ceSorting... DoneFull Text Search... Donedocker-ce/bionic,now 5:19.03.4~3-0~ubuntu-bionic amd64 [installed] Docker: the open-source application container enginedocker-ce-cli/bionic,now 5:19.03.4~3-0~ubuntu-bionic amd64 [installed,automatic] Docker CLI: the open-source application container engineroot@uduntu:~
以上是"Ubuntu19无法安装docker源的示例分析"这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注行业资讯频道!
内容
示例
分析
方法
篇文章
问题
命令
源码
还是
错误
阿里
网易
学习
帮助
更新
不行
头疼
烦恼
个人
各种各样
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
网络技术如何带动农村发展
安装配置代理服务器
北京数据软件开发过程
iocp服务器端
户外网络服务器
软件开发的机会
百度网盘存在同名数据库
网络安全观影截图
中文科技期刊数据库分文摘报
网络安全法标准
CNKI数据库技术培训
网络安全运维值班规范
武汉网络安全产业港
江阴lenovo服务器维修站
电商带货软件开发报价
电子琴软件开发技术
数据库出现负载过高的情况
天龙怀旧卡级服务器
靠谱的erp分销软件开发项目
tp5 显示数据库表
如何删除服务器缓存
易语言数据库名称
网络基础与网络技术实践
拓石软件开发培训学校
代理记账服务器
阿尔比恩链手游接不到服务器
华三服务器主板坏了
肇庆代办网络安全等级备案
普通服务器怎么搭建私有云
数据库系统概论 微盘