首页 > 解决方案 > 存储库“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. 我也尝试使用testandedge版本,但我仍然看到同样的错误。

就像我说的那样,我很困惑,如果有人能指出我眼皮底下可能发生的事情,我将不胜感激。:)

标签: dockerubuntu-18.04

解决方案


推荐阅读