Spotify is an on-demand music company that gives us access to listen to millions of songs and podcasts for a monthly fee. It has been a revolution in music consumption on the Internet. The right music or podcast is always at your fingertip
You can access it on your phone, your computer, your tablet, and more.
Some of the most prominent features of Spotify are Equalizer, Listening history, Spotify Connect, Search, Listen offline and you can also listen offline. You can visit the official site to learn more about the features.
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 20.04 which is perhaps one of the most popular distributions.
So let’s go ahead and install Spotify on Ubuntu Linux.
Install Spotify on Ubuntu 20.04
There are multiple methods to install Spotify on Ubuntu. You can use Spotify Deb, Flatpack, or Snap package as per your preference. All methods are given below but you should use either.
So let’s get started and see installation methods.
Method 1 – Install Spotify on Ubuntu 20.04 using the DEB package
Spotify is available as DEB Package. So, log in to Ubuntu. Open the terminal add the Spotify repository and then use the apt command to install Spotify on Ubuntu and all Debian-based Linux distributions.
Below are the steps,
1. Open a terminal and first add the GPG key to the repository with the following command.
:~$ sudo apt-key adv – keyserver hkp://keyserver.ubuntu.com:80 – recv-keys 4773BD5E130D1D45
Once you enter your password, the GPG key will be added. This key is important to secure the download through the repository. It also tells the system that packages from that repository are safe.
2. Add the repository in question.
:~$ sudo add-apt-repository "deb http://repository.spotify.com stable non-free"
3. Update the APT cache and install Spotify
:~$ sudo apt update :~$ sudo apt install spotify-client
Method 2 – Also, you can install Spotify using 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 anything to our system.
Flatpack is not installed by default, so first, you have to install it using the command given below.
:~$ sudo apt 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 it with the following command:
:~$ flatpak run com.spotify.Client
But normally this is not necessary and Spotify will be available from the main menu.
Method 3 -Spotify is also available as a snap package
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
The installation will take a while and when it’s done, you can run Spotify from the main menu or with the following command:
Spotify dominates a large part of the online music market. It also caters to Linux users with the development of a native client for Ubuntu and derivatives.
Just go ahead and install Spotify on Ubuntu using one of the methods you like the best or that fits your needs.