Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix GPG error (docker-archive-keyring.gpg) #269

Closed
wants to merge 1 commit into from

Conversation

manhit96
Copy link

file /usr/share/keyrings/docker-archive-keyring.gpg is wrong permissions, cause error: "W: GPG error: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8"

This command will fix it: "sudo chmod a+r /usr/share/keyrings/docker-archive-keyring.gpg"

source: https://stackoverflow.com/a/68764068

file /usr/share/keyrings/docker-archive-keyring.gpg is wrong permissions, make error: "W: GPG error: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8"
This command will fix it: "sudo chmod a+r /usr/share/keyrings/docker-archive-keyring.gpg"
source: https://stackoverflow.com/a/68764068
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing; CI was failing because the commit was missing a DCO sign-off line. I opened a replacement PR with this change (and added you as "co-authored-by" in the commit message 👍)

@@ -401,6 +401,7 @@ do_install() {
$sh_c 'apt-get update -qq >/dev/null'
$sh_c "DEBIAN_FRONTEND=noninteractive apt-get install -y -qq $pre_reqs >/dev/null"
$sh_c "curl -fsSL \"$DOWNLOAD_URL/linux/$lsb_dist/gpg\" | gpg --dearmor --yes -o /usr/share/keyrings/docker-archive-keyring.gpg"
$sh_c "sudo chmod a+r /usr/share/keyrings/docker-archive-keyring.gpg"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sudo shouldn't be needed here, as $sh_c already uses sudo (or su);

docker-install/install.sh

Lines 287 to 291 in 93d2499

if [ "$user" != 'root' ]; then
if command_exists sudo; then
sh_c='sudo -E sh -c'
elif command_exists su; then
sh_c='su -c'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants