Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
存储库&x27;https://download.docker.com/linx/ubuntu 仿生释放&x27;没有发布文件_Docker_Ubuntu 18.04 - Fatal编程技术网

存储库&x27;https://download.docker.com/linx/ubuntu 仿生释放&x27;没有发布文件

存储库&x27;https://download.docker.com/linx/ubuntu 仿生释放&x27;没有发布文件,docker,ubuntu-18.04,Docker,Ubuntu 18.04,我正在尝试将docker安装到我的Ubuntu服务器18.04.3 LTS的vm实例中。在遵循Docker官方文档的指示后,我遇到了一个让我难堪的障碍 运行此命令时: $ sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable" 下拉列表在无法检索发布文件时挂起。如果我从浏览器转到链接,它会将我带到回购池

我正在尝试将docker安装到我的Ubuntu服务器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.
我尝试的一些解决方案是重新配置我的区域设置。删除
源.列表中的所有条目
。我还尝试使用
测试
边缘
版本,但是我仍然看到相同的错误


正如我所说,我很困惑,如果有人能指出我鼻子底下的东西,我将不胜感激

运行
apt add repository
时,URL中的
linux
中缺少一个“u”;您可以在
/etc/apt/sources.list.d
中编辑文件来修复此问题。(但请注意,堆栈溢出更多的是关于实际编程问题,而不仅仅是“如何安装Docker”;其中有更多的细节。)在
/etc/apt/sources.list.d
中没有任何内容。当我运行命令
addapt repository
时,字符串是正确的。这让我很好奇,为什么只有发行版文件包含打字错误。出于好奇,我回到
源文件。列表
文件,果然找到了与打字错误相关的链接。在这里,我认为在从终端删除链接后,该链接将保持注释状态。当您运行
apt add repository
时,您在URL中的
linux
中遗漏了一个“u”;您可以在
/etc/apt/sources.list.d
中编辑文件来修复此问题。(但请注意,堆栈溢出更多的是关于实际编程问题,而不仅仅是“如何安装Docker”;其中有更多的细节。)在
/etc/apt/sources.list.d
中没有任何内容。当我运行命令
addapt repository
时,字符串是正确的。这让我很好奇,为什么只有发行版文件包含打字错误。出于好奇,我回到
源文件。列表
文件,果然找到了与打字错误相关的链接。在这里,我认为从终端删除链接后,链接将保持评论状态。