0

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

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
David Foerster
  • 36,264
  • 56
  • 94
  • 147
somlakj
  • 33

1 Answers1

0

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*
Dennis Mungai
  • 530
  • 3
  • 12