I've attempted to install Brave on my Raspberry Pi 5 from https://raspberrytips.com/install-brave-browser-raspberry-pi/ and now the source file I think is corrupted. However when I go and view it, it says this:
deb [ arch=armhf ] http://raspbian.raspberrypi.com/raspbian/ bookworm main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.com/raspbian/ bookworm main contrib non-free rpi
But when I try anything else I get this:
apt-get update
E: Malformed line 1 in source list /etc/apt/sources.list.d/brave-browser-release.list (type)
E: The list of sources could not be read.
The previous answer to this question had this:
sudo rm /etc/apt/sources.list.d/brave-browser-release-.list
and it doesn't work for me.
Can someone help please? Thanks in advance.
/etc/apt/sources.listor any old file in/etc/apt/sources.list.d/*.list. Add your new sources files to/etc/apt/sources.list.d/somenamehere.list. Undo all your changes (that stuff in[]brackets and start in column 1) it should bedeb http://archive.raspberrypi.com/debian/ bookworm mainthen runsudo apt update && sudo apt dist-upgradeto ensure it's working. You can rename files you don't want to use tosomenamehere.list~andaptwill ignore it. – Dougie Dec 29 '23 at 20:47it doesn't work for meso, you deleted that file, and the error still says there's a problem with that file? that's unpossible – Jaromanda X Dec 30 '23 at 00:11