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.