docker - 存储库“https://download.docker.com/linx/ubuntu bionic Release”没有发布文件
问题描述
我正在尝试将 docker 安装到我的 Ubuntu Server 18.04.3 LTS 的 vm 实例中。按照官方 Docker 文档中的说明进行操作后,我遇到了一个令我难过的障碍。
运行此命令时:
$ sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
当它无法检索发布文件时,下拉会挂起。如果我从浏览器转到链接,它会将我带到回购池没问题
N: See apt-secure(8) manpage for repository creation and user configuration details.
Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease
Ign:4 https://download.docker.com/linx/ubuntu bionic InRelease
Hit:5 http://us.archive.ubuntu.com/ubuntu bionic-security InRelease
Hit:6 https://download.docker.com/linux/ubuntu bionic InRelease
Err:7 https://download.docker.com/linx/ubuntu bionic Release
404 Not Found [IP: 13.226.101.21 443]
Reading package lists... Done
E: The repository 'https://download.docker.com/linx/ubuntu bionic 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:: command not found
dan@chapter:~$ N: See apt-secure(8) manpage for repository creation and user configuration details.
我尝试的一些解决方案是重新配置我的语言环境。删除sources.list
. 我也尝试使用test
andedge
版本,但我仍然看到同样的错误。
就像我说的那样,我很困惑,如果有人能指出我眼皮底下可能发生的事情,我将不胜感激。:)
解决方案
推荐阅读
- javascript - Node.js 中的 Promise.all 不会阻塞使用 map 和 async 调用的函数调用
- html - 有没有一种优雅的方法可以在响应式网站上点击电话号码?
- reactjs - 如何在不弹出的情况下将 CopyWebpackPlugin 添加到 create-react-app?
- elf - 对于 ELF 文件,如何判断哪个部分包含执行二进制代码?
- jquery-select2 - Jquery Select2 多选与 Dragon NaturallySpeaking
- ios - 无法弄清楚为什么 Error 总是变成“nil”
- sql - 将两个表连接在一起时,无法理解哪个表是 count(*) 实际计数的。
- vba - 如何隐藏具有可变数据的行?
- python - 随机分割数据以用于此函数的训练和测试
- css - 垂直纵横比媒体查询