How to Install Spotify on Ubuntu & Linux Mint

You’ll learn two ways of installing Spotify on Ubuntu and other Ubuntu based Linux distributions.
Warp Terminal

Spotify is the most popular streaming music service. While you can listen to it in a web browser, you can also install a desktop client of Spotify on Linux.

Spotify desktop player is better than the web player because you don’t face the risk of accidentally closing the browser and losing Spotify. With the 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 gives you some additional features, such as listening to local music in Spotify, using equalizers, and more.

In this quick post, you'll see two methods to install Spotify on Ubuntu:

  • Using Snap package (Easy GUI and CLI method)
  • Using the deb package from Spotify repository

You can use either of the two.

Method 1: Install Spotify in Ubuntu using Snap Package

Spotify has a Snap package, which means now Spotify can be easily installed directly from the Software Center.

The snap application of Spotify in Ubuntu Software Center. Use the Install button.
Spotify in Ubuntu 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
Install Spotify Snap application via command line
Install Spotify as Snap

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 a media control option in the sound menu, but it does support the media keys on your system. Which means you can control it using the play/pause, forward and backward media keys.

🚧
For some users, the app won’t open for the first time. If you face such issue, uninstall Spotify and install it again. It will work properly.
Spotify desktop application interface. Installed on Ubuntu
Spotify Interface

Remove Spotify Snap

To uninstall Spotify installed as snap, you can use either the software center or terminal. Open a terminal and enter:

sudo snap remove spotify
Remove the Spotify Snap application via command line
Remove Spotify Snap application

Method 2: Install Spotify on Ubuntu, Linux Mint & Debian using the official deb package

This method works with other Ubuntu and Debian based distros as well.

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

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

Make sure that you have curl installed on your Ubuntu system:

sudo apt install curl

Now, you need to configure the repository. To do that, open a terminal and enter:

curl -sS https://download.spotify.com/debian/pubkey_7A3A762FAFD4A51F.gpg | sudo gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/spotify.gpg

The above command will add the Spotify key to your system. This way, your Linux system will trust the software coming from the Spotify repositories.

Now add the Spotify repository to your Sources list.

echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list

Perfect. Update the package cache and install Spotify:

sudo apt update
sudo apt install spotify-client

Here's a replay of all the above commands:

Install teh Spotify app after configuring the official spotify repository
Installing Spotify via the deb package

That’s all you need to do. Next, you can start Spotify by searching for it in Ubuntu Activities overview.

It integrates very well in the Ubuntu environment. Here is what Spotify interface looks like on Ubuntu:

Spotify desktop client working smoothly in Ubuntu desktop
Spotify in Ubuntu

Troubleshooting: Spotify DEB version not opening in Ubuntu

If the deb version of Spotify is crashing upon opening, try launching it from the terminal like this:

spotify --no-zygote

If it works, you can change the spotify.desktop file so that you can launch it from the menu.

Open the file for editing in the terminal:

sudo nano /usr/share/applications/spotify.desktop

Now change the EXEC value from spotify %U to spotify %U --no-zygote.

Edit the desktop entry file of spotify to add commands to avoid crash
Edit Spotify desktop entry file

After this, you can open Spotify without any crash from the system menu and icon.

Remove Spotify deb package

To remove Spotify, first open a terminal and run:

sudo apt remove spotify-client

Wrapping Up

If it interests you, use Spicetify and use some external extensions and themes on your Spotify app.

Install and Use Spicetify on Ubuntu
The open source tool that lets you use extensions and themes in the Spotify app on Linux.

If Spotify is not available in your country, you can use VPN services to access restricted content in your country, including Spotify, Hulu, Britbox.

Best VPN Services for Privacy Minded Linux Users
No matter whether you use Linux or Windows, ISPs spy all the time. Also, it is often your Internet Service Provider who enforces annoying restrictions, and throttles speed while tracking your online activity. I’m not sure what might be the cause of a privacy breach for you – but when

I hope this quick post helped you to install the Spotify desktop client on Ubuntu and other Linux distributions.

I think this could be counted as one of the first few things to do after installing Ubuntu.

Things to do After Installing Ubuntu 22.04
Here is a list of simple tweaks and things to do after installing Ubuntu 22.04, to get a smoother and better experience. I presume that you are absolutely new to Ubuntu while sharing these tips. If you are an existing Ubuntu user, some tips may sound too elementary to

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

Install Soundcloud Desktop App In Linux
SoundCloud fans have a good news. Now you can install SoundCloud in Linux. I know that you could already install SoundCloud in Ubuntu using Google Chrome but that’s not the kind of experience you expect from a proper desktop application. In fact, you can argue the use of a

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

About the author
Abhishek Prakash

Abhishek Prakash

Created It's FOSS 11 years ago to share my Linux adventures. Have a Master's degree in Engineering and years of IT industry experience. Huge fan of Agatha Christie detective mysteries 🕵️‍♂️

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

itsfoss happy penguin

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.