Jump to content

curl command returns nothing when installing brave browser on ubuntu20.04

sudo apt install apt-transport-https curl

sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg

echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg 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

here are the commands I was supposed to key in.

But curl returns nothing when I typed it in. 

like the command does not even work on my macine?? 

what could caused this issue?? 

If it is not broken, let's fix till it is. 

Link to comment
Share on other sites

Link to post
Share on other sites

21 minutes ago, mrchow19910319 said:
sudo apt install apt-transport-https curl

sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg

echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg 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

here are the commands I was supposed to key in.

But curl returns nothing when I typed it in. 

like the command does not even work on my macine?? 

what could caused this issue?? 

Do "ls /usr/share/keyrings/" . Is the gpg file you needed to download there or not?

Link to comment
Share on other sites

Link to post
Share on other sites

It's not supposed to return anything unless there's an error, it just does the job.

 

F@H
Desktop: i9-13900K, ASUS Z790-E, 64GB DDR5-6000 CL36, RTX3080, 2TB MP600 Pro XT, 2TB SX8200Pro, 2x16TB Ironwolf RAID0, Corsair HX1200, Antec Vortex 360 AIO, Thermaltake Versa H25 TG, Samsung 4K curved 49" TV, 23" secondary, Mountain Everest Max

Mobile SFF rig: i9-9900K, Noctua NH-L9i, Asrock Z390 Phantom ITX-AC, 32GB, GTX1070, 2x1TB SX8200Pro RAID0, 2x5TB 2.5" HDD RAID0, Athena 500W Flex (Noctua fan), Custom 4.7l 3D printed case

 

Asus Zenbook UM325UA, Ryzen 7 5700u, 16GB, 1TB, OLED

 

GPD Win 2

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, Alexeygridnev1993 said:

Do "ls /usr/share/keyrings/" . Is the gpg file you needed to download there or not?

ubuntu-advantage-cis.gpg               ubuntu-archive-keyring.gpg
ubuntu-advantage-esm-apps.gpg          ubuntu-archive-removed-keys.gpg
ubuntu-advantage-esm-infra-trusty.gpg  ubuntu-cloudimage-keyring.gpg
ubuntu-advantage-fips.gpg              ubuntu-cloudimage-removed-keys.gpg
ubuntu-advantage-ros.gpg               ubuntu-master-keyring.gpg

here are the result,, the brave archive is not here. after I key in the curl command the cursor keeps blinking and nothing happens after that

20 minutes ago, Kilrah said:

It's not supposed to return anything unless there's an error, it just does the job.

 

wait... I used to use curl to install software with no problem... now I only see blinking cursor... 

If it is not broken, let's fix till it is. 

Link to comment
Share on other sites

Link to post
Share on other sites

guys I have found the issue, so after checking brave's support page I was being able to get another error

 

Quote

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

the problem is I am using V2RAY as my VPN service. and I setted the proxy from socks4 to socks 5.

so how do I tell curl to use socks 5 instead?

I have run into similar issue with git, I used this command to fix it ::

 

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

do I change my system's proxy from socks 4 to 5? or something?? 

 

I still need help x.x

If it is not broken, let's fix till it is. 

Link to comment
Share on other sites

Link to post
Share on other sites

update:

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

