Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

A while ago Spotify (the streaming music service) came out with a preview for Linux of their client. I have successfully been able to run it on 10.04.

Now that I am on 10.10, I cannot seem to find it in the package manager, let alone install it.

Software Sources gives me this:

Failed to fetch
Unable to find expected entry  non-free/source/Sources in Meta-index file (malformed Release file?)
Some index files failed to download, they have been ignored, or old ones used instead.

So what should I do?

share|improve this question
Yup, I'm aware :) I've seen a screenshot of someone running the native spotify client, however I can't even get the repository to work correctly :( – blackn1ght Apr 10 '11 at 21:00
+1 for making me aware there's actually a native Linux version of Spotify! – Jonik Nov 6 '11 at 19:58
Note: The Linux client for Spotify only works if you have a premium account. This is because they have not found a way to reliably display ads. – Anonymous Nov 6 '11 at 21:05
up vote 20 down vote accepted

I installed it yesterday fine. The error you're getting is it's trying to get the source version (which doesn't exist). Just edit your sources using: sudoedit /etc/apt/sources.list

And make sure you've got something like this:

deb stable non-free
# deb-src stable non-free

The second (deb-src) line is commented. Make sure yours is and then run a sudo apt-get update. You shouldn't get any errors.

Make sure the key is installed (doesn't sound like your problem):

sudo apt-key adv --keyserver hkp:// --recv-keys D2C19886

And then install it:

sudo apt-get install spotify-client-qt spotify-client-gnome-support
share|improve this answer
I've done that, but whilst I'm not getting the error anymore, I'm not getting the packages :/ – Dante Ashton Oct 15 '10 at 14:08
I tell a lie, my terminal seemingly has concussion and has now installed the packages :D – Dante Ashton Oct 15 '10 at 14:09
no command found deb 11.04 any help? – schwiz Jul 26 '11 at 23:27
@scwiz That's not a command, it's supposed to be a line in the file /etc/apt/sources.list – Oli Jul 27 '11 at 8:26
Edited this to use apt-key adv --keyserver --recv-keys 4E9CFF4E as in the official instructions. (The gpg commands didn't work for me; apparently didn't respond.) – Jonik Nov 8 '11 at 13:43

Sure thing, i'm listening to it as i write this! Define this source for Apt

deb stable non-free

Then your usual apt update routine (GUI tools like Software Center do this for you), and install the packages spotify-client-qt and spotify-client-gnome-support. Sometimes it's a little buggy and eats loads of CPU, or doesn't draw it's main window at startup, but in general it works great.

There has been several mentions of Spotify over at OMG Ubuntu.

share|improve this answer
I've tried that, but this is what I get: Failed to fetch Unable to find expected entry 'non-free/source/Sources' in Release file (Wrong sources.list entry or malformed file) Some index files failed to download. They have been ignored, or old ones used instead. – blackn1ght Apr 10 '11 at 20:58
I can navigate to and apt fetches the file successfully with "apt-get download spotify-client-qt". You're not trying to use a source repo, are you? – Mace Ojala Apr 10 '11 at 21:04
Solved! When I was adding the repo, the software sources was automatically adding a "source" line as well, which isn't in the Releases file in dists/stable, so it was failing. I've removed that line and now it's working :) – blackn1ght Apr 10 '11 at 21:11
Awesome, i'm happy to hear it! :) – Mace Ojala Apr 10 '11 at 21:17
what to do now i am new do u have a step by step introduction cheers would be awsome thank u – user16290 May 3 '11 at 17:19

This should help you obtain the Spotify Linux preview:

However, If I remember correctly the Linux preview doesn't actually do much and doesn't actually function. Spotify currently recommends you install the Windows version through Wine:

This documentation from Spotify should help you:

Good luck.

share|improve this answer

If you are still having trouble, what I ended up doing that worked was removing all instances in my software and sources of spotify repositories. From there I just re-added the repository by clicking add and then typing in deb stable non-free. I refreshed the window, opened up terminal, typed

sudo apt-get update 
sudo apt-get install spotify-client

and everything worked just fine

share|improve this answer

You can also install the very latest Spotify version from the testing PPA :

sudo apt-key adv --keyserver hkp:// --recv-keys D2C19886
echo deb testing non-free | sudo tee /etc/apt/sources.list.d/spotify.list
sudo apt-get update
sudo apt-get install spotify-client

enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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