×


Install Spotify on Ubuntu 20.04 - Step by Step process to do it ?

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

This article covers the different methods of installation of Spotify on the Ubuntu 20.04 system. 

Spotify is a Popular music streaming application used globally and users can use any of the methods discussed above for its installation. 

The uninstallation process is also quite easy and we covered it for the ease of our readers. 

Users can also update Spotify with each newly released version.


Where is Spotify installed Linux?

If you followed the instructions on https://www.spotify.com/download/linux/ and installed from Ubuntu Software or snap, it should be located at /snap/bin/spotify . 

If you installed the debian package, it should be located at /usr/bin/spotify .


To update Spotify on Ubuntu:

1. Update list of available packages:

$ sudo apt-get update.

2. Install Spotify:

$ sudo apt-get install spotify-client.


To uninstall Spotify on Linux:

1. Quit Spotify.

2. Uninstall. sudo apt-get remove spotify-client.

3. Remove old config and cache.

cd $HOME/.config. rm -r spotify. cd $HOME/.cache. rm -r spotify.

4. Reinstall by following instructions on https://www.spotify.com/download/linux. 


To Install via command line on Ubuntu:

If you don't have access or don't want to use Ubuntu Software, it is possible to install Spotify from the command line with snap. 

Run the following command in your terminal:

$ snap install spotify