sudo curl --proxy 127.0.0.1:10809 -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/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] https://brave-browser-apt-release.s3.brave.com/ 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

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

Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://packages.microsoft.com/repos/code stable InRelease                                                                                                                
Hit:3 http://archive.canonical.com/ubuntu focal InRelease                                                                                                                                    
Hit:4 http://archive.ubuntu.com/ubuntu focal InRelease                                                                                                   
Get:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]                          
Get:6 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]                                   
Get:7 http://archive.ubuntu.com/ubuntu focal-security InRelease [114 kB]                                    
Hit:8 https://packages.microsoft.com/repos/edge stable InRelease                                                                                                  
Err:9 https://brave-browser-apt-release.s3.brave.com stable InRelease                                                                                                                               
  Could not connect to brave-browser-apt-release.s3.brave.com:443 (162.125.2.5), connection timed out Could not connect to brave-browser-apt-release.s3.brave.com:443 (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 https://brave-browser-apt-release.s3.brave.com/dists/stable/InRelease  Could not connect to brave-browser-apt-release.s3.brave.com:443 (162.125.2.5), connection timed out Could not connect to brave-browser-apt-release.s3.brave.com:443 (2001::43e4:6620), connection timed out
W: Some index files failed to download. They have been ignored, or old ones used instead.

 

If it is not broken, let's fix till it is. 

Link to comment
Share on other sites

Link to post
Share on other sites

@Ashley MLP Fangirl  could you take a look at this issue that I run into?? if you have the time. 

 

thank you. I saw your replies on the linux challenge post. So I thought I would ask you about this. 

If it is not broken, let's fix till it is. 

Link to comment
Share on other sites

Link to post
Share on other sites

4 minutes ago, mrchow19910319 said:

@Ashley MLP Fangirl  could you take a look at this issue that I run into?? if you have the time. 

 

thank you. I saw your replies on the linux challenge post. So I thought I would ask you about this. 

idk i ran it on my system and it worked fine. i've included the file that the command is supposed to download for you, all you need to do is move it to /usr/share/keyrings/ then move on with the list of commands you listed after the curl portion. moving the file i included will do the same thing.

brave-browser-archive-keyring.gpg

She/Her

Link to comment
Share on other sites

Link to post
Share on other sites

3 minutes ago, Ashley MLP Fangirl said:

idk i ran it on my system and it worked fine. i've included the file that the command is supposed to download for you, all you need to do is move it to /usr/share/keyrings/ then move on with the list of commands you listed after the curl portion. moving the file i included will do the same thing.

brave-browser-archive-keyring.gpg 2.77 kB · 0 downloads

okay, I did not explain it clearly. I did get the file, it was in the correct folder. then I run sudo apt update, then apt cannot get the brave software from the cloud, its download speed is liek 35k then it stopped. and gives you those warnings. see the last quote I posted. 

If it is not broken, let's fix till it is. 

Link to comment
Share on other sites

Link to post
Share on other sites

4 minutes ago, mrchow19910319 said:

okay, I did not explain it clearly. I did get the file, it was in the correct folder. then I run sudo apt update, then apt cannot get the brave software from the cloud, its download speed is liek 35k then it stopped. and gives you those warnings. see the last quote I posted. 

OH OOPS. anyway idk, that is a brave problem. you need to go into software & updates and disable that repo though otherwise your system wont' update anymore. 

She/Her

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, Ashley MLP Fangirl said:

OH OOPS. anyway idk, that is a brave problem. you need to go into software & updates and disable that repo though otherwise your system wont' update anymore. 

nevermind I used snap to install it. lol it worked. so im good for now. thanks though!

If it is not broken, let's fix till it is. 

Link to comment
Share on other sites

Link to post
Share on other sites

3 minutes ago, mrchow19910319 said:

nevermind I used snap to install it. lol it worked. so im good for now. thanks though!

you still need to disable the repo. having that non-functioning one there bricks your ability to update. 

She/Her

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, Ashley MLP Fangirl said:

you still need to disable the repo. having that non-functioning one there bricks your ability to update. 

i think I did a few hours ago. now I can run update and upgrade perfectly without any issue. 

If it is not broken, let's fix till it is. 

Link to comment
Share on other sites

Link to post
Share on other sites

4 hours ago, mrchow19910319 said:

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

The regime you live in is blocking Amazon Web Services. See http://manpages.ubuntu.com/manpages/trusty/man5/apt.conf.5.html for how to proxy the apt http-requests.

 

Once you get apt up and running with a proxy I would recommend you to go back to the packaged version of Brave, since using the snap kinda violates the purpose of using Brave from the start.

Link to comment
Share on other sites

Link to post
Share on other sites

5 hours ago, flindeberg said:

The regime you live in is blocking Amazon Web Services. See http://manpages.ubuntu.com/manpages/trusty/man5/apt.conf.5.html for how to proxy the apt http-requests.

 

Once you get apt up and running with a proxy I would recommend you to go back to the packaged version of Brave, since using the snap kinda violates the purpose of using Brave from the start.

what purpose?

Link to comment
Share on other sites

Link to post
Share on other sites

On 11/10/2021 at 2:25 AM, flindeberg said:

Privacy and control.

Snaps give you both of those. But really if you want privacy, then font use a browser.

Link to comment
Share on other sites

Link to post
Share on other sites

2 hours ago, 10leej said:

Snaps give you both of those.

Not really. Most users installing snaps have no idea if they contain malware, or for example use your computer to mine cryptocurrency for someone else (https://www.reddit.com/r/linux/comments/8iupdz/caution_the_are_malware_snaps_in_ubuntu_snaps/). Snaps give Canonical control, but you lose your privacy, in terms of the Snap, and control in terms of your hardware.

 

There is for all intents and purposes no public scrutiny of Snaps.

Link to comment
Share on other sites

Link to post
Share on other sites

2 hours ago, flindeberg said:

Not really. Most users installing snaps have no idea if they contain malware, or for example use your computer to mine cryptocurrency for someone else (https://www.reddit.com/r/linux/comments/8iupdz/caution_the_are_malware_snaps_in_ubuntu_snaps/). Snaps give Canonical control, but you lose your privacy, in terms of the Snap, and control in terms of your hardware.

 

There is for all intents and purposes no public scrutiny of Snaps.

Malware occasionally sneaks into apt repositories as well. Plus, Brave is a closed source product anyway, so, no matter how they package it, there is a chance it's doing something you don't want it to.

 

I really don't like it when people hate on snaps for "political" reasons and then start making up nonsense arguments on why snaps are bad.

Link to comment
Share on other sites

Link to post
Share on other sites

Snaps have their own set of problems, notably, the slow startup times and the snapd daemon that constantly has to run in the background

Also the snap website and the snap backend isnt open source

 

So I prefer flatpak instead but for server use, I think snaps do an OK job

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, AkIonSight said:

Snaps have their own set of problems, notably, the slow startup times and the snapd daemon that constantly has to run in the background

Also the snap website and the snap backend isnt open source

 

So I prefer flatpak instead but for server use, I think snaps do an OK job

Is flatpack like the portable version of windows app, where you dont have to install it just open the folder and click xxx.exe and it will run??? Is it something like that??? 

If it is not broken, let's fix till it is. 

Link to comment
Share on other sites

Link to post
Share on other sites

9 hours ago, flindeberg said:

Not really. Most users installing snaps have no idea if they contain malware, or for example use your computer to mine cryptocurrency for someone else (https://www.reddit.com/r/linux/comments/8iupdz/caution_the_are_malware_snaps_in_ubuntu_snaps/). Snaps give Canonical control, but you lose your privacy, in terms of the Snap, and control in terms of your hardware.

 

There is for all intents and purposes no public scrutiny of Snaps.

snaps are open source though......

https://github.com/snapcore/snapd

 

It's the snap store that isn't and that's because every time canonical open sources something, there's been no community assistance in the development, or even later community feedback (aka what happenned with Launchpad, Ubuntu One, and even the ubuntu software center).

 

1 hour ago, mrchow19910319 said:

Is flatpack like the portable version of windows app, where you dont have to install it just open the folder and click xxx.exe and it will run??? Is it something like that??? 

That's exactly what AppImage is, but the rest are like that in concept yes as their universal portable binaries you can use.

 

6 hours ago, flindeberg said:

technically Brave is proprietary by license, but not closed source. It's pretty much as restricted as firefox is since it shares the same license

Link to comment
Share on other sites

Link to post
Share on other sites

3 hours ago, mrchow19910319 said:

Is flatpack like the portable version of windows app, where you dont have to install it just open the folder and click xxx.exe and it will run??? Is it something like that??? 

No Flatpaks arent like portable windows apps, they serve a different use case

for a portable apps for linux, look towads AppImages, they can run like a portable app and are super handy at times

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×