3

我按照在 CircleCI 上安装 Yarn的说明进行操作,但 CircleCI 在尝试检查密钥服务器时显示这些错误:

sudo apt-key adv --keyserver pgp.mit.edu --recv D101F7899D41F3C3
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.j5q2IRFiKK --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d//apt.postgresql.org.gpg --keyserver pgp.mit.edu --recv D101F7899D41F3C3
gpg: requesting key 9D41F3C3 from hkp server pgp.mit.edu
gpgkeys: key D101F7899D41F3C3 not found on keyserver
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0

sudo apt-key adv --keyserver pgp.mit.edu --recv D101F7899D41F3C3 returned exit code 2

Action failed: sudo apt-key adv --keyserver pgp.mit.edu --recv D101F7899D41F3C3
4

1 回答 1

4

该错误消息意味着 GPG 无法加载用于验证包签名的公共 GPG 密钥。尝试这样做:

sudo apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg

问题是pgp.mit.edu密钥服务器有时会中断,这会导致您看到错误消息。通过 URL 加载 GPG 密钥应该更可靠。

于 2016-11-02T01:23:26.520 回答