在sudo apt-get update上找不到用于拉伸发布的Docker软件包

Dam*_*mon 2 apt stretch docker crostini

我已经按照教程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`
Run Code Online (Sandbox Code Playgroud)

我的/etc/apt/sources.list如下

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
Run Code Online (Sandbox Code Playgroud)

pas*_*oop 6

Ubuntu没有stretch。您可能点击了文档上的错误链接。替换ubuntusources.list用文件的URL debian,你似乎是一个Debian机器上。