New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Following Ubuntu installation instructions result in "Unable to locate package lxc-docker" #7422

Closed
djanderson opened this Issue Aug 5, 2014 · 43 comments

Comments

Projects
None yet
@djanderson
Copy link

djanderson commented Aug 5, 2014

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
@jamtur01

This comment has been minimized.

Copy link
Contributor

jamtur01 commented Aug 5, 2014

Ping @tianon

@tianon

This comment has been minimized.

Copy link
Member

tianon commented Aug 5, 2014

Is this on a 32bit install of Ubuntu by any chance? ;)

@djanderson

This comment has been minimized.

Copy link

djanderson commented Aug 5, 2014

It is, and now that you say that I see the (64 bit) beside the version in
the installation instructions. Thanks!

On Tue, Aug 5, 2014 at 1:05 PM, Tianon Gravi notifications@github.com
wrote:

Is this on a 32bit install of Ubuntu by any chance? ;)

Reply to this email directly or view it on GitHub
#7422 (comment).

@tourdownunder

This comment has been minimized.

Copy link

tourdownunder commented Sep 16, 2014

I also got this issue

sudo apt-get install lxc-docker

lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty

uname -m

x86_64

Though skipped it and the next line

sudo docker run -i -t ubuntu /bin/bash

appeared to download and then start the docker container.

@efortuna

This comment has been minimized.

Copy link

efortuna commented Oct 16, 2014

Same problem, running x64 OS. I'm getting a 403 during the update step, though:

$ sudo apt-get update
[...]
W: Failed to fetch https://get.docker.com/ubuntu/dists/docker/main/binary-amd64/Packages  Received HTTP code 403 from proxy after CONNECT

W: Failed to fetch https://get.docker.com/ubuntu/dists/docker/main/binary-i386/Packages  Received HTTP code 403 from proxy after CONNECT

E: Some index files failed to download. They have been ignored, or old ones used instead.
$ sudo apt-get install lxc-docker
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package lxc-docker
@tianon

This comment has been minimized.

Copy link
Member

tianon commented Oct 16, 2014

This is magic:

$ wget -c 'https://get.docker.com/ubuntu/pool/main/l/lxc-docker-1.3.0/lxc-docker-1.3.0_1.3.0_amd64.deb'
--2014-10-16 16:16:09--  https://get.docker.com/ubuntu/pool/main/l/lxc-docker-1.3.0/lxc-docker-1.3.0_1.3.0_amd64.deb
Resolving get.docker.com... 162.242.195.82
Connecting to get.docker.com|162.242.195.82|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2014-10-16 16:16:10 ERROR 403: Forbidden.

$ curl -sSL 'https://get.docker.com/ubuntu/pool/main/l/lxc-docker-1.3.0/lxc-docker-1.3.0_1.3.0_amd64.deb' -OJ
$ ls -l lxc-docker-1.3.0_1.3.0_amd64.deb
-rw-rw-r-- 1 tianon tianon 76963 Oct 16 16:16 lxc-docker-1.3.0_1.3.0_amd64.deb

Possibly POODLE-related?

@efortuna

This comment has been minimized.

Copy link

efortuna commented Oct 16, 2014

Hmm, I'm getting timeouts with that, too:

$ curl -sSL 'https://get.docker.com/ubuntu/pool/main/l/lxc-docker-1.3.0/lxc-docker-1.3.0_1.3.0_amd64.deb' -OJ
curl: (7) Failed to connect to get.docker.com port 443: Connection timed out

Perhaps get.docker.com is unhappy at the moment? I can try again in an hour or so.

@vocatan

This comment has been minimized.

Copy link

vocatan commented Oct 27, 2014

