Score:1

Error getting public keys

id flag

When I execute some apt command like install or update, it produces multiple errors of public keys not found and it can't finish executing the install or update. For example, this is one of the multiple same errors:

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://mega.nz/linux/MEGAsync/xUbuntu_20.04 ./ InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 03C3AD3A7F068E5D
W: Failed to fetch https://packages.cloud.google.com/apt/dists/cloud-sdk/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FEEA9169307EA071 NO_PUBKEY 8B57C5C2836F4BEB

I've already tried with

sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys [key]

for each key, but every key gives me one of two errors:

gpg: WARNING: no command supplied.  Trying to guess what you mean ...
usage: gpg [options] [filename]

and

gpg: keyserver receive failed: No name

if I execute

gpg --keyserver wwwkeys.eu.pgp.net --recv-keys [key]

I also can't install PPA Manager because every tutorial implies executing

sudo apt-get update
sudo apt-get install

which gives the errors. I also tried executing

sudo rm /etc/apt/trusted.gpg

before getting the keys.

I've also tried

PUBKEY=[key]
gpg --keyserver subkeys.pgp.net --recv-key $PUBKEY && gpg -a --export $PUBKEY | 
sudo apt-key add --

And I get

gpg: keyserver receive failed: Connection timed out

I have Ubuntu 20.

Byte Commander avatar
nf flag
Hello, welcome to Ask Ubuntu. A hint, typing `LANG=C` before a command will make it produce English output, which is more useful for posting here and for looking up the exact messages online. Example: `LANG=C sudo apt update`.
id flag
@ByteCommander thanks! I fixed it
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.