Published in


How To Install Spotify On Ubuntu

Jan 31, 2022, Originally published at ・3 min read


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:

#! /bin/bash
sudo apt-get install curl

Run the command given below to import the public GPG key provided by the Spotify official website:

#! /bin/bash
curl -sS | 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:

#! /bin/bash
echo "deb 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:

#! /bin/bash
sudo apt-get update

Then, install Spotify, run the following command:

#! /bin/bash
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.

#! /bin/bash
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.

#! /bin/bash
sudo apt-get install flatpak

And then, with a single command, you can install Spotify.

#! /bin/bash
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:

#! /bin/bash
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.




We are sharing Blogs that are related to 🌍 Web and 📱 Mobile Applications issues and examples of Development. We are share blogs related to Laravel, PHP, CodeIgniter, HTML, CSS, Bootstrap, Javascript, jQuery, MySQL, MongoDB, Node.js, Vue.js, Nuxt.js.

Recommended from Medium

Breaking Bad?

Deploy a secure web to Gcp Kubernertes using Ambassador api gateway and Google-managed SSL…

To attract top talent, companies need to adopt more balanced IP agreements

What (we) Devs Don’t Talk About

Rolling notes on my experiments with Matomo On Premise open source analytics

How to do distributed processing of Landsat data in Python

Don’t let maths scare you off — why coding is very much about language.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Smit Pipaliya

Smit Pipaliya

I am Senior Developer at ServerAvatar Technology.

More from Medium

How to Reset MySQL root password in Ubuntu

How to Install WordPress on Docker (Windows)

Laravel Sail in Windows

Two-factor authentication