Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
6
Help us understand the problem. What is going on with this article?
@Arnold

[Arch Linux] pacman のキーリングが見つからずパッケージのアップグレードに失敗する場合の対処方法

More than 1 year has passed since last update.

先日、パッケージのアップグレードを行った際に以下のようなエラーが発生した。

$ sudo pacman -Syu

(中略)

:: Proceed with installation? [Y/n] y
(95/95) checking keys in keyring                       [############################] 100%
downloading required keys...
error: key "011FDC52DA839335" could not be looked up remotely
error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

どうやら pacman ではパッケージが本物か判断するため、 GnuPG 鍵を使っているようだ。

キーリングが古くなると、更新が必要な様子。以下のコマンドでキーリングを更新してみた。

が、効果がなかった。

$ sudo pacman-key --refresh-keys

archlinux-keyring パッケージ自体が古いことが原因の様子。 再インストールを実施。

$ sudo pacman -S archlinux-keyring

やったぜ!解決した。

$ sudo pacman -Syu

:: Proceed with installation? [Y/n] y
(94/94) checking keys in keyring                       [############################] 100%
(94/94) checking package integrity                     [############################] 100%
(94/94) loading package files                          [############################] 100%
(94/94) checking for file conflicts                    [############################] 100%
(94/94) checking available disk space                  [############################] 100%
:: Processing package changes...
( 1/94) upgrading libcroco                             [############################] 100%

(以下略)

キーリングが見つからない場合は、archlinux-keyring を更新してみるべし。

以上。

6
Help us understand the problem. What is going on with this article?
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
Arnold
Hi, guys. I'm Arnold.

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
6
Help us understand the problem. What is going on with this article?