2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

XX の取得に失敗しました 公開鍵を利用できないため、以下の署名は検証できませんでした: NO_PUBKEY KEYID と言われた時の対処法

Last updated at Posted at 2022-12-02

apt-keyが今年(2022)くらいで廃止されるらしいのでそれまでの対応方法と廃止後の対応方法

apt-keyを利用できる場合

ubuntuの場合

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys KEYID

debian

sudo apt-key adv --keyserver keyring.debian.org  --recv-keys KEYID

apt-keyを使用せずに現行でも有効な方法

apt-key が廃止されたあとは下記のようにkeyをエクスポートして保存し

gpg --keyserver keyserver.ubuntu.com --recv-keys KEYID
gpg --export KEYID | sudo gpg --dearmour -o /usr/share/keyrings/suehiro.gpg

aptのレポジトリ設定に(下記は自分のlaunchpad)[signed-by=]を追記するようになるらしい。

deb [signed-by=/usr/share/keyrings/suehiro.gpg] https://ppa.launchpadcontent.net/bols-blue/hello/ubuntu/ jammy main

もう少しスマートになるといいな…

2
0
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
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?