我正在尝试在全新安装的 Raspbian (Debian) Buster 上导入 Github 的 webflow 签名密钥。
$ gpg2 --recv-keys 5DE3E0509C47EA3CF04A42D34AEE18F83AFDEB23
gpg: key 4AEE18F83AFDEB23: new key but contains no user ID - skipped
gpg: Total number processed: 1
gpg: w/o user IDs: 1
我不理解错误消息,并且很难找到遇到相同错误的其他用户。gpg版本:
$ gpg --version
gpg (GnuPG) 2.2.12
libgcrypt 1.8.4
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: /home/pi/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
我确定这个密钥有一个用户 ID!(在 OSX 上验证)
您可能正在使用
keys.openpgp.org
具有所有者批准系统的密钥服务器 - 除非相应电子邮件地址的所有者允许发布它们,否则它将删除所有用户 ID。尝试从其他地方下载密钥,例如:
--keyserver hkps://keyserver.ubuntu.com
--keyserver hkps://pgp.surf.nl
(前SKS池)--keyserver hkp://pgp.rediris.es
(前SKS池)(未来的 GnuPG 版本将接受没有 UID 的密钥,尽管除了直接基于指纹的比较之外它不会非常有用。)