神剑山庄资源网 Design By www.hcban.com
按照各大网站以及个人习惯我会使用下面这种方法添加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 InRelease Err:2 https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu eoan Release 404 Not Found [IP: 218.104.71.170 443] Hit:3 http://cn.archive.ubuntu.com/ubuntu eoan InRelease Hit:4 http://cn.archive.ubuntu.com/ubuntu eoan-updates InRelease Hit:5 http://cn.archive.ubuntu.com/ubuntu eoan-backports InRelease Hit:6 http://cn.archive.ubuntu.com/ubuntu eoan-security InRelease Reading 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 stable deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
发现是没有任何错误的,但是你会发现在使用apt更新时会出现各种各样报错,最终还是没有你想要的docker-ce安装包,还是无法安装:
root@uduntu:~# apt-get update Get: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 InRelease Get: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-ce root@uduntu:~#
遇到这种问题我也觉得很头疼,在网上找了很多解决方法都是不行,有人都说是网络问题无法使用外网的源码库,我看到这个文章我都懵了,我还试过安装网易、阿里以及科大的源都不能更好的解决问题,其实这个很简单看一下阿里、科大和网易的他们的源码库是怎么往配置文件里面写的,然后比葫芦画瓢画一个不就完了
解决方法:
在sources.list添加下面这一条就可以:
deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
更新apt源:
root@uduntu:~# apt-get update Get: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 InRelease Get: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... Done root@uduntu:~#
这样就好了,不报错了,再看看docker-ce这个安装包有没有:
root@uduntu:~# apt search docker-ce Sorting... Done Full Text Search... Done docker-ce/bionic,now 5:19.03.4~3-0~ubuntu-bionic amd64 [installed] Docker: the open-source application container engine docker-ce-cli/bionic,now 5:19.03.4~3-0~ubuntu-bionic amd64 [installed,automatic] Docker CLI: the open-source application container engine root@uduntu:~
总结
以上所述是小编给大家介绍的分享Ubuntu19无法安装docker源问题,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对网站的支持!
如果你觉得本文对你有帮助,欢迎转载,烦请注明出处,谢谢!
神剑山庄资源网 Design By www.hcban.com
神剑山庄资源网
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件!
如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
神剑山庄资源网 Design By www.hcban.com
暂无分享Ubuntu19无法安装docker源问题的评论...
RTX 5090要首发 性能要翻倍!三星展示GDDR7显存
三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。
首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。
据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。
更新日志
2024年09月21日
2024年09月21日
- 群星.1995-烧得厉害VOL.4两个世界【滚石】【WAV+CUE】
- 归龙潮中浦城区宝箱位置收集大全 中浦区宝箱解密攻略
- 黑神话悟空上品幽灯鬼精魄获取方法一览|上品幽灯鬼精魄收集攻略
- 《电锯糖心:RePOP》发售首日表现亮眼,玩家峰值超越《星鸣特攻》
- NewViennaOctet,ViennaWindSoloists-TheDeccaRecordings(2024)18CD[FLAC]-8
- 金梅子-《靓声妹3又见炊烟》[WAV+CUE]
- 杨阳《约定HQCDII》头版限量编号2024[WAV+CUE]
- 曝《黑神话:悟空》DLC明年推出 农历新年前后
- PS5日本涨价19% 索尼股价应声上涨2.7%
- 《黑神话》发行平台遭大规模网攻 外媒却鲜有报道
- 伍佰《爱你伍佰年 世纪典藏原音精选3CD》[WAV+CUE][2.3GB]
- 伍佰《爱情的尽头》[WAV+CUE][2.6GB]
- 伍佰 《光环摇滚之声DSD》[WAV+CUE][500MB]
- 王菲.1999-只爱陌生人【EMI百代】【WAV+CUE】
- 林美音.1993-酒后的心声【瑞华】【WAV+CUE】