Help us understand the problem. What is going on with this article?

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

環境

  • 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).

https://stackoverflow.com/questions/58202993/emacs-failed-to-verify-signature-archive-contents-sig

対応手順

手順は以下を参考にしました。
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 ... は無事出なくなりました。

myy
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした