Docker Community Forums

Share and learn in the Docker community.

Ubuntu-16.04.3 Failed to fetch https://download.docker.com/linux/ubuntu/dists/\/xenial/binary-amd64/Packages 404 Not Found

Hi,

I am following this guide: https: docs.docker. com/engine/installation/linux/docker-ce/ubuntu/#install-using-the-repository

At this point:
$ sudo add-apt-repository
“deb [arch=amd64] https: download.docker. com/linux/ubuntu
$(lsb_release -cs)
stable”

I get this error:
Err:7 https download.docker com/linux/ubuntu /xenial amd64 Packages
404 Not Found

Then I type:
$ sudo apt-get install docker-ce

And I get:
E: Failed to fetch https download.docker. com/linux/ubuntu/dists//xenial/binary-amd64/Packages 404 Not Found

Did I do something wrong? I followed that same procedure few days ago and everything went well…

PS: I modified all the links because I was not allowed to post http link

I’ve got a similar problem, so I’d like to share my solution.

My laptop: arm64, Debian-based OS (Stretch)

I just had to change the repository from the " Install using the repository" step from /ubuntu to /debian, like this:
$ sudo add-apt-repository "deb [arch=arm64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"

Then, running the apt-get update, it finds everything