(apt) Update fails no public key?


Description of the issue:
apt update error

How can this issue be reproduced?

  1. apt-get update

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: ://brave-browser-apt-release.s3.brave.com bionic InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY A8580BDC82D3DC6C
W: Failed to fetch ://brave-browser-apt-release.s3.brave.com/dists/bionic/InRelease The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY A8580BDC82D3DC6C

System:
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=19.2
DISTRIB_CODENAME=tina
DISTRIB_DESCRIPTION=“Linux Mint 19.2 Tina”
NAME=“Linux Mint”
VERSION=“19.2 (Tina)”
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME=“Linux Mint 19.2”
VERSION_ID=“19.2”
VERSION_CODENAME=tina
UBUNTU_CODENAME=bionic

This should now be resolved if you run apt update again.

We accidentally used the wrong key (they one we are planning to switch to early next year) to sign the repository and so that’s why you saw that error message.

HI, please forgive a newbie to Brave on Linux.
after receiving the message wrt to no pubkey I ran the following:
¨apt update

W: 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 4FE13824E3FFC656
E: The repository ‘https://brave-browser-apt-release.s3.brave.com stable InRelease’ is not signed.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
"
any idea what I did wrong?
again my apologies if this is already solved.
thanks
jmpaq

That second error message tells me that you need to run through all of the installation steps again.

The problem is that your system is missing the key that Brave uses to sign releases and so your system is unable to verify the authenticity of what it would download from us.

This step of the instructions I linked to above is what will install the key on your system:

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 -

Once you have all of this in place, you’ll be able to install and update Brave without problems.

Let me know how that goes.

hi and thanks again for your help. Here is what I get when I try:

jmpold@jmpold1525:~ curl -s [https://brave-browser-apt-release.s3.brave.com/brave-core.asc](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 - [sudo] password for jmpold: OK jmpold@jmpold1525:~ echo “deb [arch=amd64] https://s3-us-west-2.amazonaws.com/brave-apt lsb_release -sc main” | sudo tee -a /etc/apt/sources.list.d/brave-lsb_release -sc.list
deb [arch=amd64] https://s3-us-west-2.amazonaws.com/brave-apt tina main
jmpold@jmpold1525:~ sudo apt update Ign:1 [http://packages.linuxmint.com](http://packages.linuxmint.com) tina InRelease Hit:2 [http://packages.linuxmint.com](http://packages.linuxmint.com) tina Release Hit:3 [http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu](http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu) bionic InRelease Hit:4 [http://archive.ubuntu.com/ubuntu](http://archive.ubuntu.com/ubuntu) bionic InRelease Get:5 [http://archive.ubuntu.com/ubuntu](http://archive.ubuntu.com/ubuntu) bionic-updates InRelease [88.7 kB] Get:6 [http://security.ubuntu.com/ubuntu](http://security.ubuntu.com/ubuntu) bionic-security InRelease [88.7 kB] Get:7 [http://archive.canonical.com/ubuntu](http://archive.canonical.com/ubuntu) bionic InRelease [10.2 kB] Get:8 [https://brave-browser-apt-release.s3.brave.com](https://brave-browser-apt-release.s3.brave.com) stable InRelease [2,836 B] Err:9 [https://s3-us-west-2.amazonaws.com/brave-apt](https://s3-us-west-2.amazonaws.com/brave-apt) tina InRelease 403 Forbidden [IP: 52.218.235.8 443] Get:10 [http://archive.ubuntu.com/ubuntu](http://archive.ubuntu.com/ubuntu) bionic-backports InRelease [74.6 kB] Hit:11 [https://deb.torproject.org/torproject.org](https://deb.torproject.org/torproject.org) bionic InRelease Get:13 [http://archive.canonical.com/ubuntu](http://archive.canonical.com/ubuntu) bionic/partner i386 Packages [2,292 B] Get:14 [https://brave-browser-apt-release.s3.brave.com](https://brave-browser-apt-release.s3.brave.com) stable/main amd64 Packages [6,060 B] Get:15 [http://security.ubuntu.com/ubuntu](http://security.ubuntu.com/ubuntu) bionic-security/main i386 DEP-11 Metadata [38.5 kB] Get:16 [http://security.ubuntu.com/ubuntu](http://security.ubuntu.com/ubuntu) bionic-security/universe i386 Packages [601 kB] Get:17 [http://archive.ubuntu.com/ubuntu](http://archive.ubuntu.com/ubuntu) bionic-updates/main i386 Packages [625 kB] Get:18 [http://security.ubuntu.com/ubuntu](http://security.ubuntu.com/ubuntu) bionic-security/universe i386 DEP-11 Metadata [42.1 kB] Get:19 [http://security.ubuntu.com/ubuntu](http://security.ubuntu.com/ubuntu) bionic-security/multiverse i386 DEP-11 Metadata [2,464 B] Get:20 [http://archive.ubuntu.com/ubuntu](http://archive.ubuntu.com/ubuntu) bionic-updates/main i386 DEP-11 Metadata [295 kB] Get:21 [http://archive.ubuntu.com/ubuntu](http://archive.ubuntu.com/ubuntu) bionic-updates/universe i386 Packages [997 kB] Get:22 [http://archive.ubuntu.com/ubuntu](http://archive.ubuntu.com/ubuntu) bionic-updates/universe i386 DEP-11 Metadata [264 kB] Get:23 [http://archive.ubuntu.com/ubuntu](http://archive.ubuntu.com/ubuntu) bionic-updates/multiverse i386 DEP-11 Metadata [2,468 B] Get:24 [http://archive.ubuntu.com/ubuntu](http://archive.ubuntu.com/ubuntu) bionic-backports/universe i386 DEP-11 Metadata [7,980 B] Reading package lists... Done E: Failed to fetch [https://s3-us-west-2.amazonaws.com/brave-apt/dists/tina/InRelease](https://s3-us-west-2.amazonaws.com/brave-apt/dists/tina/InRelease) 403 Forbidden [IP: 52.218.235.8 443] E: The repository '[https://s3-us-west-2.amazonaws.com/brave-apt](https://s3-us-west-2.amazonaws.com/brave-apt) tina InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. jmpold@jmpold1525:~ sudo apt install brave-browser
Reading pa!ckage lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package brave-browser

please let me know what more I can do.

(merci!)

jmpaq

Hm, you seem to be using an old version of the instructions. Are you looking at https://brave-browser.readthedocs.io/en/latest/installing-brave.html#debian-9-ubuntu-14-04-and-mint-17? If so, try refreshing the page. If not, what page did you find the instructions on?

The third step should be this:

echo "deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main" | sudo tee /etc/apt/sources.list.d/brave-browser-release.list

Note that there is no lsb_release -sc anymore.

This topic was automatically closed after 30 days. New replies are no longer allowed.