I try to install spotify on my ubuntu 16.04 just very can't remember what I do and get the message.

An error occurred, please run Package Manager from the right-click
window or apt-get in a terminal to see what is

The error message was:

Error: opening the cache(E:Type 'sudo' is not know on line 1 in source list/etc/apt/sources/.list,E: the list of source could not be read.)'This usually means that you have >installed packages with unmet dependencies

I did not sure it this a problem too. I got something like this when I used code: sudo -H gedit /etc/apt/sources.list

sudo apt-get update
#deb-src http://repository.spotify.com stable non-free
#deb http://repository.spotify.com stable non-free

You may want to re-install the package with the missing dependencies first:

sudo apt-get -f install

Should that fail, you'll have to purge spotify:

sudo apt-get purge spotify*
  • Thank you very much but It still not work for me . – somlakj Jun 25 '17 at 15:00

Not the answer you're looking for? Browse other questions tagged or ask your own question.