Docker 在 sudo apt-get update 上找不到拉伸版本的包
Docker packages for stretch release failing to be found on sudo apt-get update
我已经按照教程添加了存储库 https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-using-the-repository
但是当我 运行 sudo apt-get update 我得到以下堆栈
Ign:9 https://download.docker.com/linux/ubuntu stretch/stable amd64 Packages
Ign:10 https://download.docker.com/linux/ubuntu stretch/stable all Packages
Ign:12 https://download.docker.com/linux/ubuntu stretch/stable Translation-en
Ign:13 https://download.docker.com/linux/ubuntu stretch/stable Translation-en_US
Err:9 https://download.docker.com/linux/ubuntu stretch/stable amd64 Packages
404 Not Found
Ign:10 https://download.docker.com/linux/ubuntu stretch/stable all Packages
Ign:12 https://download.docker.com/linux/ubuntu stretch/stable Translation-en
Ign:13 https://download.docker.com/linux/ubuntu stretch/stable Translation-en_US
Reading package lists... Done
W: The repository 'https://download.docker.com/linux/ubuntu stretch Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch https://download.docker.com/linux/ubuntu/dists/stretch/stable/binary-amd64/Packages 404 Not Found`
我的/etc/apt/sources.列表如下
deb http://deb.debian.org/debian stretch main
deb http://security.debian.org/debian-security stretch/updates main
deb [arch=amd64] https://download.docker.com/linux/ubuntu stretch stable
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu stretch stable
Ubuntu 没有 stretch
。您可能在文档上单击了错误的 link。将 sources.list
文件 URL 中的 ubuntu
替换为 debian
,因为您似乎在使用 debian 机器。
我已经按照教程添加了存储库 https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-using-the-repository
但是当我 运行 sudo apt-get update 我得到以下堆栈
Ign:9 https://download.docker.com/linux/ubuntu stretch/stable amd64 Packages
Ign:10 https://download.docker.com/linux/ubuntu stretch/stable all Packages
Ign:12 https://download.docker.com/linux/ubuntu stretch/stable Translation-en
Ign:13 https://download.docker.com/linux/ubuntu stretch/stable Translation-en_US
Err:9 https://download.docker.com/linux/ubuntu stretch/stable amd64 Packages
404 Not Found
Ign:10 https://download.docker.com/linux/ubuntu stretch/stable all Packages
Ign:12 https://download.docker.com/linux/ubuntu stretch/stable Translation-en
Ign:13 https://download.docker.com/linux/ubuntu stretch/stable Translation-en_US
Reading package lists... Done
W: The repository 'https://download.docker.com/linux/ubuntu stretch Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch https://download.docker.com/linux/ubuntu/dists/stretch/stable/binary-amd64/Packages 404 Not Found`
我的/etc/apt/sources.列表如下
deb http://deb.debian.org/debian stretch main
deb http://security.debian.org/debian-security stretch/updates main
deb [arch=amd64] https://download.docker.com/linux/ubuntu stretch stable
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu stretch stable
Ubuntu 没有 stretch
。您可能在文档上单击了错误的 link。将 sources.list
文件 URL 中的 ubuntu
替换为 debian
,因为您似乎在使用 debian 机器。