Installing Brave on Debian 10 - Messed up sources.list and things like that

digitard

Active Member
Joined
Jan 3, 2021
Messages
115
Reaction score
37
Credits
1,041
I followed those instructions

  1. sudo apt install apt-transport-https curl gnupg
  2. 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 -
  3. 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
  4. sudo apt update
  5. sudo apt install brave-browser
in the last one I got error


:~# sudo apt install brave-browser
Reading package lists... Done​
Building dependency tree​
Reading state information... Done​
Some packages could not be installed. This may mean that you have​
requested an impossible situation or if you are using the unstable​
distribution that some required packages have not yet been created​
or been moved out of Incoming.​
The following information may help to resolve the situation:​
The following packages have unmet dependencies:​
brave-browser : Depends: wget but it is not installable​
E: Unable to correct problems, you have held broken packages.​

any ideas? Thanks
 


Depends: wget but it is not installable

Huh... That's very unusual. wget is a pretty basic tool and I don't think a set of default repositories doesn't contain it.

What's the output of 'apt policy wget'?
 
Huh... That's very unusual. wget is a pretty basic tool and I don't think a set of default repositories doesn't contain it.

What's the output of 'apt policy wget'?
wget:
Installed: (none)
Candidate: (none)
Version table:


that's all
 
Given how long you've been here, is it safe for me to assume you've covered the basics like 'sudo apt update'?

Something tells me this one is going to be a mystery.
 
wget is from the main repository, so find it odd that it's not available on your system. What's the output of the following.
Code:
apt-cache search wget | grep ^wget
 
that's all
This is what I get and I am running Linux mint and I dare say would be the same for Debian as well just differing names, But follow @f33dm3bits suggestion if no joy in this way.


1614006475111.png
 
Few months ago, with help from this forum, I installed a full distribution for personal use for first time... the all mighty Debian buster.

Guys I never read anything unless I have a problem, I just use the machine and learning on the way (no brain no time) Thank you all BTW

I'll be back
 
Last edited:
wget is from the main repository, so find it odd that it's not available on your system. What's the output of the following.
Code:
apt-cache search wget | grep ^wget

I press enter here:
:~#apt-cache search wget | grep ^wget

and it goes to the next line like this:
:~#

so basically nothing happens
______________________________________
edit
I forgot to mention that I have messed up with synaptic's list of repositories
 
Last edited:
Not gonna pretend otherwise, I'm baffled. I am well and truly baffled how wget isn't working.

Try downloading this to your Downloads folder:


Then, open your terminal:

Code:
cd Downloads
sudo apt install wget<press tab and it will autocomplete>

See if that installs wget.

This is so wrong. So very, very wrong.
 
I forgot to mention that I have messed up with synaptic's list of repositories

That will be why.

Can you share with us

Code:
cat /etc/apt/sources.list

It should look something like this

Code:
chris@Buster-Xfce-HDD:~$ cat /etc/apt/sources.list
# See https://wiki.debian.org/SourcesList for more information.
deb http://deb.debian.org/debian buster main
deb-src http://deb.debian.org/debian buster main

deb http://deb.debian.org/debian buster-updates main
deb-src http://deb.debian.org/debian buster-updates main

deb http://security.debian.org/debian-security/ buster/updates main
deb-src http://security.debian.org/debian-security/ buster/updates main

You can also install Brave via Snap, but you are going to need to address that sources.list or you won't get the right updates on time.

Wizard
 
any ideas? Thanks
Another option is to download from here https://github.com/brave/brave-browser/releases/tag/v1.21.63 then open a terminal and install with
Code:
sudo apt install ./brave-browser-dev_1.21.63_amd64.deb
when installing brave will add the repo to the sources.list file.

NOTE1: This is the DEV release and as stated there
This is not the release version of Brave.
Be careful - things are unstable and might even be broken.
NOTE2: Make sure to download the file to your home directory, otherwise, you have to:
1. cd into the directory you downloaded it, i.e. Downloads
Code:
cd Downloads
then install using the command above.
2. Open a file manager, go to your Downloads dir, right-click on a blank space and from the context menu select open terminal here, then install using the command above.
3. Open the file manager, right-click the .deb file and from the context menu select open/install with Synaptic.
 
Here is all Debian Sources List for Buster

deb http://deb.debian.org/debian buster main
#deb-src http://deb.debian.org/debian buster main

deb http://deb.debian.org/debian-security/ buster/updates main
#deb-src http://deb.debian.org/debian-security/ buster/updates main

deb http://deb.debian.org/debian buster-updates main
#deb-src http://deb.debian.org/debian buster-updates main

