Type '¨deb' is not known on line 1 in source list /etc/apt/sources.list.d/spotify.list [duplicate]
Solution 1:
To Fix, remove the ¨
from the file:
Run this,
sudo sed -i 's/¨//g' /etc/apt/sources.list.d/spotify.list
Then you can use apt
again:
sudo apt update
Why did this issue appear?
Probably you copy-pasted from a tutorial which uses wrong quotes, like
echo ¨deb http://repository.spotify.com stable non-free¨ | tee /etc/apt/sources.list.d/spotify.list
You need to use always the correct quotes
- Correct:
"
or'
. (Check here for difference) between these. - Wrong:
¨
or“