Unable install docker-engine in ubuntu 16.04

I am currently getting the error
E: Failed to fetch https://apt.dockerproject.org/repo/pool/dists/xenial/main/binary-amd64/Packages 403 Forbidden

My machine

  • OS : Ubuntu 16.04
  • kernel : 4.4.0-59-generic

– my error

dev@docker:~$ uname -r
4.4.0-59-generic
dev@docker:~$ apt-key fingerprint 58118E89F3A912897C070ADBF76221572C52609D
pub 4096R/2C52609D 2015-07-14
Key fingerprint = 5811 8E89 F3A9 1289 7C07 0ADB F762 2157 2C52 609D
uid Docker Release Tool (releasedocker) docker@docker.com

dev@docker:~$ sudo apt-get update
Sorry, new users can only put 2 links in a post.
Fetched 102 kB in 0s (241 kB/s)
Reading package lists… Done
W: The repository ‘apt.dockerproject.org/repo/pool xenial 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 apt.dockerproject.org/repo/pool/dists/xenial/main/binary-amd64/Packages 403 Forbidden
E: Some index files failed to download. They have been ignored, or old ones used instead.

I have the exact same error on Ubuntu 16 on an Azure VM

I don’t know why, but I can install docker v1.13 like this : sudo apt-get -y install docker-engine=1.13.0-0~ubuntu-xenial

sudo docker --version
Docker version 1.13.0, build 49bf474

HTH

Nicolas

I’m having the same issue:

I also reported it on reddit here:

https://www.reddit.com/r/docker/comments/5pwprg/403_on_xenialmain_and_xenialtesting/

In your /etc/apt/sources.list (or equivalent), replace ‘xenial’ with ‘ubuntu-xenial’:

$ grep xenial /etc/apt/sources.list.d/additional-repositories.list 
deb https://apt.dockerproject.org/repo/ ubuntu-xenial main
#deb https://apt.dockerproject.org/repo/pool/ xenial testing