I'm new to Linux and was attempting to install the Brave Browser using the instructions on the website, listed below:
curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key add -
echo "deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ `lsb_release -sc` main" | sudo tee /etc/apt/sources.list.d/brave-browser-release-`lsb_release -sc`.list
sudo apt update
sudo apt install brave-browser brave-keyring
https://brave-browser.readthedocs.io/en/latest/installing-brave.html#linux
This didn't work, so I tried playing around with it, i.e changing the commands a bit, and in my disgusting ignorance I made bad boo boo... now every time I try to install an app from the app center I get this error:
E: Type 'sudo' is not known on line 1 in source list
/etc/apt/sources.list.d/brave-browser-release-juno.list E: The list of
sources could not be read
I went to /etc/apt/sources.list.d/
and behold: a new .list file called brave-browser-release-juno.list
- I opened it and there is one line in the file: sudo apt update
, that's all it says. Sadly Elemenary won't read any of the other lists now, and I cannot figure out how to delete this new unwanted .list file.
Can somebody smarter than me please advise?
How do I restore this folder to its default state?