adrianmihalko / raspberrypiwireguard

Install and configure WireGuard on Raspberry Pi (and others)
841 stars 76 forks source link

gpg signature can't be verified. #20

Closed plainas closed 5 years ago

plainas commented 5 years ago

Hey. I did get wireguard installed on a raspberry pi 3 using these instructions. However, the packages are not verified. It appears that the instructions to import the key need to be fixed/updated.

This is the error I got.

W: GPG error: http://deb.debian.org/debian unstable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7638D0442B90D010 NO_PUBKEY 04EE7237B7D453EC
W: The repository 'http://deb.debian.org/debian unstable 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.
jm33-m0 commented 5 years ago

as the error message indicates, you should import the two public keys as well:

apt-key adv --keyserver   keyserver.ubuntu.com --recv-keys 7638D0442B90D010
apt-key adv --keyserver   keyserver.ubuntu.com --recv-keys 04EE7237B7D453EC
jm33-m0 commented 5 years ago

created a pr to fix #20: https://github.com/adrianmihalko/raspberrypiwireguard/pull/21

plainas commented 5 years ago

Closing in favor of #21

CanntAim commented 5 years ago

These are keys from debian key ring? It seems like the better idea is to just run:

sudo apt-get install debian-archive-keyring
sudo apt-get install debian-keyring
farrukh43 commented 4 years ago

apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7638D0442B90D010 apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 04EE7237B7D453EC

wahabshah commented 3 years ago

I had an old container which had debain stretch with debian-archive-keyring at version 2017.5 and suddenly it stopped working as with the above errors caused because of not having buster keys although i had container with stretch. But then did manually update of debian-archive-keyring to version 2017.5+deb9u1 after logging into container and it worked:-

sudo apt update && sudo apt-get install --only-upgrade debian-archive-keyring

and then checking it in apt-key :-

sudo apt-key list

It showed then buster keys in the list and could update