NO_PUBKEY 8C718D3B5072E1F5を解決する方法

NO_PUBKEY 8C718D3B5072E1F5を解決する方法

これで問題が発生しました。 Debian バージョン 9.13 で次のコマンドを実行すると sudo apt-get update このエラーが発生します。

Fetched 21.6 kB in 0s (34.9 kB/s)
Reading package lists... Done
W: GPG error: http://repo.mysql.com/apt/debian stretch InRelease: The following signatures 
couldn't be verified because the public key is not available: NO_PUBKEY 8C718D3B5072E1F5
W: The repository 'http://repo.mysql.com/apt/debian stretch InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous 
to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.

このキーは有効期限が切れたため削除しました。 mysqlから新しいキーをダウンロードしました。これは私の適切なキーのリストです。

適切なキーのリスト

適切なキーリスト2

ただし、これまでは更新コマンドを実行できず、毎回このエラーが発生します。私はすべての可能な方法を試しましたが、失敗しました。特にWebホスティングサーバーに固有の問題なので、誰でもこの問題を解決するのに役立ちますか?

ベストアンサー1

コピーこのGPGキーmysql_pubkey.ascファイルに移動して、次を実行します。

gpg --import mysql_pubkey.asc
gpg --fingerprint 5072E1F5

MySQLのドキュメントを参照してください。2.1.4.2 GnuPGを使用した署名の確認

おすすめ記事