Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Key server times out while installing docker on Ubuntu 14.04

I am trying to install docker on Ubuntu 14.04, however, I can't get beyond the first step documented here: https://docs.docker.com/engine/installation/ubuntulinux/

$ sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D

Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.VB8X4gv8Ty --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
gpg: requesting key 2C52609D from hkp server p80.pool.sks-keyservers.net
gpg: keyserver timed out
gpg: keyserver receive failed: keyserver error

The key server is timing out after couple of minutes of running this command. Anyone else facing this issue? I saw some posts about firewalls blocking port 11371. But I'm already using port 80, so that shouldn't be the issue.

What can I do to update the keys manually on Ubuntu if the preferred option of getting it from the key server with apt-key is not working?

like image 420
rkrishnan Avatar asked Jan 13 '16 07:01

rkrishnan


1 Answers

Try this key server "hkp://keyserver.ubuntu.com:80"

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D

It worked for me.

like image 170
Soumya Avatar answered Sep 19 '22 18:09

Soumya