Unable to find docker-ce package when installing Docker

I've been Googling all over to try to figure out why the standard instructions for installing Docker (including the page by Linode) don't work on my Ubuntu 14.04 instance. I followed all the instructions, but when attempting to install the docker-ce package, it can't find it.

I was able to successfully install Docker on a newer instance running 16.04, though.

Any help?

Ign http://us.archive.ubuntu.com trusty InRelease

Hit http://us.archive.ubuntu.com trusty-security InRelease

Hit http://us.archive.ubuntu.com trusty-updates InRelease

Hit http://us.archive.ubuntu.com trusty-backports InRelease

Hit http://us.archive.ubuntu.com trusty Release.gpg

Hit http://us.archive.ubuntu.com trusty-security/main Sources

Hit https://download.docker.com trusty InRelease

Hit http://us.archive.ubuntu.com trusty-security/restricted Sources

Hit http://us.archive.ubuntu.com trusty-security/universe Sources

Hit https://download.docker.com trusty/stable amd64 Packages

Hit http://us.archive.ubuntu.com trusty-security/multiverse Sources

Hit http://us.archive.ubuntu.com trusty-security/main i386 Packages

Hit http://us.archive.ubuntu.com trusty-security/restricted i386 Packages

Hit http://us.archive.ubuntu.com trusty-security/universe i386 Packages

Hit http://us.archive.ubuntu.com trusty-security/multiverse i386 Packages

Hit http://us.archive.ubuntu.com trusty-security/main Translation-en

Hit http://us.archive.ubuntu.com trusty-security/multiverse Translation-en

Hit http://us.archive.ubuntu.com trusty-security/restricted Translation-en

Hit http://us.archive.ubuntu.com trusty-security/universe Translation-en

Hit http://us.archive.ubuntu.com trusty-updates/main Sources

Hit http://us.archive.ubuntu.com trusty-updates/restricted Sources

Hit http://us.archive.ubuntu.com trusty-updates/universe Sources

Hit http://us.archive.ubuntu.com trusty-updates/multiverse Sources

Hit http://us.archive.ubuntu.com trusty-updates/main i386 Packages

Hit http://us.archive.ubuntu.com trusty-updates/restricted i386 Packages

Hit http://us.archive.ubuntu.com trusty-updates/universe i386 Packages

Hit http://us.archive.ubuntu.com trusty-updates/multiverse i386 Packages

Hit http://us.archive.ubuntu.com trusty-updates/main Translation-en

Ign https://download.docker.com trusty/stable Translation-en_US

Hit http://us.archive.ubuntu.com trusty-updates/multiverse Translation-en

Hit http://us.archive.ubuntu.com trusty-updates/restricted Translation-en

Ign https://download.docker.com trusty/stable Translation-en

Hit http://us.archive.ubuntu.com trusty-updates/universe Translation-en

Hit http://us.archive.ubuntu.com trusty-backports/main Sources

Hit http://us.archive.ubuntu.com trusty-backports/restricted Sources

Hit http://us.archive.ubuntu.com trusty-backports/universe Sources

Hit http://us.archive.ubuntu.com trusty-backports/multiverse Sources

Hit http://us.archive.ubuntu.com trusty-backports/main i386 Packages

Hit http://us.archive.ubuntu.com trusty-backports/restricted i386 Packages

Hit http://us.archive.ubuntu.com trusty-backports/universe i386 Packages

Hit http://us.archive.ubuntu.com trusty-backports/multiverse i386 Packages

Hit http://us.archive.ubuntu.com trusty-backports/main Translation-en

Hit http://us.archive.ubuntu.com trusty-backports/multiverse Translation-en

Hit http://us.archive.ubuntu.com trusty-backports/restricted Translation-en

Hit http://us.archive.ubuntu.com trusty-backports/universe Translation-en

Hit http://us.archive.ubuntu.com trusty Release

Hit http://us.archive.ubuntu.com trusty/main Sources

Hit http://us.archive.ubuntu.com trusty/restricted Sources

Hit http://us.archive.ubuntu.com trusty/universe Sources

Hit http://us.archive.ubuntu.com trusty/multiverse Sources

Hit http://us.archive.ubuntu.com trusty/main i386 Packages

Hit http://us.archive.ubuntu.com trusty/restricted i386 Packages

Hit http://us.archive.ubuntu.com trusty/universe i386 Packages

Hit http://us.archive.ubuntu.com trusty/multiverse i386 Packages

Hit http://us.archive.ubuntu.com trusty/main Translation-en

Hit http://us.archive.ubuntu.com trusty/multiverse Translation-en

Hit http://us.archive.ubuntu.com trusty/restricted Translation-en

Hit http://us.archive.ubuntu.com trusty/universe Translation-en

Ign http://us.archive.ubuntu.com trusty/main Translation-en_US

Ign http://us.archive.ubuntu.com trusty/multiverse Translation-en_US

Ign http://us.archive.ubuntu.com trusty/restricted Translation-en_US

Ign http://us.archive.ubuntu.com trusty/universe Translation-en_US

Reading package lists… Done

[email protected]:~$ apt install docker-ce

E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)

E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

[email protected]:~$ sudo apt install docker-ce

Reading package lists… Done

Building dependency tree

Reading state information… Done

E: Unable to locate package docker-ce

5 Replies

Hello,

Quick and easy fix :)

  1. Update the apt package: $ sudo apt-get update

  2. Add Docker's Official GPG key: $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

  3. Add the stable repository: $ sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable"

Now you are almost ready to install Docker CE!

  1. Update the apt package again: $ sudo apt-get update

  2. Install docker-ce: $ sudo apt-get install docker-ce

Should be all set!

Those look like the same steps as in your documentation that I followed previously. At any rate, I still have the same results after following the steps you provided.

Just followed along with the steps on the docker website on a 14.04 Linode, and I can confirm it's working without issue.

[email protected]:~# apt-cache policy docker-ce
docker-ce:
  Installed: 18.03.0~ce-0~ubuntu
  Candidate: 18.03.0~ce-0~ubuntu

I've tried it a few ways and haven't been able to recreate what you're seeing. I'd suggest starting again from scratch if you can, I've followed those steps a few times at this point and they definitely work.

I've tried the steps from start to finish at least a dozen times, as I've come across them multiple times across the web. For whatever reason, there seems to be some sort of issue matching my distribution up with an available docker-ce package.

For what it's worth, I'm running 14.04 but it was upgraded from 12.10.

Is there some way to check what kind of kernel it's using to identify packages that are compatible? Or anything else to try here?

Other than starting over with a brand new instance, which isn't ideal for all sorts of reasons, I'm completely stumped.

Please check this link here on how to install docker.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct