Score:-5

Type '¨deb' is not known on line 1 in source list /etc/apt/sources.list.d/spotify.list

in flag

I'm trying to install spotify and after failing every time, I try to do sudo apt update, but I am greeted with the message

Type '¨deb' is not known on line 1 in source list /etc/apt/sources.list.d/spotify.list
The list of sources could not be read.

does anyone know how to fix/get rid of this?

This is the content of the file:

$ cat /etc/apt/sources.list.d/spotify.list
¨deb http://repository.spotify.com stable non-free¨
David avatar
cn flag
Show us line one of the sources list. That is where your question says the error is.
in flag
how would i see line one. i have closed terminal and dont see the command anymore
in flag
how would i change it to a ```.```?
pLumo avatar
in flag
Didn't you post the same question yesterday ignoring all comments to it?
in flag
tried what the comments said and nothing worked
pLumo avatar
in flag
And then you post exactly the same question and think you will get a better answer? You had better edited your original question telling us what you tried and how it failed so we can help you with that.
in flag
i am new to this i am sorry. the post you shared got me to opening the ```sudoedit``` but i do not know how to delete the ¨ at the beginning
pLumo avatar
in flag
Please edit your question and add the contents of `/etc/apt/sources.list.d/spotify.list`.
in flag
how do i do that?
pLumo avatar
in flag
In a terminal, run `cat /etc/apt/sources.list.d/spotify.list`. Then with the mouse, mark the output. Inside the textbox here in the browser, click with middle mouse button.
in flag
i ran the ```cat /etc/apt/sources.list.d/spotify.list``` and it just says ```¨deb http://repository.spotify.com stable non-free¨```.
Score:3
in flag

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
in flag
thank you so much, this worked :)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.