Spotify is the biggest music streaming service in the world with hundreds of millions of users around the world using it daily — and it’s available for Linux distros including Ubuntu.

The popularity of Spotify means there are lots of folks wondering how to install Spotify on Ubuntu 20.04 LTS and above. So in this guide I walk you through the whole process, step by step.

There are free Spotify apps for Android and iOS, and the Spotify web player caters to those who like want to listen to the service from a web browser.

But it’s the Spotify desktop client for Windows, Mac and Linux that most people prefer to use, and it is this version this guide will show you how to install.

How to Install Spotify in Ubuntu 20.04 LTS

You can install the Spotify for Linux client in Ubuntu and Linux Mint in a number of different ways. The two listed below are the most common (and recommended) methods. Which you choose is up to you and your preferences

Official Spotify Snap App

You can install the official Spotify Snap app on Ubuntu 18.04 LTS and above (as well as on any Linux distro that supports Snap apps) very easily:

This makes installation super simple:

Click to Install Spotify on Ubuntu

If you want to install Spotify from the command line you can run:

sudo snap install spotify

Both methods get you the exact same app.

Add the Spotify Linux Repository

Not a fan of Snap applications? You can add the official Spotify Linux repository to your system’s list of software sources to install the exact same desktop client in a more traditional manner.

Add the official repo to get automatic updates to new Spotify desktop releases automatically, as and when they’re released.

You can add the Spotify repository to your list of software sources in Ubuntu in two different ways: GUI and CLI.

First, you need to open the Software Sources app:

software sources unity

When the window opens select the ‘Other Software’ tab in Software Sources [1]

add-software-sources-ppa-ubuntu

Click ‘Add’ [2] and paste the following the entry field of the box that appears:

deb http://repository.spotify.com stable non-free

Click ‘Add Source’ [3] to confirm the change, then close Software Sources.

You can achieve the same thing using the command line:

sudo add-apt-repository "deb http://repository.spotify.com stable non-free"

Add the Spotify Repository Key

ppa-terminal

With the repo added the next step is to add the repository key. This allows Ubuntu, Linux Mint and other distros to verify that packages installed from this repository are made by who they say they are.

Open a new Terminal window, paste the following command, and hit return/enter:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 931FF8E79F0876134EDDBDCCA87FF9DF48BF1C90 2EBF997C15BDA244B6EBF5D84773BD5E130D1D45

CLI Fan? Run a single command

If you’re comfortable with the command line you can add the Spotify repository and its security key from the CLI by running the following command:

curl -sS https://download.spotify.com/debian/pubkey.gpg | sudo apt-key add - 
echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list

That’s that!

You can now install Spotify on Ubuntu using the Ubuntu Software app (after checking for new software updates first).

Alternatively, you can install the app by running the following command in the Terminal window:

sudo apt install spotify-client

Once installed, launch the Spotify desktop app from your preferred app launcher or app menu, sign in, and enjoy!

How To spotify