moby: get.docker.com install fails on Ubuntu 17.04

Trying to install docker on a fresh install of Ubuntu 17.04 fails:

# curl -sSL https://get.docker.com/ | sh
apparmor is enabled in the kernel and apparmor utils were already installed
+ apt-key add -
+ echo -----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1

mQINBFWln24BEADrBl5p99uKh8+rpvqJ48u4eTtjeXAWbslJotmC/CakbNSqOb9o
ddfzRvGVeJVERt/Q/mlvEqgnyTQy+e6oEYN2Y2kqXceUhXagThnqCoxcEJ3+KM4R
mYdoe/BJ/J/6rHOjq7Omk24z2qB3RU1uAv57iY5VGw5p45uZB4C4pNNsBJXoCvPn
TGAs/7IrekFZDDgVraPx/hdiwopQ8NltSfZCyu/jPpWFK28TR8yfVlzYFwibj5WK
dHM7ZTqlA1tHIG+agyPf3Rae0jPMsHR6q+arXVwMccyOi+ULU0z8mHUJ3iEMIrpT
X+80KaN/ZjibfsBOCjcfiJSB/acn4nxQQgNZigna32velafhQivsNREFeJpzENiG
HOoyC6qVeOgKrRiKxzymj0FIMLru/iFF5pSWcBQB7PYlt8J0G80lAcPr6VCiN+4c
NKv03SdvA69dCOj79PuO9IIvQsJXsSq96HB+TeEmmL+xSdpGtGdCJHHM1fDeCqkZ
hT+RtBGQL2SEdWjxbF43oQopocT8cHvyX6Zaltn0svoGs+wX3Z/H6/8P5anog43U
65c0A+64Jj00rNDr8j31izhtQMRo892kGeQAaaxg4Pz6HnS7hRC+cOMHUU4HA7iM
zHrouAdYeTZeZEQOA7SxtCME9ZnGwe2grxPXh/U/80WJGkzLFNcTKdv+rwARAQAB
tDdEb2NrZXIgUmVsZWFzZSBUb29sIChyZWxlYXNlZG9ja2VyKSA8ZG9ja2VyQGRv
Y2tlci5jb20+iQIcBBABCgAGBQJWw7vdAAoJEFyzYeVS+w0QHysP/i37m4SyoOCV
cnybl18vzwBEcp4VCRbXvHvOXty1gccVIV8/aJqNKgBV97lY3vrpOyiIeB8ETQeg
srxFE7t/Gz0rsLObqfLEHdmn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lDogRzd+Vebg4ahyoUdj0
CH+nAk40RIoq6G26u1e+sdgjpCa8jF6vrx+smpgd1HeJdmpahUX0XN3X9f9qU9oj
9A4I1WDalRWJh+tP5WNv2ySy6AwcP9QnjuBMRTnTK27pk1sEMg9oJHK5p+ts8hlS
C4SluyMKH5NMVy9c+A9yqq9NF6M6d6/ehKfBFFLG9BX+XLBATvf1ZemGVHQusCQe
bTGv0C0V9yqtdPdRWVIEhHxyNHATaVYOafTj/EF0lDxLl6zDT6trRV5n9F1VCEh4
Aal8L5MxVPcIZVO7NHT2EkQgn8CvWjV3oKl2GopZF8V4XdJRl90U/WDv/6cmfI08
GkzDYBHhS8ULWRFwGKobsSTyIvnbk4NtKdnTGyTJCQ8+6i52s+C54PiNgfj2ieNn
6oOR7d+bNCcG1CdOYY+ZXVOcsjl73UYvtJrO0Rl/NpYERkZ5d/tzw4jZ6FCXgggA
/Zxcjk6Y1ZvIm8Mt8wLRFH9Nww+FVsCtaCXJLP8DlJLASMD9rl5QS9Ku3u7ZNrr5
HWXPHXITX660jglyshch6CWeiUATqjIAzkEQom/kEnOrvJAtkypRJ59vYQOedZ1s
FVELMXg2UCkD/FwojfnVtjzYaTCeGwFQeqzHmM241iuOmBYPeyTY5veF49aBJA1g
EJOQTvBR8Q==
=Yhur
-----END PGP PUBLIC KEY BLOCK-----

