Installation Failure - Ubuntu 16.04 LTS

Issue type: Installation 
OS Version/build  Ubuntu 16.04 LTS
App version  N/A
Steps to reproduce:

I’m new to docker, following first time install instructions for docker-ce

I have followed all steps for Install using the repository.
Each step is successful until the last:

tim@Uranus:~$ sudo apt-get install docker-ce
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
tim@Uranus:~$

Searching on this error brings me to many articles on issues with 17.04, but I’m runing 16.04. How can I solve?

Further information:

tim@Uranus:~$ sudo apt-key fingerprint 0EBFCD88
pub   4096R/0EBFCD88 2017-02-22
      Key fingerprint = 9DC8 5822 9FC7 DD38 854A  E2D8 8D81 803C 0EBF CD88
uid                  Docker Release (CE deb) <docker@docker.com>
sub   4096R/F273FCD8 2017-02-22

tim@Uranus:~$

which is the expected response.

On the other hand:

tim@Uranus:~$ apt-cache policy docker-ce
docker-ce:
  Installed: (none)
  Candidate: (none)
  Version table:
tim@Uranus:~$

Not correct, but why?

tim@Uranus:~$ sudo add-apt-repository \
>    "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
>    $(lsb_release -cs) \
>    stable"
tim@Uranus:~$

No errors or any output

and then after add repo, you do

sudo apt-get update

right? then apt-get install again

Hi,
I see this thread is some months old, but I faced the same problem today and came across this “unsolved” issue. Happy to say, I found the root cause - when installing Ubuntu on my VM, I had inadvertently chosen a wrong disk image (xubuntu…i386.iso) instead of xubuntu…amd64.iso.

When trying to install docker it obviously doesn’t find a matching repo for the i386 image… I suspect you had a similar issue - especially because you say when you tried on a brand new instance, it worked fine (then I guess you had the right iso image for ubuntu loaded in the new version!).

Hope this answer helps anyone running into this exact issue in the future!

~madsivas

Hello Madsivas,

I have the similar issue.
Even though I’m using the same disk image I still face the problem.

Any suggestion on this

1 Like

Facing a similar error:

osboxes@osboxes:~/Desktop/saimdir/netnoob/netnoob-dcs-ci-master$ sudo apt-get install docker-ce
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

Even the same error i got it