Failed to verify signature archive-contents.sig

我打开package list 得到如下错误信息:

Failed to verify signature archive-contents.sig: No public key for 066DAFCB81E42C40 created at 2022-03-08T06:05:03+0800 using RSA Command output: gpg: Signature made Tue Mar 8 06:05:03 2022 CST gpg: using RSA key C433554766D3DDC64221BFAA066DAFCB81E42C40 gpg: Can’t check signature: No public key

这是啥情况啊?

http://elpa.gnu.org/packages/gnu-elpa-keyring-update.html

装不了啊

Failed to verify signature gnu-elpa-keyring-update-2019.3.tar.sig: No public key for 066DAFCB81E42C40 created at 2019-09-22T01:55:14+0800 using RSA Command output: gpg: Signature made Sun Sep 22 01:55:14 2019 CST gpg: using RSA key C433554766D3DDC64221BFAA066DAFCB81E42C40 gpg: Can’t check signature: No public key

If your keys are already too old, causing signature verification errors when installing packages, then in order to install this package you can do the following:

temporarily disable signature verification (see variable `package-check-signature’).

package-check-signature is a variable defined in ‘package.el’.

Its value is ‘allow-unsigned’

Non-nil means to check package signatures when installing.
More specifically the value can be:
- nil: package signatures are ignored.
- ‘allow-unsigned’: install a package even if it is unsigned, but
  if it is signed, we have the key for it, and OpenGPG is
  installed, verify the signature.
- t: accept a package only if it comes with at least one verified signature.
- ‘all’: same as t, except when the package has several signatures,
  in which case we verify all the signatures.

This also applies to the "archive-contents" file that lists the
contents of the archive.

  This variable may be risky if used as a file-local variable.
  This variable was introduced, or its default value was changed, in
  version 27.1 of Emacs.
  You can customize this variable.

我搞定了。但为啥PYIM还用不了?

Wrong type argument: symbolp, (.utf-8)

我init.el多了这一行,删掉就好了 (setq default-process-coding-system '(utf-8 . utf-8))

原来要先设置 package-check-signature 为 nil 才能安装 gnu-elpa-keyring-update,有点坑。

或者这样:

(let ((package-check-signature nil))
   (package-install 'gnu-elpa-keyring-update))