Emacs:无法验证签名存档 - contents.sig

Emacs: Failed to verify signature archive-contents.sig

最近尝试更新 emacs 包并得到了这个。

Failed to verify signature archive-contents.sig:
No public key for 066DAFCB81E42C40 created at 2019-10-02T10:10:02+0100 using RSA
Command output:
gpg: Signature made Wed 02 Oct 2019 10:10:02 AM BST
gpg:                using RSA key C433554766D3DDC64221BFAA066DAFCB81E42C40
gpg: Can't check signature: No public key

知道为什么吗?

同一问题请参阅 https://emacs.stackexchange.com/questions/233/

签名检查失败,因为您没有新密钥(旧签名密钥已于 9 月 23 日过期)。新密钥可从常用GPG密钥服务器获取,Emacs≥26.3自带,也可通过安装包gnu-elpa-keyring-update.

获取

尝试将 ~/.emacs.d/elpa/gnupg 文件重命名为其他名称作为备份,然后 运行 M-x package-refresh-contents。这对我有用。