How To Install Spotify On Ubuntu
Tags: ubuntu, spotify, tutorial, beginners
Published: 2022-01-31 06:30:12

## Introduction

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 risk accidentally closing the browser and losing Spotify. With a 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 gave you some additional features, such as listening to local music in Spotify, syncing local music to Spotify server, or syncing local music to iPhone, iPod, or other mobile devices. I am not sure if it is still the case.

Spotify is available for Android, iOS, and Windows. A great sign that Linux is also being taken into account. There is a Spotify client for the Linux family and mainly for Ubuntu, perhaps one of the most popular distributions.

So let’s go ahead and install Spotify on Ubuntu.

### Option 1: Install Spotify on Ubuntu using the DEB package
To install Spotify’s latest version from the officially provided deb package by Spotify, first, import the keys using curl.

If curl is not installed, then install it. Run the following command:
```
sudo apt-get install curl
```
Run the command given below to import the public GPG key provided by the Spotify official website:
```
curl -sS https://download.spotify.com/debian/pubkey_0D811D58.gpg | sudo apt-key add -
```
Signature keys are imported successfully.
Once the key is added, add Spotify’s deb package to your Ubuntu system’s sources list by running the following command:
```
echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
```
After adding Spotify’s deb file to your software sources list. Spotify is ready to install.

Now, first, update the package repository, run the following command:
```
sudo apt-get update
```
Then, install Spotify, run the following command:
```
sudo apt-get install spotify-client
```

### Option 2: Install Spotify on Ubuntu Via Snap
Snap is Flatpak’s main rival. It is the creation of Canonical, which is the company behind Ubuntu. Therefore, Spotify as a snap package will guarantee smooth integration with Ubuntu.

By default, snap is installed on Ubuntu, so just run this command to install Spotify snap.
```
sudo snap install spotify
```

### Option 3: Install Spotify on Ubuntu Via Flatpak
You can also install Spotify using the Flatpack. Flatpak is a technology that allows you to package a program with its dependencies and isolate it from the system. Therefore, we can run Spotify with the security that we do not modify our system.

Flatpack is not installed by default, so first, you must install it using the command given below.
```
sudo apt-get install flatpak
```
And then, with a single command, you can install Spotify.
```
sudo flatpak install flathub com.spotify.Client
```
Be aware that the installation will take longer than the previous method, so be patient.

Then, you can run it from the main menu. In case it does not appear, you can run the following command:
```
flatpak run com.spotify.Client
```
But usually, this is not necessary, and Spotify will be available from the main menu.

## Launch Spotify Application
Press the command button to launch applications. Then search for “Spotify” under the search bar. This will show you the Spotify launcher, then click the launcher icon to start the application.

You will see the signup or login page on the Spotify application.

Thank you for reading this blog.