Ubuntu – Install docker on Ubuntu 16.04: Unable to locate package docker-ce

16.04docker

I'm installing docker on Ubuntu 16.04. I'm following all the instructions on https://store.docker.com/editions/community/docker-ce-server-ubuntu?tab=description

(That instructions are the same on https://docs.docker.com/engine/installation/linux/ubuntu/ but cleaner).

When I launch the step "2. Get Docker CE", it doesn't find the docker-ce package:

me@mypc:~$ sudo apt-get install docker-ce
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package docker-ce

I've checked and the repo has been added. I've updated my system, but I don't get the package:

Docker repo added

Does anyone knows what is wrong here?

Best Answer

It's not working because the Ubuntu installed is a 32 bits one (as you can see from the repo image, it's the i386 one).

And the installation guide from Docket clearly states:

OS requirements

To install Docker, you need the 64-bit version of one of these Ubuntu versions:

  • Yakkety 16.10
  • Xenial 16.04 (LTS)
  • Trusty 14.04 (LTS)

I've installed a 64 bits, and all works correctly.

Related Question