From 78da210257a79076962ba406cf84a751e5c28368 Mon Sep 17 00:00:00 2001 From: ManhIT Date: Wed, 22 Dec 2021 13:56:38 +0700 Subject: [PATCH] fix GPG error (docker-archive-keyring.gpg) 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 --- install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install.sh b/install.sh index 934bb29e..3881d4bd 100755 --- a/install.sh +++ b/install.sh @@ -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" $sh_c "echo \"$apt_repo\" > /etc/apt/sources.list.d/docker.list" $sh_c 'apt-get update -qq >/dev/null' )