I cant put Librewolf, Brave or Mullvad on Debian 13

Happy new year everyone. I have a slightly different issue with trying to install brave. I too ran into the issue after doing the echo command.

echo “deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=$( dpkg --print-architecture )] https://brave-browser-apt-release.s3.brave.com/brave-browser.sources $(lsb_release -cs) main” | sudo tee /etc/apt/sources.list.d/brave-browser-release.sources

And got this:

Error: Malformed stanza 1 in source list /etc/apt/sources.list.d/brave-browser-release.sources (type)

Error: The list of sources could not be read.

I checked it several time to make sure I didn’t make any type-Os and tried it again. Same thing. This was late last night so I called it quits.
To day I went into the same Template to do something else and tryed to bring up Synaptic Package Manager and got a window in it giving me the same error and then closing down. I then did a quick search on librewolf and tried this:

user@Debian-13-xfce-Business:~$ sudo apt update
Error: Malformed stanza 1 in source list /etc/apt/sources.list.d/brave-browser-release.sources (type)
Error: The list of sources could not be read.
user@Debian-13-xfce-Business:~$ curl -fsS https://dl.brave.com/install.sh | sh
curl: (6) Could not resolve host: dl.brave.com
user@Debian-13-xfce-Business:~$ sudo apt purge brave-browser
Error: Malformed stanza 1 in source list /etc/apt/sources.list.d/brave-browser-release.sources (type)
Error: The list of sources could not be read.
user@Debian-13-xfce-Business:~$ echo “deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main” | sudo tee /etc/apt/sources.list.d/brave-browser-release.list
deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main
user@Debian-13-xfce-Business:~$ sudo apt update
Error: Malformed stanza 1 in source list /etc/apt/sources.list.d/brave-browser-release.sources (type)
Error: The list of sources could not be read.
user@Debian-13-xfce-Business:~$ echo “deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=$( dpkg --print-architecture )] https://brave-browser-apt-release.s3.brave.com/ stable main” | sudo tee /etc/apt/sources.list.d/brave-browser-release.list
deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main
user@Debian-13-xfce-Business:~$ sudo apt update
Error: Malformed stanza 1 in source list /etc/apt/sources.list.d/brave-browser-release.sources (type)
Error: The list of sources could not be read.
user@Debian-13-xfce-Business:~$
As you can see I tried one mentioned above and another online and then tried a couple of different combos of the echo command. I think I need to undo the original echo command I did to fix this but I have no idea how to do that. Any help would be appreciated. Thanks.

this can’t work because templates must go through a proxy to connect to the Internet.

curl -fsS -x http://localhost:8082 https://dl.brave.com/install.sh | sh should give a better result

Thanks solene, that fixed it. In other templates should I use that in place of…

echo “deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=$( dpkg --print-architecture )] https://brave-browser-apt-release.s3.brave.com/brave-browser.sources $(lsb_release -cs) main” | sudo tee /etc/apt/sources.list.d/brave-browser-release.sources

Or should I do the above echo command and then this one?

This should work on debian based templates IMO.

curl -fsS -x http://localhost:8082 https://dl.brave.com/install.sh | sh

solene’s code fixed the issue with the template crashing but Brave did not install. This is what I did and the response…

~$ curl -fsS -x http://localhost:8082 https://dl.brave.com/install.sh | sh
Installing Brave Browser (release)

Any Ideas?

Take a look at this page: Using the updates proxy. Use the export command before running the Brave installation script.

I think that I should just remind you that by doing so:

  1. you are trying to download a file from internet
  2. then you run the script in that file and give it access to internet too.