0

我正在尝试根据此链接安装 mongoDB

我收到错误:

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 更新和升级

这些命令有效,

4

2 回答 2

3

Simply run apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 to use port 80 and bypass your firewall (hopefully).

于 2013-12-10T10:11:18.803 回答
3
requesting key 7F0CEB10 from hkp server keyserver.ubuntu.com
keyserver.ubuntu.com: Connection timed out

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

于 2012-10-09T07:21:11.943 回答