hub-feedback icon indicating copy to clipboard operation
hub-feedback copied to clipboard

Error during signature verification while updating docker.

Open mbhat2025 opened this issue 3 years ago • 2 comments

Problem description

To update docker, command used :- sudo apt-get update

Faced this error.

Err:1 https://download.docker.com/linux/ubuntu bionic InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8 Hit:2 http://in.archive.ubuntu.com/ubuntu bionic InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu bionic-security InRelease
Hit:5 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease Reading package lists... Done 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 bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8 W: Failed to fetch https://download.docker.com/linux/ubuntu/dists/bionic/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8 W: Some index files failed to download. They have been ignored, or old ones used instead.

Should i give same comments in both
/etc/apt/sources.list.d/additional-repositories.list /etc/apt/sources.list.d/docker.list

How to rectify?

mbhat2025 avatar Sep 30 '21 16:09 mbhat2025

For this running this command fixed the issue:

chmod a+r /usr/share/keyrings/docker-archive-keyring.gpg

mrichtsfeld avatar Jan 02 '22 19:01 mrichtsfeld

Fresh Debian 11.3 install with umask 077 as the default.

Tried the chmod trick but get the same error from apt. Simply can't install Docker on Linux.

wonbug avatar May 24 '22 21:05 wonbug