OK
+ sh -c mkdir -p /etc/apt/sources.list.d
+ dpkg --print-architecture
+ sh -c echo deb \[arch=amd64\] https://apt.dockerproject.org/repo ubuntu-zesty main > /etc/apt/sources.list.d/docker.list
+ sh -c sleep 3; apt-get update; apt-get install -y -q docker-engine
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://dl.google.com/linux/chrome/deb stable Release                                  
Hit:4 http://security.ubuntu.com/ubuntu zesty-security InRelease                            
Get:5 http://us.archive.ubuntu.com/ubuntu zesty InRelease [243 kB]                
Hit:6 http://us.archive.ubuntu.com/ubuntu zesty-updates InRelease
Ign:7 https://apt.dockerproject.org/repo ubuntu-zesty InRelease
Hit:8 http://us.archive.ubuntu.com/ubuntu zesty-backports InRelease
Ign:9 https://apt.dockerproject.org/repo ubuntu-zesty Release
Ign:10 https://apt.dockerproject.org/repo ubuntu-zesty/main all Packages
Ign:11 https://apt.dockerproject.org/repo ubuntu-zesty/main amd64 Packages
Ign:12 https://apt.dockerproject.org/repo ubuntu-zesty/main Translation-en
Ign:13 https://apt.dockerproject.org/repo ubuntu-zesty/main Translation-en_US
Ign:14 https://apt.dockerproject.org/repo ubuntu-zesty/main all DEP-11 Metadata
Ign:15 https://apt.dockerproject.org/repo ubuntu-zesty/main amd64 DEP-11 Metadata
Ign:16 https://apt.dockerproject.org/repo ubuntu-zesty/main DEP-11 64x64 Icons
Ign:10 https://apt.dockerproject.org/repo ubuntu-zesty/main all Packages
Ign:11 https://apt.dockerproject.org/repo ubuntu-zesty/main amd64 Packages
Ign:12 https://apt.dockerproject.org/repo ubuntu-zesty/main Translation-en
Ign:13 https://apt.dockerproject.org/repo ubuntu-zesty/main Translation-en_US
Ign:14 https://apt.dockerproject.org/repo ubuntu-zesty/main all DEP-11 Metadata
Ign:15 https://apt.dockerproject.org/repo ubuntu-zesty/main amd64 DEP-11 Metadata
Ign:16 https://apt.dockerproject.org/repo ubuntu-zesty/main DEP-11 64x64 Icons
Ign:10 https://apt.dockerproject.org/repo ubuntu-zesty/main all Packages
Ign:11 https://apt.dockerproject.org/repo ubuntu-zesty/main amd64 Packages
Ign:12 https://apt.dockerproject.org/repo ubuntu-zesty/main Translation-en
Ign:13 https://apt.dockerproject.org/repo ubuntu-zesty/main Translation-en_US
Ign:14 https://apt.dockerproject.org/repo ubuntu-zesty/main all DEP-11 Metadata
Ign:15 https://apt.dockerproject.org/repo ubuntu-zesty/main amd64 DEP-11 Metadata
Ign:16 https://apt.dockerproject.org/repo ubuntu-zesty/main DEP-11 64x64 Icons
Ign:10 https://apt.dockerproject.org/repo ubuntu-zesty/main all Packages
Ign:11 https://apt.dockerproject.org/repo ubuntu-zesty/main amd64 Packages
Ign:12 https://apt.dockerproject.org/repo ubuntu-zesty/main Translation-en
Ign:13 https://apt.dockerproject.org/repo ubuntu-zesty/main Translation-en_US
Ign:14 https://apt.dockerproject.org/repo ubuntu-zesty/main all DEP-11 Metadata
Ign:15 https://apt.dockerproject.org/repo ubuntu-zesty/main amd64 DEP-11 Metadata
Ign:16 https://apt.dockerproject.org/repo ubuntu-zesty/main DEP-11 64x64 Icons
Ign:10 https://apt.dockerproject.org/repo ubuntu-zesty/main all Packages
Ign:11 https://apt.dockerproject.org/repo ubuntu-zesty/main amd64 Packages
Ign:12 https://apt.dockerproject.org/repo ubuntu-zesty/main Translation-en
Ign:13 https://apt.dockerproject.org/repo ubuntu-zesty/main Translation-en_US
Ign:14 https://apt.dockerproject.org/repo ubuntu-zesty/main all DEP-11 Metadata
Ign:15 https://apt.dockerproject.org/repo ubuntu-zesty/main amd64 DEP-11 Metadata
Ign:16 https://apt.dockerproject.org/repo ubuntu-zesty/main DEP-11 64x64 Icons                                                                             
Ign:10 https://apt.dockerproject.org/repo ubuntu-zesty/main all Packages                                                                                   
Err:11 https://apt.dockerproject.org/repo ubuntu-zesty/main amd64 Packages                                                                                 
  403  Forbidden
