A while ago Spotify (the streaming music service) came out with a preview for Linux of their client.

So what should I do?

  • 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
  • 3
    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
  • 2
    Possible duplicate of How do I install Spotify in Ubuntu 16.04 Apr 17 '18 at 12:17
  • 2
    @JorgeCastro: we're using this one as the canonical one: you're creating a circular reference. :-)
    – Fabby
    Apr 17 '18 at 14:58
  • Or just merge them? Apr 21 '18 at 1:58

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 http://repository.spotify.com stable non-free
# deb-src http://repository.spotify.com 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://keyserver.ubuntu.com:80 --recv-keys D2C19886

And then install it:

sudo apt-get install spotify-client-qt spotify-client-gnome-support
  • I've done that, but whilst I'm not getting the error anymore, I'm not getting the packages :/ Oct 15 '10 at 14:08
  • I tell a lie, my terminal seemingly has concussion and has now installed the packages :D Oct 15 '10 at 14:09
  • no command found deb 11.04 any help? Jul 26 '11 at 23:27
  • 1
    @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 keyserver.ubuntu.com --recv-keys 4E9CFF4E as in the official instructions. (The gpg commands didn't work for me; apparently wwwkeys.de.pgp.net 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 http://repository.spotify.com 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.

  • I've tried that, but this is what I get: Failed to fetch repository.spotify.com/dists/stable/Release 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 repository.spotify.com/dists/stable/non-free/binary-i386 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
  • 2
    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
  • 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
  • Also, if you want it to be integrated with the sound menu and work with your media controls (play/pause, etc. on keyboard), you can use spotify-notify. code.google.com/p/spotify-notify
    – JLinden
    May 3 '11 at 17:50

To install the Spotify snap package in all currently supported versions of Ubuntu, open the terminal and type:

sudo snap install spotify

Features of the Spotify free version

  • Play any song, artist, album or playlist instantly
  • Choice of three audio streaming quality options.

    1. normal audio quality (160 kbps)
    2. paid subscribers can also select high quality streaming (320 kbps)
    3. or lossless audio (1,411 kbps)
  • Browse hundreds of ready-made playlists in every genre and mood

  • Stay on top of the charts
  • Stream radio
  • Enjoy podcasts, audiobooks and videos
  • Discover more music with personalized playlists

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.


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 http://repository.spotify.com 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


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

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys D2C19886
echo deb http://repository.spotify.com 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


i have just installed Spotify on my machine sucessfully.

# 1. Add the Spotify repository signing keys to be able to verify downloaded packages
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 931FF8E79F0876134EDDBDCCA87FF9DF48BF1C90

# 2. Add the Spotify repository
echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list

# 3. Update list of available packages
sudo apt-get update

# 4. Install Spotify
sudo apt-get install spotify-client

Spotify official Documentation here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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