moby: Following Ubuntu installation instructions result in "Unable to locate package lxc-docker"

Following the Ubuntu Docker Installation Instructions as well as using the provided curl script is giving me a “Unable to locate package lxc-docker” error. I’ve tried multiple times over the last two days. Thanks!

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.1 LTS
Release:    14.04
Codename:   trusty
$ curl -sSL https://get.docker.io/ubuntu/ | sudo sh
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.qkxN2RNOZA --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
gpg: requesting key A88D21E9 from hkp server keyserver.ubuntu.com
gpg: key A88D21E9: "Docker Release Tool (releasedocker) <docker@dotcloud.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
[...]
Ign https://get.docker.io docker InRelease
[...]
Hit https://get.docker.io docker Release.gpg
Hit https://get.docker.io docker Release
[...]
Hit https://get.docker.io docker/main i386 Packages
[...]
Ign https://get.docker.io docker/main Translation-en_US
Ign https://get.docker.io docker/main Translation-en
[...]
Fetched 1,075 kB in 7s (153 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package lxc-docker

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 43 (9 by maintainers)

Most upvoted comments

@cpuguy83 My error is the same like the others, Unable to locate package lxc-docker

I have finally been able to install docker. I follow the step in http://www.ubuntuupdates.org/ppa/docker:

Download the the repository key with:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9

Then setup the repository:

$ sudo sh -c "echo deb https://get.docker.io/ubuntu docker main \
> /etc/apt/sources.list.d/docker.list"
$ sudo apt-get update
$ sudo apt-get install lxc-docker

Hope it helps.

Now I got:

$ docker -v
Docker version 1.5.0, build a8a31ef

Just a note for the HTTP code 403 from proxy after CONNECT comments: If you are using apt-cacher as a proxy you need to either allow it specifically in the apt-cacher settings or disable the apt-cacher for the installation of docker.

problem solved: use this command (the script references docker.com, when it should reference docker.io):

wget -qO- https://get.docker.io/ | sed -e "s/docker.com/docker.io/g" | sh