i've just bought a new linux os laptop and tried to install spotify. However i got this error.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
spotify-client : Depends: libgconf-2-4 but it is not installable
Recommends: libavcodec57 but it is not installable or
libavcodec-extra57 but it is not installable or
libavcodec-ffmpeg56 but it is not installable or
libavcodec-ffmpeg-extra56 but it is not installable or
libavcodec54 but it is not installable or
libavcodec-extra-54 but it is not installable
Recommends: libavformat57 but it is not installable or
libavformat-ffmpeg56 but it is not installable or
libavformat54 but it is not installable
E: Unable to correct problems, you have held broken packages.
Solved! Go to Solution.
Hello @BroAce27. Thanks for posting in the Spotify Community!
While Spotify for Linux is currently not a platform that is actively supported (it's a labor of love from Spotify's engineers that wanted to listen to Spotify on their Linux development machines) I'll see if I can point you in the right direction to get you up and running.
I don't run Linux on a daily basis, but have a background in using it for servers, so am quite familiar with using the terminal to install / remove software packages. There is an installation instructions page for Spotify for Linux that you can check out if you haven't already.
Your log output specifically denotes that the spotify-client : Depends: libgconf-2-4 but it is not installable which effectively means that the libgconf-2-4 (and other 3rd party packages in the list) are, well, not installable on your system for some reason. Could be that your package manager is misconfigured, or it could be that there are packages in a broken state on your system.
It's hard to say without being able to see more details, however, you may want to check out handy places such as StackExchange for the held broken packages error as a starting point. Please note that this is a 3rd party website not supported by Spotify, so proceed with caution, or ask for assistance from someone you trust locally with Linux experience.
Hopefully this helps get you pointed in the right direction. Keep on rocking! 🎸