web-dev-qa-db-ja.com

アップデーターでGPGを修正する方法

以前にこの質問をしたことがありますが、「重複」としてクローズされました。サードパーティのPPAを参照していないため、私のシナリオはオリジナルであることを保証できます。システムアップデートでGPGの問題が発生しています。利用可能な公開鍵がないと書かれており、更新情報が古いことも警告されています。ターミナルテキストは次のとおりです。

W: A error occurred during the signature verification.
The repository is not updated and the previous index files will be used. GPG error:http://extras.ubuntu.com quantal Release: 
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192

W: GPG error: http:// archive.canonical.com quantal Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG error: http:// us.archive.ubuntu.com quantal Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG error: http:// us.archive.ubuntu.com quantal-updates Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG error: http:// us.archive.ubuntu.com quantal-backports Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG error: http:// us.archive.ubuntu.com quantal-security Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: Failed to fetch http:// extras.ubuntu.com/ubuntu/dists/quantal/Release

W: Some index files failed to download. They have been ignored, or old ones used instead.

新しいユーザーは質問ごとに2つ以上のハイパーリンクを使用できないため、URLにスペースを入れました。

これを複製として閉じないでください。サードパーティのPPAを指すのではなく、Canonicalが発行した標準の更新パッケージを指します。

32
Travis Hodge

ターミナルで次のコマンドを実行します。

Sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 40976EAF437D05B5
Sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3B4FE6ACC0B21F32

これにより、不足しているGPGキー(元のエラーメッセージに記載されている)がUbuntu GPGキーサーバーからダウンロードされます。

79
lub