LoginSignup
18
11

More than 5 years have passed since last update.

GPG error: 〜 the public key is not available: NO_PUBKEY の対処

Last updated at Posted at 2015-05-22

/etc/apt/sources.list.d/〜.list
を編集してapt-get updateをすると以下エラーが出ることがある。

W: GPG error: http://〜 vivid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY KEY 18DAAE7AECA3745F

対処

参考: [SOLVED] 14.04: GPG error “NO_PUBKEY”

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys キー

今回の例ではキーが 18DAAE7AECA3745F になっているので、

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 18DAAE7AECA3745F

再度 apt-get update してエラーが出ないことを確認。

18
11
2

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
18
11