本文介绍了在sudo apt-get update上找不到用于拉伸发布的Docker软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已按照教程 https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-using-the-repository

但是当我运行sudo apt-get update时,我得到了以下堆栈

but when I run sudo apt-get update I get the following stack

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.list如下

My /etc/apt/sources.list is as follow

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.您可能点击了文档上的错误链接.好像在debian机器上一样,将sources.list文件URL中的ubuntu替换为debian.

Ubuntu doesn't have stretch. You probably clicked on the wrong link on the docs. Replace ubuntu in the sources.list file URL with debian, as you seem to be on a debian machine.

这篇关于在sudo apt-get update上找不到用于拉伸发布的Docker软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 15:58