Spotify is the most popular music streaming service used by millions of free and paid users around the world. It has a library of millions of songs with excellent sound quality. It has applications for desktop and mobile and tablet devices. Although you can enjoy music through the web interface, it is preferable to use a special application or client for the desktop computer, as it offers some additional features, such as listening to local music files and downloading music for offline playback. The Spotify app and desktop client are available for all major devices, such as computers running Windows, Linux, and macOS, as well as Android, Windows, and iOS smartphones and tablets.
In this article, we will show you how to set the Spotify skin on Linux in two different ways. You can make a choice depending on the source from which you want to install it. Both installation methods include the command line.
- Via snap package
- Via Spotify Repository
We have completed the commands and procedures mentioned in this article on the Debian 10 operating system.
Install Spotify Through Snap Package
Spotify can be installed on any Linux distribution through the Snap package. This is the fastest way to install any application on Linux. The Snap package is a standalone application with all the dependencies to run on all major Linux distributions from the same assembly.
To install Spotify through the snap-in, follow these steps:
Step 1: Launch Terminal
Launch the Terminal app. To do this, go to activity Tab in the upper left corner of the desktop. Then in the search bar enter Terminal, When the terminal icon appears, click on it to launch it.
Run the following command in Terminal to switch to the root account:
Step 2: Install the Snap
At this point we will install the snap-in. To do this, run the following command in Terminal:
$ apt install snapd
Step 3: Install Spotify
Next, we will install the Spotify binding application by running the following command in Terminal:
$ snap install spotify
If you want to uninstall Spotify, which was installed using the snap package, run the following command in the terminal:
$ snap remove spotify
Install Spotify from Spotify Repository
In this method, we will install Spotify using the repository. To do this, follow these steps:
Step 1: Launch Terminal
First open the Terminal by going to activity Tab in the upper left corner of the desktop. Then in the search bar enter Terminal, When the terminal icon appears, click on it to launch it. Then run the command below to switch to the root account:
Step 2: Add a Repository
Now enter the following command to add the Spotify repository to your system. Use the context menu to copy and paste this command into your terminal.
$ echo deb http://repository.spotify.com stable nonfree | sudo tee /etc/apt/sources.list.d/spotify.list
You will see output similar to t below:
Step 3: Update Repository Index
The next step is to update the repository index of your system with a new repository. To do this, run the following command in Terminal:
$ apt-get update
When you execute the update command, you may get this error:
“The following signatures cannot be verified because the public key is not available: NO_PUBKEY XXXXXXXXXXXX.”
This error occurs when installing packages from repositories that are not trusted.
In this case, we will need to add the storage key. This will allow the system to trust packages added from the repository. To add a key, run the following command with the key at the end.
$ apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4773BD5E130D1D45
You will notice that the key identifier is the same as what we received in the above error message.
Now that you are done with adding the key, run the update command again:
$ apt-get update
Now it will be completed successfully.
Step 4: Install Spotify
Now run sq-arrive The command to install Spotify on your system:
$ apt-get install spotify-client
When the system asks g / l option to continue installation, enter Y continue installation. This will take some time depending on the speed of your internet after Spotify is installed on your system.
To remove Spotify from your system, run the following command in your terminal:
$ apt-get remove spotify-client
To come in Y on the g / l and Spotify will be completely removed from your system.
If you also want to delete the repository through which you installed Spotify, run the following command:
$ rm /etc/apt/sources.list.d/spotify.list
Check Spotify Version
Run the command below to check the version number of the installed package and verify that the application is installed on your system.
$ spotify --version
Launch Spotify on Debian
After installation, you can access Spotify from the Debian app search. To do this, click on activity tab in the upper left corner of the desktop, then in the search bar enter Spotify When its icon appears, click on it to launch.
Or just type Spotify on your terminal:
The application opens in the next default view.
Press on AUTHORIZE if you already have a Spotify account, otherwise create a new account using FREE REGISTRATION button.
Thus, these were two methods that you can use to install Spotify on your Debian OS. You can use any of these methods that you find more convenient.
How to install Spotify on Debian 10