我在 Ubuntu 16.04 上尝试安装 Docker 时收到以下信息:
michael@michael-VirtualBox:~$ sudo apt-get update
Err:8 https://download.docker.com/linux/ubuntu \ Release
404 Not Found [IP: 13.32.250.25 443]
Reading package lists... Done
E: The repository 'https://download.docker.com/linux/ubuntu \ 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.
有人能帮我解决这个问题吗?
答案1
您的软件源可能不正确。如果您使用列出的命令这里该命令应如下所示:
add-apt-repository deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable
这或多或少也是添加到/etc/apt/sources.lst
答案2
安全源对我来说不起作用;如果您遇到与我相同的问题,您可能需要尝试使用以下存储库链接。
将以下内容添加到您的/etc/apt/sources.list
文件中:
deb [arch=amd64] http://download.docker.com/linux/ubuntu xenial stable