Failed to install Bravebrowser in debian10 template VM

Having trouble with installing Bravebrowser in a debian10 template, when using Brave’s cli instructions. The process is being stopped at the gpg stage. The commands from Brave are as follows for debian9+ :

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 -

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

sudo apt update

sudo apt install brave-browser

The process stops at the line beginning with “curl”, giving the following error message:
“gpg: no valid OpenPGP data found.”

Looking in the /etc/apt/trusted.gpg.d folder, there is a brave-browser-release.gpg file. No idea where to go from here. Thanks.

The process stops at the line beginning with “curl”, giving the following error message:
“gpg: no valid OpenPGP data found.”

That’s because your template doesn’t have access to the internet except
through a proxy that is used by apt. So when you use curl, you need to
tell it about the proxy…

curl --proxy http://127.0.0.1:8082/ -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 -

… this will do the trick.

2 Likes

Thanks Sven! I now have Brave working in my debian10-based VMs. Cheers

1 Like

I made an topic detailing all the options for cases like this. Take a look:

(@Qubesquark I’ve also changed the title a bit as the problem was not with PGP)

Thanks deeplow. I will follow through on your advice today. cheers

1 Like

There is a snap package available. It could be an alternative worth considering running it with qubes-snapd-helper.

Thanks wind.gmbh. I hadn’t seen that, when I was trying the install. I have it bookmarked now. cheers