How to Install Spotify on Ubuntu & Linux Mint

Brief: You’ll learn two ways to install Spotify on Ubuntu, Linux Mint and other Linux distributions.

Spotify is the most popular streaming music service these days. While you can listen to it via its web interface, you can also install a desktop client of Spotify in Linux.

Spotify desktop player is better than the web player because you don’t face the risk of accidentally closing the browser and lose Spotify. With desktop player, you can also use the media keys on your keyboard to change the tracks or pause/play the songs.

The desktop player also used to give you some additional features such as listening to local music in Spotify, sync local music to Spotify server or sync local music to iPhone, iPod or other mobile devices. I am not sure if it is still the case.

In this quick post, we shall see how to quickly install Spotify in Ubuntu 18.04, 20.04 and other Debian based distributions such as Linux Mint, Elementary OS, Bodhi etc.

Method 1: Install Spotify in Ubuntu using Snap Package

Spotify has released a Snap package recently. Which means now Spotify can be easily installed in any Linux distribution that supports Snap.

Ubuntu 18.04 and 20.04 users can install Spotify directly from the Software Center where the Snap package is available.

Spotify is available as Snap in Ubuntu Software Center
Spotify is available as a Snap app in Software Center

If your system doesn’t have Snap, install it using the command below:

sudo apt-get install snapd

And then you can install Spotify Snap app using this command:

sudo snap install spotify

Once installed, you can find it in the application menu. When you start it for the first time, it will ask you to log in. I found that it was a little unresponsive at the beginning and I had to close it and open it again after trying to log into Spotify with my Facebook account.

The Spotify snap application integrates fine with the Ubuntu desktop system. It doesn’t add media control option in the sound menu but you it does support the media keys on your system. Which means you can control it using the play/pause, forward and backward media keys.

Spotify snap app in Ubuntu 16.04
Spotify desktop interface

Method 2: Install Spotify in Ubuntu, Linux Mint & Debian Using Deb Package

A video version of the installation procedure is on our YouTube channel. Do subscribe to it for more tutorials.

To install the desktop client of Spotify, open a terminal (Ctrl+Alt+T) and use the following commands:

sudo sh -c 'echo "deb http://repository.spotify.com stable non-free" >> /etc/apt/sources.list.d/spotify.list'

This will add the above repository in software sources list. Now make sure that you have curl installed on your Ubuntu system:

sudo apt install curl

With the help of curl, download and add the GPG key of the Spotify repository you added to the sources list. This is mandatory because your system needs to trust this repository.

curl -sS https://download.spotify.com/debian/pubkey.gpg | sudo apt-key add -

Next is simple. Update and install Spotify client.

sudo apt update
sudo apt install spotify-client

That’s all you need to do. Next, you can start Spotify by searching for it Unity Dash (in Ubuntu). It integrates very well in Ubuntu environment. Here is what Spotify interface looks like in Ubuntu:

Installing Spotify in Ubuntu 14.04 and Linux Mint

I hope this quick post helped you to install Spotify desktop client in Ubuntu and other Linux OS. I think this could be counted as one of the first few things to do after installing Ubuntu 18.04.

If you prefer SoundCloud, you can read this tutorial to see how to install SoundCloud in Linux.

How do you find it? Do you use any other service similar to Spotify? Do share your views.

If Spotify is not available in your country, you can use a DNS service such as Unlocator to access restricted contents in your country including Spotify, Hulu, Britbox etc.

Similar Posts

  • Hi,
    I run into a public key issue when following method 2 on raspberry pi4//pi-OS

    The command curl … apt-key add – completes with an OK
    The next command to apt update returns an error
    [email protected]:~ $ sudo apt update
    Hit:1 http://archive.raspberrypi.org/debian buster InRelease
    Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
    Get:3 http://repository.spotify.com stable InRelease [3,316 B]
    Hit:4 https://download.docker.com/linux/raspbian buster InRelease
    Err:3 http://repository.spotify.com stable InRelease
    The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY D1742AD60D811D58
    Reading package lists… Done
    W: GPG error: http://repository.spotify.com stable InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY D1742AD60D811D58
    E: The repository ‘http://repository.spotify.com stable InRelease’ is not signed.
    N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.

    Any suggestion where/how to fix?

  • Hi mr Prakash. I have an old 32-bit machine and all this is made for the 64-bit platform only. As you are very knowledgeable, may I ask politely if you know any solution to this very boring problem? Best regards. Tor Eirik