deb http://deb.debian.org/debian buster main contrib non-free
#deb-src http://deb.debian.org/debian buster main contrib non-free

deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free
#deb-src http://deb.debian.org/debian-security/ buster/updates main contrib non-free

deb http://deb.debian.org/debian buster-updates main contrib non-free
#deb-src http://deb.debian.org/debian buster-updates main contrib non-free

deb http://deb.debian.org/debian buster-backports main contrib non-free
#deb-src http://deb.debian.org/debian buster-backports main contrib non-free

Once you have your sources list fixed the run
Code:
sudo apt install wget
 
Last edited by a moderator:
That will be why.

Can you share with us

Code:
cat /etc/apt/sources.list

It should look something like this

Code:
chris@Buster-Xfce-HDD:~$ cat /etc/apt/sources.list
# See https://wiki.debian.org/SourcesList for more information.
deb http://deb.debian.org/debian buster main
deb-src http://deb.debian.org/debian buster main

deb http://deb.debian.org/debian buster-updates main
deb-src http://deb.debian.org/debian buster-updates main

deb http://security.debian.org/debian-security/ buster/updates main
deb-src http://security.debian.org/debian-security/ buster/updates main

You can also install Brave via Snap, but you are going to need to address that sources.list or you won't get the right updates on time.

Wizard

Here:

deb cdrom:[Official Debian GNU/Linux Live 10.7.0 cinnamon 2020-12-05T14:23]/ buster main

deb cdrom:[Official Debian GNU/Linux Live 10.7.0 cinnamon 2020-12-05T14:23]/ buster main

# Line commented out by installer because it failed to verify:
deb http://security.debian.org/debian-security/ buster/updates main
# Line commented out by installer because it failed to verify:
deb-src http://security.debian.org/debian-security/ buster/updates main

# buster-updates, previously known as 'volatile'
# A network mirror was not selected during install. The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.

deb http://deb.debian.org/debian/ buster-updates main
deb-src http://deb.debian.org/debian/ buster-updates main
______________________________________________________
edit
I want to fix this, installing brave it's secondary
 
Last edited:
You will need to edit your sources list to fix it
Code:
sudo gedit /etc/apt/sources.list
- NOTE gedit may not be your text editor you may have to replace gedit with your text editor - gedit is for Gnome Desktop - it may be nano - mousepad or something else
see my list of Debian sources in previous post above-
now copy that previous post and paste it into you sources list then save it and close the text editor and terminal - then reopen the terminal and run
Code:
sudo apt update
then
Code:
sudo apt upgrade
then run
Code:
sudo apt install wget
then you can install brave - Hope this helps
 
It isn't necessary to have both main and main non-free; have either one or the other https://wiki.debian.org/SourcesList#sources.list_format. If you need non-free then your sources.list should be something like
Code:
deb http://deb.debian.org/debian buster main contrib non-free
#deb-src http://deb.debian.org/debian buster main contrib non-free

deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free
#deb-src http://deb.debian.org/debian-security/ buster/updates main contrib non-free

deb http://deb.debian.org/debian buster-updates main contrib non-free
#deb-src http://deb.debian.org/debian buster-updates main contrib non-free

##buster-backports for newer versions of software
deb http://deb.debian.org/debian buster-backports main contrib non-free
#deb-src http://deb.debian.org/debian buster-backports main contrib non-free
When you run
Code:
sudo apt update
APT will look at this file and search trough main, contrib and non-free. Also, if you're not compiling software, you can comment the lines starting with deb-src since it'll only fill your disk up with stuff you won't use. Instead of starting GUIs with sudo privileges, consider using something else or launch with gksu/pkexec
Code:
pkexec text_editor_name /etc/apt/sources.list
However, I recommend using nano instead
Code:
sudo nano /etc/apt/sources.list
 
sudo nano /etc/apt/sources.list

delete everything that is there now.
Code:
deb http://deb.debian.org/debian/ buster non-free contrib main 
# deb-src http://deb.debian.org/debian/ buster main contrib non-free 
deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free 
# deb-src http://deb.debian.org/debian-security/ buster/updates main contrib non-free 
deb http://deb.debian.org/debian/ buster-updates main contrib non-free 
# deb-src http://deb.debian.org/debian/ buster-updates main contrib non-free 
deb http://deb.debian.org/debian/ buster-backports main contrib non-free 
# deb-src http://deb.debian.org/debian/ buster-backports main contrib non-free
Copy the above, ctrl+o will write, then do ctrl+x to quit.

Followed by : sudo apt update
then sudo apt install wget

That should take care of the package issues.
 
I had no time to fix the list because of problems, soon, thank you all
 

Members online


Top