Brave installation on ubuntu failed because of proxy settings

I tried the normal installation steps from brave’s website.

I got stuck when I tried to use curl command.

After I tried this command :


I got this error message.

curl: (7) Failed to receive SOCKS4 connect request ack.

I think it is because I use a proxy VPN V2RAY client on my linux machine.

Because a few days ago I could not git clone from github, and after I changed the settings using this:

git config --global http.proxy 'socks5:'

github became function again.

so the question is, how do I make curl work use socks 5 instead of 4?


I changed my curl command a bit to get it to work.

sudo curl --proxy -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg

I pointed curl to my HTTP proxy. now the command works.

Also, this command also works.

echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] stable main"|sudo tee /etc/apt/sources.list.d/brave-browser-release.list

after that if I key in

ls /usr/share/keyrings/ I will see the brave-browser-archive-keyring.gpg inside the folder.

But now if I run sudo apt update , it always failed to get brave from the repo…

Hit:1 stable InRelease
Hit:2 stable InRelease                                                                                                                
Hit:3 focal InRelease                                                                                                                                    
Hit:4 focal InRelease                                                                                                   
Get:5 focal-updates InRelease [114 kB]                          
Get:6 focal-backports InRelease [101 kB]                                   
Get:7 focal-security InRelease [114 kB]                                    
Hit:8 stable InRelease                                                                                                  
Err:9 stable InRelease                                                                                                                               
  Could not connect to (, connection timed out Could not connect to (2001::43e4:6620), connection timed out
Fetched 328 kB in 31s (10.7 kB/s)                                          
Reading package lists... Done
Building dependency tree       
Reading state information... Done
21 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch  Could not connect to (, connection timed out Could not connect to (2001::43e4:6620), connection timed out
W: Some index files failed to download. They have been ignored, or old ones used instead.

nevermind I just used snap to install it and it works fine now.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.