Can't install Brave

Hi,

I followed the procedure to install Brave on Ubutun (https://support.brave.com/hc/en-us/articles/360018666072-How-do-I-install-Brave-on-Linux-using-the-terminal-) but I encountered an error after typing: "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 - "

The error message: “gpg: no valid OpenPGP data was found.”

Can someone help me ?

No one has an idea ?

cc @Mattches @sriram for assistance here

There is an extra space in your command sudo apt -key. It should be sudo apt-key. Did you type in the same command? Make sure you copy paste the command from the help link.

Also, are you behind any proxy? If so can you try disabling it and check?

Yes I typed the right command "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 am behind a proxy but it is not possible for me to disable it.
In apt.conf, I added “Acquire :: Proxy” http: // user: password @ Proxy_IP: Proxy_Port / ";
Adding the brave repositories in apt, it authenticates itself well to go out to try to install Brave but impossible to continue because it misses GPG data

Try adding https to the proxy command. It could be failing because of that.
Acquire::https::Proxy "http://user:password@proxy.server:port/";

I added the line with https but I still have the same error

You might need to define the http_proxy and https_proxy environment variables for curl to honor your proxy.

That said though, an easier way would be to use another browser to download https://brave-browser-apt-release.s3.brave.com/brave-core.asc to a file and then replace this command:

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 -

with this one:

sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add brave-core.asc

running from the directory where you downloaded brave-core.asc.

The rest of the instructions should work.

2 Likes

Thank you very much, it works now !:slight_smile:

1 Like