Dockerをインストールした後、sudo apt update
コマンドを使用しようとすると、次のエラーが発生します。
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://download.docker.com/linux/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C34573JCD8
W: Failed to fetch https://download.docker.com/linux/ubuntu/dists/focal/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C34573JCD8
W: Some index files failed to download. They have been ignored, or old ones used instead.
Dockerリポジトリの公式gpgキーを追加していないようです。ターミナルを開き、以下のコマンドを実行します。
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加