×

Spotify is a famous digital music streaming platform that provides users audio access to all of the latest songs and other old classics. 

With easy access to millions of songs, users can enjoy all available freemium features including auto-music videos and advertisements. 

There are some advanced features as well in Spotify that can be enjoyed by the people once they buy its subscription. 

Spotify is supported on the platforms of Linux as well. 

Here at LinuxAPT, as part of our Server Management Services, we regularly help our Customers to perform Software Installation tasks on Linux Systems.

In this context, we shall look into the method of installation of Spotify on the Ubuntu 20.04 system.


How to install Spotify on Ubuntu ?

To begin, Ensure that you log into your Server as the root user with with all sudo privileges.

The continue with the installation process.


The installation of Spotify is relatively a straightforward process. Start by opening up the terminal window. 

You can either use Ctl+Alt+T shortcut or directly go to the Applications Terminal of the system.


1. How to install Spotify using Snap ?

Spotify snap package is managed by Microsoft services and has a complete set of dependencies needed to run it. The package of Spotify is famous for its security and readily available updates.

Before proceeding with this method, make sure you have already installed the Snap package within your system. 

To install Spotify using the Snap package, type the following command in the command-line:

$ sudo snap install spotify 

Now, press the <enter> key. The system will ask for the password of the logged-in user. Provide the password of sudo user in the available space and hit enter.


2. How to install Spotify using APT ?

The second method used for the installation of Spotify is also a command-line method. We will use the apt repository to download the software. 

To use this method, follow the steps given below.

i. Import the GCP key

Here, import the GPG key.

To do so, type the following command in the terminal window:

$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 4773BD5E130D1D45

The GCP key will begin to import in your Ubuntu system. 


ii. Add Spotify repository

Step two calls for adding the required repository in your Ubuntu system. Type the following in the terminal window:

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

Here, if the system asks for your password, provide one then press the <enter> key. The required repository will be added.


iii. Update the repository and install Spotify

Once you have added the Spotify repository, update the apt package using the following command:

$ sudo apt update

As soon as you press the <enter> key, the updates will begin.

Once the update process is completed, you need to install the Spotify client in your system by using the following command:

$ sudo apt install spotify-client

In this process, the system might ask for the password of the user. Once you provide it, the installation process will begin. Press Y in case if the system prompts for the user's permissions to continue with the process.


How to Access Spotify Application after Installation on Ubuntu ?

Once the installation process is complete, users can easily access the installed application. 

Go to the Applications of your Ubuntu 20.04 system and then search Spotify in the search bar.

The applications will show you Spotify.

Double click on it. Spotify will begin to run.


How to uninstall Spotify from Ubuntu ?

To uninstall Spotify when needed, you can easily use the command outlined below. 

This command will work if you have installed Spotify that is via Snap package. 

As soon as you press enter, the system will ask for the password of the logged-in user:

$ sudo snap remove spotify

This will remove Spotify from the Ubuntu 20.04 system.


[Need urgent assistance to install missing packages on Ubuntu System? We are available to help you. ]


Conclusion