我已经按照以下步骤安装了 Debian 的 Docker官方安装说明。我的/etc/apt/sources.list
现在包含这一行:
deb [arch=amd64] https://download.docker.com/linux/debian stretch stable
但是,当运行时apt-get update
,我收到一条The repository 'https://download.docker.com/linux/debian stretch Release' does no longer have a Release file
错误消息:
root@server:~# apt-get update
Ign:1 https://download.docker.com/linux/debian stretch InRelease
Err:2 https://download.docker.com/linux/debian stretch Release
Received HTTP code 403 from proxy after CONNECT
<snip>
Reading package lists... Done
E: The repository 'https://download.docker.com/linux/debian stretch Release' does no longer 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.
Docker apt 存储库似乎包含发布文件。我在这里缺少什么,是什么导致 apt 声明存储库中没有发布文件?
答案1
答案2
这与此案例无关,但无论谁搜索它:我也遇到了类似的问题,对于 https_proxy 我犯了一个拼写错误,我用 https://... 输入了代理 URL,但它不适用于我们公司的代理(仅 http ://...有效)。花了一些时间才意识到这个问题,因为问题的真正原因“隐藏”在输出的早期,并且没有打印得那么长和那么引人注目,而且由于误导性/不准确的错误消息在最后,相当长,所以更能引起人们的注意。