Missing public key for Linux updates

Xubuntu 20.10
Version 1.17.73 Chromium: 87.0.4280.67 (Official Build) (64-bit)
I ran “sudo apt update” in a console window.

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://brave-browser-apt-release.s3.brave.com stable InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY A8580BDC82D3DC6C
W: Failed to fetch https://brave-browser-apt-release.s3.brave.com/dists/stable/InRelease The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY A8580BDC82D3DC6C
W: Some index files failed to download. They have been ignored, or old ones used instead.

It looks like you may have an old key on your system. Try reinstalling it manually:

curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add -

(from the official instructions)

Thank you very much for responding. However, this is what was returned:

Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK

Please help me deal with this error.

Thanks, but I figured it out.

cd /etc/apt/trusted.gpg.d/
sudo rm {brave files}

You can ignore the warning. That’s working fine (see the OK in the output).

With this, you’ve actually removed the key so apt will be unable to verify the package signatures and you’ll be back to your original error.

So if you reinstall the key again using the instructions I provided in Missing public key for Linux updates - #2 by fmarier, you should then be able to update the package without any errors:

apt update
apt install brave-browser

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.