Docker Community Forums

Share and learn in the Docker community.

Installation Failure - Ubuntu 16.04 LTS


(Timg11) #1
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

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) <>
sub   4096R/F273FCD8 2017-02-22


which is the expected response.

On the other hand:

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

Not correct, but why?

tim@Uranus:~$ sudo add-apt-repository \
>    "deb [arch=amd64] \
>    $(lsb_release -cs) \
>    stable"

No errors or any output

(Sam) #2

and then after add repo, you do

sudo apt-get update

right? then apt-get install again