I've installed Docker for Debian following the official installation instructions. My /etc/apt/sources.list now contain this line:

deb [arch=amd64] https://download.docker.com/linux/debian stretch stable

However, when running apt-get update, I get an The repository 'https://download.docker.com/linux/debian stretch Release' does no longer have a Release file error message:

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
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.

The Docker apt repo does seems to contain the Release file. What am I missing here, what's causing apt to state that there's no release file in the repo?

| improve this question | | | | |

The Docker repository does indeed have a Release file for Stretch, but your proxy is denying access to it:

Received HTTP code 403 from proxy after CONNECT

HTTP 403 is the “Forbidden” status, i.e. your client is not allowed, by the proxy, to access the target URL.

| improve this answer | | | | |
  • 1
    I can't believe I overlooked that one. Thanks! – kenneho Jul 4 '19 at 9:27

It's not about this case, but whoever searches for it: I had a similar issue where for https_proxy I made a typo and I typed the proxy URL with https://... and it did not work with our company proxy (only http://... works). It took some time to realize the problem, because the real cause of the problem is "hidden" earlier in the output and not printed as long and as spectacularly and because of the misleading/inaccurate error message is at the end, quite long, so catches the attention more.

| improve this answer | | | | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.