Ign:12 https://apt.dockerproject.org/repo ubuntu-zesty/main Translation-en                                                                                 
Ign:13 https://apt.dockerproject.org/repo ubuntu-zesty/main Translation-en_US                                                                              
Ign:14 https://apt.dockerproject.org/repo ubuntu-zesty/main all DEP-11 Metadata                                                                            
Ign:15 https://apt.dockerproject.org/repo ubuntu-zesty/main amd64 DEP-11 Metadata                                                                          
Ign:16 https://apt.dockerproject.org/repo ubuntu-zesty/main DEP-11 64x64 Icons                                                                             
Fetched 243 kB in 6s (35.6 kB/s)                                                                                                                           
Reading package lists... Done
W: The repository 'https://apt.dockerproject.org/repo ubuntu-zesty 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 https://apt.dockerproject.org/repo/dists/ubuntu-zesty/main/binary-amd64/Packages  403  Forbidden
E: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
Package docker-engine is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'docker-engine' has no installation candidate

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 10
  • Comments: 24 (8 by maintainers)

Most upvoted comments

Great. As a workaround for the time being, I switched to the xenial source after getting this error:

Edit the file /etc/apt/sources.list.d/docker.list to read:

deb [arch=amd64] https://apt.dockerproject.org/repo ubuntu-xenial main

Then run:

sudo apt-get update
sudo apt-get install docker-engine

sudo echo "deb https://download.docker.com/linux/ubuntu zesty edge" > /etc/apt/sources.list.d/docker.list sudo apt update && sudo apt install docker-ce

Zesty is supported, but you must use the edge channel rather than stable

I have used the yakkety repository and could install docker-ce

deb [arch=amd64] https://download.docker.com/linux/ubuntu yakkety stable

Hey @thaJeztah, is zesty now supported as per your comment? I see this was part of the 17.05-ce release https://github.com/moby/moby/releases/tag/v17.05.0-ce but the doc doesn’t mention it still https://docs.docker.com/engine/installation/linux/ubuntu/#os-requirements

Indeed, when trying to install it for zesty, it fails:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package docker-ce is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'docker-ce' has no installation candidate

Thanks.

Any idea when this will be available in the stable channel?

We haven’t had a “stable” channel release (other than bug fix patches) since March (17.03).

The next stable release is 17.06, which is currently in the RC phase and will be released soon.

On Fri, Jun 9, 2017 at 3:08 PM, Matthew Welke notifications@github.com wrote:

Seconding that inquiry. I’ve been following this and it made sense to me that the earliest possible release would be for May since the Docker team needs to wait for Ubuntu 17.04 to be released and then create a package for it, but it’s now June and I still can’t install it on my Kubuntu 17.04 system. Is there a reason this isn’t in stable channel yet?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/moby/moby/issues/32423#issuecomment-307474604, or mute the thread https://github.com/notifications/unsubscribe-auth/AAwxZhzh8vh80QCYuUKpdrDVk9nVdHw9ks5sCZgugaJpZM4M2W1M .

  • Brian Goff

Whoops, that’s not going to work unless you’re root, in which case, why use sudo at all? Try this:

sudo echo "deb https://download.docker.com/linux/ubuntu zesty edge" > /etc/apt/sources.list.d/docker.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7EA0A9C3F273FCD8
sudo apt update && sudo apt install docker-ce

@ppumkin the docker.io repository are not the official packages, but packages built by Ubuntu; Packages for Ubuntu Zesty should be available on download.docker.com: both in the “stable” and “edge” channel: see https://download.docker.com/linux/ubuntu/dists/zesty/pool/stable/amd64/ and https://download.docker.com/linux/ubuntu/dists/zesty/pool/edge/amd64/

I had to use

sudo apt install docker.io

on 17.04 lubuntu with these workarounds

Let me reopen, so that we can keep track of this for 17.05. I’ll open a PR to add it to the build-script