I've executed the below command line:
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 -
I've got the following error message:
gpg: no valid OpenPGP data found
How can I solve it?
In order to solve the error:
You can download the file using insecure way using
-k
or--insecure
You can also download the file using
wget
with the--no-check-certificate
option:curl manual explain this option:
I had the same problem today with Brave using their posted instructions. It seems that the
brave-core.asc
file is non-existent at the address they have listed. Installing the Beta version instead (instructions on the same page) works fine for me.The
gpg: no valid OpenPGP data found
error is because thebrave-core.asc
file downloaded via curl is a zero-byte (empty) file, and there is actually no OpenPGP data inside it.Update (2020-01-09): it looks like Brave has fixed the link for the release version, and the
brave-core.asc
file is now available at the provided link.We had a short-lived outage in January and so that probably explains what you saw there. In general though, if you run into problems with the signing key, you are more likely to get a response if you ask your question on the official support forum.
If you run into a security error while trying to install or upgrade Brave, then feel free to email us at
[email protected]
.