安装mongoDB时出错:gpg键错误

时间:2012-10-09 06:17:44

标签: mongodb installation

我正在尝试安装 mongoDB according to this link

我正在犯错误:

root@MrAK-desktop:~# apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.IBN5O6rAAC --trustdb-name /etc/apt/trustdb.gpg
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.IBN5O6rAAC --trustdb-name /etc/apt/trustdb.gpg
gpg: requesting key 7F0CEB10 from hkp server keyserver.ubuntu.com
?: keyserver.ubuntu.com: Connection timed out
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0

我确信我的连接没有问题,

  

apt-get update and upgrade

这些命令正在运行,

2 个答案:

答案 0 :(得分:3)

requesting key 7F0CEB10 from hkp server keyserver.ubuntu.com
keyserver.ubuntu.com: Connection timed out

hkp协议在端口TCP 11371上运行。确保防火墙允许访问keyserver.ubuntu.com上的该端口。

答案 1 :(得分:3)

只需运行apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10即可使用端口80并绕过防火墙(希望如此)。