0

I am trying to install docker CE on ubuntu 19.04. I am getting an error 403.

Reading package lists... Done
E: Failed to fetch https://apt.dockerproject.org/repo/dists/ubuntu-disco/InRelease  403  Forbidden [IP: 99.86.52.107 443]
E: The repository 'https://apt.dockerproject.org/repo ubuntu-disco InRelease' is not signed.
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.

I am following the documentation at https://docs.docker.com/v17.09/engine/installation/linux/docker-ce/ubuntu/#os-requirements

Anyone any ideas?

5
  • Error 403 usually means your access is blocked. Are you behind a strict firewall or restrictive network policy? If so, you may need to use a proxy or VPN.
    – Nmath
    Sep 11, 2019 at 1:07
  • Hi, This is a home network. I am not behind a strict firewall or a proxy server. I can update other packages without a problem. Sep 11, 2019 at 13:53
  • when I visit https://apt.dockerproject.org/repo/dists/ubuntu-disco/InRelease in my browser, I also get 403 forbidden. I don't think you have added the correct repository. #4 under heading "Set Up the Repository" lists a different source. Please edit your question to include the results of cat /etc/apt/sources.list, and also include the command that you enter to receive your error -- Also carefully re-read all of the instructions from start to finish to rule out the possibility you missed something (we are all human)
    – Nmath
    Sep 11, 2019 at 19:41
  • Hi, I am unable to add the results of cat /etc/apt/sources.list because it has over 10 links that I cannot add at my current reputation. How do I share its contents? You have however given me a direction to follow so I will check the instructions once again. I have been trying different things from many places. Sep 12, 2019 at 1:24
  • Can you please share the list of commands that you used. I am just following the documentation provided on the website. I am very new to this and I am not sure how to work around the 403 error
    – Ardy
    Feb 12, 2020 at 23:48

3 Answers 3

1

you have to change your CDN try 178.22.122.100, 185.51.200.2 how to change CDN on ubuntu

if 178.22.122.100, 185.51.200.2 dos not work check here or use google cdn...

0

NMath, Once again, many thanks for your help. The break through happened thanks to you observing that the repositories that were there in the docker link were not the same as in the output of my apt command. I deleted the repositories I had used and repeated the steps on the docker website. This time, I was successful in adding the docker repositories and installing it. I suspect the root cause of my problem was following an older set of instructions.

0

Change your DNS. Changed /etc/resolv.conf from 8.4.4.8 to 4.2.2.4 and it worked.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .