Announcements

Help Wizard

Step 1

NEXT STEP

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

Solved!

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

I tried to install Spotify and I now have this error message. I am running Ubuntu 16.04. Please help me get rid of it.

 

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

Reply

Accepted Solutions
Marked as solution

The word sudo has ended up in that file, probably as a consequence of following the tricky installation directions on: https://www.spotify.com/download/linux/

 

First remove that file, by openign a terminal and typing:

 

 

sudo rm /etc/apt/sources.list.d/spotify.list

To make sure you got rid of the problem, type:

sudo apt update

It should spit out lots of urls that it is downloading, but it should not say that error message.

 

After that is done, see if you can just click on this link and download and install spotify:

 

https://repository.scdn.co/pool/non-free/s/spotify-client/spotify-client_1.0.48.103.g15edf1ec-94_amd...

 

View solution in original post

2 Replies
Marked as solution

The word sudo has ended up in that file, probably as a consequence of following the tricky installation directions on: https://www.spotify.com/download/linux/

 

First remove that file, by openign a terminal and typing:

 

 

sudo rm /etc/apt/sources.list.d/spotify.list

To make sure you got rid of the problem, type:

sudo apt update

It should spit out lots of urls that it is downloading, but it should not say that error message.

 

After that is done, see if you can just click on this link and download and install spotify:

 

https://repository.scdn.co/pool/non-free/s/spotify-client/spotify-client_1.0.48.103.g15edf1ec-94_amd...

 

for some reason the link you provided goes to the website which says 404 not found

 

Suggested posts