Brave on Mint 19.1

Questions about applications and software

danielsb
Level 1
Level 1
Posts: 1
Joined: Thu Feb 07, 2019 1:10 pm

Brave on Mint 19.1

Guys, sorry for the dumb question but I'm new on Linux and I have just installed the Mint 19.1 on a VM using Vmware Workstation.
When I try to install the browser Brave, following these steps
https://www.linuxhelp.com/how-to-instal ... mint-18-03
I always get this error message, eg when I run apt-get update:

E: Malformed entry 1 in list file /etc/apt/sources.list.d/brave.list (Component)
E: The list of sources could not be read.

And I can't advance. Any ideas why?

thanks,

DAMIEN1307

Re: Brave on Mint 19.1

Post by DAMIEN1307 »

hi danielsb...try installing brave browser using the codes i have provided below by copy and paste, 1 at a time into the terminal...let us know if it works ok for you...DAMIEN

Code: Select all

                  curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key add -                                  

Code: Select all

                  UBUNTU_CODENAME=$( (grep DISTRIB_CODENAME /etc/upstream-release/lsb-release || grep DISTRIB_CODENAME /etc/lsb-release) 2>/dev/null | cut -d'=' -f2 )                                  

Code: Select all

                  echo "deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ bionic main" | sudo tee /etc/apt/sources.list.d/brave-browser-release-bionic.list                                  

Code: Select all

                  sudo apt install brave-browser brave-keyring                                  

Last edited by DAMIEN1307 on Thu Feb 07, 2019 1:32 pm, edited 1 time in total.

User avatar

philotux
Level 5
Level 5
Posts: 828
Joined: Sat Jul 21, 2018 11:14 am
Location: Utopia

Re: Brave on Mint 19.1

Post by philotux »

E: Malformed entry 1 in list file /etc/apt/sources.list.d/brave.list (Component)
E: The list of sources could not be read.

Run

Code: Select all

                  sudo rm /etc/apt/sources.list.d/brave.list                

before the commands given by DAMIEN1307.

Last edited by philotux on Thu Feb 07, 2019 1:34 pm, edited 1 time in total.

DAMIEN1307

Re: Brave on Mint 19.1

Post by DAMIEN1307 »

thank you philotux for including the removal script for what he previously tried to install as this really should be done FIRST before applying the scripts ive listed...DAMIEN

User avatar

xenopeek
Level 25
Level 25
Posts: 26180
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Brave on Mint 19.1

Post by xenopeek »

Downloading random files from the internet and installing them on your system as this guide makes you do is a BAD idea.

First undo what your guide made you do. Open Software Sources program from your menu and remove all entries related to Brave in Additional Repositories and in Authentication Keys. The command shared by philotux doesn't remove everything.

DAMIEN1307's commands are adapted from Brave's own installation instructions for Linux Mint: https://brave-browser.readthedocs.io/en ... html#linux

Image

User avatar

philotux
Level 5
Level 5
Posts: 828
Joined: Sat Jul 21, 2018 11:14 am
Location: Utopia

Re: Brave on Mint 19.1

Post by philotux »

xenopeek wrote: ↑

Thu Feb 07, 2019 1:38 pm

remove all entries related to Brave in Additional Repositories and in Authentication Keys

You're right! That would have been left out. Thanks for the completion!

DAMIEN1307

Re: Brave on Mint 19.1

Post by DAMIEN1307 »

thank you also xenopeek for your help for the OP as well, you obviously read the scripts i listed as you realised that i did indeed make the adaptations for it to apply to "bionic 18.04" which 19.1 mint is based on and not the "xenial 16.04" which would apply to LM 18.xx versions of mint...DAMIEN

User avatar

elviolmp
Level 1
Level 1
Posts: 40
Joined: Wed Jan 03, 2018 11:48 am

Re: Brave on Mint 19.1

Post by elviolmp »

DAMIEN1307 wrote: ↑

Thu Feb 07, 2019 1:27 pm

hi danielsb...try installing brave browser using the codes i have provided below by copy and paste, 1 at a time into the terminal...let us know if it works ok for you...DAMIEN

Code: Select all

                      curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key add -                                          

Code: Select all

                      UBUNTU_CODENAME=$( (grep DISTRIB_CODENAME /etc/upstream-release/lsb-release || grep DISTRIB_CODENAME /etc/lsb-release) 2>/dev/null | cut -d'=' -f2 )                                          

Code: Select all

                      echo "deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ bionic main" | sudo tee /etc/apt/sources.list.d/brave-browser-release-bionic.list                                          

Code: Select all

                      sudo apt install brave-browser brave-keyring                                          

Thank you... Your tips were perfect for me. They work perfectly.

Linux Mint 20.2 Cinnamon 64bits - MSI X570-A Pro - AMD AM4 3600 - GTX 1660 - WD Black SN 750 500MB nvme

ninecats
Level 1
Level 1
Posts: 6
Joined: Thu Sep 26, 2019 5:57 pm

Re: Brave on Mint 19.1

Post by ninecats »

I too had that malicious line trying to install Brave on my 19.2 MATE edition, I admit I am new on this and I probably used an older installer written for Ubuntu. Now, will Damiens code work in 19.2? I ask before I try, it was a pain for me to get rid of that messy Brave installation.

malbob
Level 1
Level 1
Posts: 27
Joined: Tue Sep 27, 2016 8:56 pm

Re: Brave on Mint 19.1

Post by malbob »

I have Brave browser on Mint 19.2 for more than two weeks and it is the best browser around now . My humble opinion that is .

Machli
Level 1
Level 1
Posts: 6
Joined: Sat Nov 04, 2017 8:06 am

Re: Brave on Mint 19.1

Post by Machli »

Hi, everybody!

DAMIEN1307 wrote: ↑

Thu Feb 07, 2019 1:27 pm

Code: Select all

                      curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key add -                                          

Code above caused me the next error

Code: Select all

                  gpg: не найдено данных формата OpenPGP.                
t42
Level 6
Level 6
Posts: 1495
Joined: Mon Jan 20, 2014 6:48 pm

Re: Brave on Mint 19.1

Post by t42 »

Machli wrote: ↑

Thu Jun 04, 2020 12:03 am

Code above caused me the next error

Code: Select all

                      curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key add -                    

It seems that you didn't have internet connection while executing this command or the download was corrupted.
Try again with working internet connection. If this happens again, you can do it in steps

Code: Select all

                  wget https://brave-browser-apt-release.s3.brave.com/brave-core.asc sudo apt-key add brave-core.asc                

-=t42=-

Leminway
Level 3
Level 3
Posts: 139
Joined: Wed Jan 22, 2020 12:27 pm
Location: France

Re: Brave on Mint 19.1

Post by Leminway »

HI, just copied the lines as advised. It works for the installation... Havent used it yet. The orther methods do not work (snap etc.) works perfectly thanks a lot. takes 10 mn to install... Great !