Error while installing Brave browser in Ubuntu 20.04 LTS

I’m trying to install Brave in my Ubuntu 20.04 LTS, using this link:

However, I’m getting the error:
gpg: no valid OpenPGP data found.

when I run the commands:

**sudo apt install apt-transport-https curl gnupg

$ 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 -**

And, the gpg file shows zero bytes.
-rw-r--r-- 1 root root 0 Jan 4 23:50 brave-browser-release.gpg

And, the link https://brave-browser-apt-release.s3.brave.com/brave-core.asc, seems unavailable.
I get the below error,

# This site can’t be reached

brave-browser-apt-release.s3.brave.com ’s server IP address could not be found.

DNS_PROBE_FINISHED_NXDOMAIN

when I open the above link, separately in a browser.

Any help, please.

try: sudo apt install brave

it is mistake installing from file on linux install in terminal

@vlan1337 Which DNS provider are you using?

If you open https://brave-browser-apt-release.s3.brave.com/brave-core.asc in a browser, it should download a file that is around 3.9 kB. This does work fine for me right now.

The fact that the DNS resolution doesn’t work suggests that there is a problem with your DNS provider. Some of them incorrectly block Brave downloads because of some parental controls and the fact that Brave has a Tor mode that can be used to circumvent these controls.

Thank you. apt didn’t work… however, ‘snap’ worked.
There was a SO answer that said ‘snap’ install has been discontinued. Hence didn’t try. My bad.

Anyway, Thanks again.

@fmarier Thank you. My network is configured to use the default config. Let me try switching to using a manual config.

Meanwhile, I’m using a Mobile USB Connection to connect to web, in my Laptop. Does that mean I’d have to change my DNS Server in my mobile too?

(I’ve installed Brave using ‘sudo snap install brave’ as suggested by @yoge67855. However, I prefer to install it in a custom folder… so, I’m going to try downloading the .deb file anyway).

Thanks again.

Try to open https://brave-browser-apt-release.s3.brave.com/brave-core.asc on your phone directly. If that doesn’t work, then the problem lies somewhere in your mobile network settings/environment.

Another thing that could be interfering is a VPN if you’re using one.

@fmarier Thank you… I tried this, and it gives the same error in my phone also. Since my phone is rooted (I don’t want to too, as it seems not secure), I cannot change the DNS config. There are some apps recommended to do the same (like, DNSChanger), however I’m not sure if I should use them - as they seem to use a VPN, if the phone is un-rooted.

ok… I just tried the link in brave browser itself (that I previously installed using ‘snap’) & it downloaded the 3.2kb key file. What should I do now? Can I save this file as /etc/apt/trusted.gpg.d/brave-browser-release.gpg, and then run only this part ‘sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add -’ of the original command. Will it work?

Also, I just realised that even if this works, it will still install brave in the default path (/snap/bin/brave, in this case). So, how can I install it in a custom path? Any ideas?

try: sudo snap install brave

If you have the brave-core.asc file on disk, then you can do the following to install the key into the apt keyring:

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

Then you can do the last three lines of the instructions on https://brave.com/linux/#debian-9-ubuntu-1404-and-mint-17, though it’s unclear whether that’s going to work if your DNS provider is blocking requests to the Brave repository.

1 Like

If you install using the official Brave repository, then it will end up in /opt/brave.com/. We don’t support installing Brave into a custom directory. If you want to do that, I think you’ll need to build from source, but I haven’t tested that myself.

1 Like

oh… I get that path thing - as I used snap instead of apt. But, is the snap repository not official, too?

We are now building the snap ourselves (it used to be maintained by the community) but it’s not quite working as well as the regular packages, so the packages in the Brave repository are our recommended option at the moment for Linux. Both should work though.

Cool… got it. I’ll try to get it from the Brave repository itself, somehow. By the way, I was just going through articles on Brave. It seems to be the best in speed of all existing browsers & it’s business model sounds more intriguing (not sure if it’ll be good for users in the long run or not). Anyway, All the best! It’s performance seems definitely very good.

So, anyone can contribute to the brave’s open-source development, or is there some procedure of application?

1 Like

No application process is required, it’s all on GitHub:

1 Like

Great @fmarier. Thanks, for sharing.

I’m not an open-source expert; just trying to get in :slightly_smiling_face:
Hopefully, I’ll be able to do something!

1 Like