LoginSignup
3
2

More than 3 years have passed since last update.

emacs25 で list-packages 時に Failed to verify signature となり失敗する

Last updated at Posted at 2020-01-05

環境

  • 18.04.3 LTS (Bionic Beaver)
  • GNU Emacs 25.2.2

症状

emacsのパッケージを追加したくて list-packages してインストール済みのものを見たりしていたところ、以下が表示された。

Failed to verify signature archive-contents.sig:
No public key for 066DAFCB81E42C40 created at 2020-01-05T07:05:03+0900 using RSA
Command output:
gpg: Signature made 2020年01月05日 07時05分03秒 JST
gpg:                using RSA key C433554766D3DDC64221BFAA066DAFCB81E42C40
gpg: Can't check signature: No public key

原因と対処

古いバージョンのemacsのsignature keyが期限切れしていたみたいです。
emacs26にしたら解決しました。
(新しいkeyを取得することでも解決できるとのことですが、バージョンアップする方が手っ取り早そうだったので…)

The signature check failed because you don't have the new key (the old signature key expired on Sep 23).

対応手順

手順は以下を参考にしました。
http://ubuntuhandbook.org/index.php/2019/02/install-gnu-emacs-26-1-ubuntu-18-04-16-04-18-10/

問題が起きていたとき

$ emacs --version
GNU Emacs 25.2.2
Copyright (C) 2017 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU Emacs
rtt min/avg/max/mdev = 91.265/119.994/171.319/31.208 ms

使うのはnox版なので、こちらだけinstall

$ sudo apt install -y emacs26-nox

古いものは削除

$ sudo apt remove --autoremove emacs25*

version確認

$ emacs --version
GNU Emacs 26.3
Copyright (C) 2019 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

emacs26になりました、OK。

Failed to verify signature ... は無事出なくなりました。

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2