wget -c 'https://get.docker.com/ubuntu/pool/main/l/lxc-docker-1.3.0/lxc-docker-1.3.0_1.3.0_amd64.deb'
--2014-10-27 16:12:54-- https://get.docker.com/ubuntu/pool/main/l/lxc-docker-1.3.0/lxc-docker-1.3.0_1.3.0_amd64.deb
Resolving get.docker.com (get.docker.com)... 162.242.195.82
Connecting to get.docker.com (get.docker.com)|162.242.195.82|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2014-10-27 16:12:54 ERROR 403: Forbidden.

Same issue here. needed to rebuild a docker host today.

@vshalts

This comment has been minimized.

Copy link

vshalts commented Oct 27, 2014

Yep, the same problem :(

And curl don't work also:

403 Forbidden

  • Code: AllAccessDisabled
  • Message: All access to this object has been disabled
  • RequestId: ...
  • HostId: ...

@greglearns

This comment has been minimized.

Copy link

greglearns commented Oct 27, 2014

+1 same 403 problem

1 similar comment
@mdonnellyli

This comment has been minimized.

Copy link

mdonnellyli commented Oct 27, 2014

+1 same 403 problem

@jessfraz

This comment has been minimized.

Copy link
Contributor

jessfraz commented Oct 27, 2014

Thanks, it's a known issue, we're fixing it as we speak. For future reference, please send email to support@docker.com when it comes to docker.com issues.

@greglearns

This comment has been minimized.

Copy link

greglearns commented Oct 27, 2014

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
@boldfield

This comment has been minimized.

Copy link

boldfield commented Oct 27, 2014

+1 same 403 problem

@jessfraz jessfraz closed this Oct 27, 2014

@phifty

This comment has been minimized.

Copy link

phifty commented Oct 27, 2014

+1 still the same problem

@boldfield

This comment has been minimized.

Copy link

boldfield commented Oct 27, 2014

@phifty These tickets are getting closed as they're opened... @cpuguy83 pointed me to https://status.docker.com/ in #8797

@jyang

This comment has been minimized.

Copy link

jyang commented Nov 3, 2014

#8797 says it's back up and functional now. I am still seeing this problem. Does anyone else see it?

W: Failed to fetch https://get.docker.io/ubuntu/dists/docker/main/binary-amd64/Packages Received HTTP code 403 from proxy after CONNECT

W: Failed to fetch https://get.docker.io/ubuntu/dists/docker/main/binary-i386/Packages Received HTTP code 403 from proxy after CONNECT

E: Some index files failed to download. They have been ignored, or old ones used instead.

@thaJeztah

This comment has been minimized.

Copy link
Member

thaJeztah commented Nov 3, 2014

@jyang maybe (as suggested above) check the status page and otherwise report at support@docker.com

@tiborvass

This comment has been minimized.

Copy link
Collaborator

tiborvass commented Nov 3, 2014

@jyang can you come to IRC #docker and ping me (tibor) ?

@schneidr

This comment has been minimized.

Copy link

schneidr commented Nov 26, 2014

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.

@SamihEisa

This comment has been minimized.

Copy link

SamihEisa commented Dec 8, 2014

Same problem !!!! running x64 ubuntu 12.04
E: Unable to locate package lxc-docker

@mgcrea

This comment has been minimized.

Copy link

mgcrea commented Dec 9, 2014

Same issue here, as @schneidr it breaks apt-cacher. Please reopen!

@peacelake

This comment has been minimized.

Copy link

peacelake commented Dec 11, 2014

This works for me:
sudo apt-get install docker.io

@ziyan-junaideen

This comment has been minimized.

Copy link

ziyan-junaideen commented Dec 25, 2014

@peacelake docker.io gives a some 1.0 version which is old.

@anilrona2

This comment has been minimized.

Copy link

anilrona2 commented Feb 26, 2015

Any solution to Issue 403 ??

I tried disabling apt-cacher as suggested by @schneidr, but it doesn't help either.

@peacelake

This comment has been minimized.

@anilrona2

This comment has been minimized.

Copy link

anilrona2 commented Feb 26, 2015

curl -sSL https://get.docker.io/ubuntu/ | sudo sh

results in

W: Failed to fetch https://get.docker.com/ubuntu/dists/docker/main/binary-amd64/Packages Received HTTP code 403 from proxy after CONNECT

W: Failed to fetch https://get.docker.com/ubuntu/dists/docker/main/binary-i386/Packages Received HTTP code 403 from proxy after CONNECT

E: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree

Reading state information... Done
E: Unable to locate package lxc-docker

Mine is 64 bit machine.

@mmichaa

This comment has been minimized.

Copy link

mmichaa commented Mar 4, 2015

I could successfully install lxc-docker on some x86_64 machine. Today I tried to install lxc-docker on a new i686 machine, a 32-bit machine. I have a "/etc/apt/sources.list.d/docker.list" file with the contents "deb https://get.docker.io/ubuntu docker main". I did the keyserver thing and a "apt-get update" after creating this file. I didn't get an error during "apt-get update", everything looks good.
But I couldn't install lxc-docker-1.5.0, because apt couldn't locate this package. Doing a "apt-cache search docker" doesn't list any lxy-docker package.
I tried a "curl -sSL https://get.docker.io/ubuntu/dists/docker/main/binary-amd64/Packages" - which isn't the correct package list for my 32-bit machine, I know - and I got package list. Doing this with with https://get.docker.io/ubuntu/dists/docker/main/binary-i386/Packages doesn't raise any error, but I get an empty response (see the Content-Length header):

curl -sSL https://get.docker.io/ubuntu/dists/docker/main/binary-i386/Packages -v
* Hostname was NOT found in DNS cache
*   Trying 162.242.195.82...
* Connected to get.docker.com (162.242.195.82) port 443 (#0)
* successfully set certificate verify locations:
*   CAfile: none
  CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using ECDHE-RSA-AES128-GCM-SHA256
* Server certificate:
*    subject: OU=GT68254618; OU=See www.rapidssl.com/resources/cps (c)13; OU=Domain Control Validated - RapidSSL(R); CN=*.docker.com
*    start date: 2014-10-29 21:14:42 GMT
*    expire date: 2017-11-13 14:19:33 GMT
*    subjectAltName: get.docker.com matched
*    issuer: C=US; O=GeoTrust Inc.; CN=RapidSSL SHA256 CA - G3
*    SSL certificate verify ok.
> GET /ubuntu/dists/docker/main/binary-i386/Packages HTTP/1.1
> User-Agent: curl/7.35.0
> Host: get.docker.com
> Accept: */*
> 
< HTTP/1.1 200 OK
* Server nginx/1.6.2 is not blacklisted
< Server: nginx/1.6.2
< Date: Wed, 04 Mar 2015 11:02:34 GMT
< Content-Type: inode/x-empty
< Content-Length: 0
< Connection: close
< x-amz-id-2: MTiB1/Ox4fM8232zLfQcOWouwG5Y8CYn8Ar0U5N6j/iO28g3Rx6YyQf9Bb1xQViR
< x-amz-request-id: 549F5596B5D6EED0
< x-amz-meta-s3cmd-attrs: uid:0/gname:root/uname:root/gid:0/mode:33188/mtime:1376692296/atime:1376692296/ctime:1376692296
< Last-Modified: Wed, 10 Sep 2014 20:35:26 GMT
< ETag: "d41d8cd98f00b204e9800998ecf8427e"
< Strict-Transport-Security: max-age=31536000
< 
* Closing connection 0
* SSLv3, TLS alert, Client hello (1):
@unclejack

This comment has been minimized.

Copy link
Contributor

unclejack commented Mar 4, 2015

i686/x86/386 isn't supported right now and there are no packages for it. This will change in the future, but it's not currently supported.

@janthony

This comment has been minimized.

Copy link

janthony commented Mar 9, 2015

I was able to install the latest using curl -sSL https://get.docker.com/ubuntu/ | sudo sh

@ismailsunni

This comment has been minimized.

Copy link

ismailsunni commented Mar 23, 2015

I did it with both curl and wget, but still got the problem. Anyone found the solution? I use Ubuntu 14.04, 64 bit.

@cpuguy83

This comment has been minimized.

Copy link
Contributor

cpuguy83 commented Mar 23, 2015

@ismailsunni It would be helpful to paste the errors you are seeing in a gist.
Also, please come to #docker on freenode, or docker-user mailing list for support related questions.

@tekhedd

This comment has been minimized.

Copy link

tekhedd commented Mar 23, 2015

If you do find what these people are doing wrong while supporting them on freenode and the mailing list, you might want to post it here in this issue, as it is the first thing to turn up when you search for this issue. (Hint: I am having the same problem)

@ismailsunni

This comment has been minimized.

Copy link

ismailsunni commented Mar 24, 2015

@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
@anilrona2

This comment has been minimized.

Copy link

anilrona2 commented Mar 25, 2015

I tried this with my personal computer and it worked without any issue. I
thought it might be firewall issue and tried different things but had to
give up as I had inadequate amount of time.

FYI, I used the binary in the end as suggested bu their service center.

On Mon, Mar 23, 2015 at 10:03 PM, Ismail Sunni notifications@github.com
wrote:

@cpuguy83 https://github.com/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


Reply to this email directly or view it on GitHub
#7422 (comment).

@LeoIannacone

This comment has been minimized.

Copy link

LeoIannacone commented Jun 26, 2015

This fixed the issue for me.

Download cert by hand:

echo -n | openssl s_client -connect get.docker.io:443 | \
  sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | \
  sudo tee '/usr/local/share/ca-certificates/get_docker_io.crt'

Update certs:

sudo update-ca-certificates
@tekhedd

This comment has been minimized.

Copy link

tekhedd commented Jun 26, 2015

I just tried apt-get update ; apt-get install lxc-docker and it worked, with no changes since the last time I tried. I think this was fixed at the repository end. Issue resolved?

@coderbalak

This comment has been minimized.

Copy link

coderbalak commented Jun 29, 2015

The following worked for me:

(a) Ensured that I had 64bit Ubuntu (12.04, 3.13.* kernel)
(b) Used the following command to fetch the latest deb:

curl -sSL 'https://get.docker.com/ubuntu/pool/main/l/lxc-docker-1.7.0/lxc-docker-1.7.0_1.7.0_amd64.deb' -OJ

(c) sudo dpkg -i lxc-docker*.deb

@goodniceweb

This comment has been minimized.

Copy link

goodniceweb commented Jun 29, 2015

Or you can follow mbentley step-by-step instruction in issue #9592 (comment)

It's works like a charm for me just moment ago.

$ docker -v
Docker version 1.7.0, build 0baf609

P.S. For me was needed to edit /etc/apt/apt.conf.d/01proxy file instead of acng.conf, like for him. Anyway, @mbentley, many thanks! :)

@rohanpn

This comment has been minimized.

Copy link

rohanpn commented Sep 11, 2015

Is It possible to install docker version 1.5 on 32 bit machine?
Thank you in advance. :)

@thaJeztah

This comment has been minimized.

Copy link
Member

thaJeztah commented Sep 12, 2015

@rohanpn docker daemon requires a 64-bit kernel. Not sure why you want 1.5, because that's pretty old now. If you need more info, please ask in the #docker IRC channel, or https://forums.docker.com, because the issue tracker is not really intended for those.

@sharpevo

This comment has been minimized.

Copy link

sharpevo commented Jan 11, 2016

@alienhacker Great Work!!!

@cundi

This comment has been minimized.

Copy link

cundi commented Jan 29, 2016

@ismailsunni it's works for me , thanks to you and the machine the Ubuntu 14.04 x86_64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment