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

Solved!
Reply

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

Christina1978
Newbie

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Solution! 3 people liked this

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

Spotify
Spotify

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...

 

2 Replies
Solution! 3 people liked this

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

Spotify
Spotify

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...

 

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

1SO
Newbie

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

 

SUGGESTED POSTS