sudo apt-key adv 间歇性失败
sudo apt-key adv fails intermittently
我正在关注 the instructions 在 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
错误消息表示 GPG 无法加载用于验证包签名的 public GPG 密钥。尝试这样做:
sudo apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg
问题是 pgp.mit.edu
密钥服务器有时会中断,这会导致您看到错误消息。通过 URL 加载 GPG 密钥应该更可靠。
我正在关注 the instructions 在 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
错误消息表示 GPG 无法加载用于验证包签名的 public GPG 密钥。尝试这样做:
sudo apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg
问题是 pgp.mit.edu
密钥服务器有时会中断,这会导致您看到错误消息。通过 URL 加载 GPG 密钥应该更可靠。