
How to Install Spotify on Ubuntu 22.04
Spotify is an audio streaming service that lets you discover, listen and share millions of songs, videos, podcasts, and other content from artists worldwide. It also allows you to create a playlist of songs that you like and share them with others. You can have the Spotify app on your computers, mobile phones, and tablets that are running Windows, macOS, Linux, Android, and iOS. It is also available for some game consoles, TVs, cars, and smartwatches.
This post describes how to install Spotify on Ubuntu 22.04 LTS. We will describe the installation process through the below methods:
Through Spotify Repository
Through snap
Installing Spotify through Spotify Repository
Complete the below steps in order to install Spotify on your Ubuntu machine through the Spotify Repository:
1. Run the below command to update the package repository index:
$ sudo apt update
Then provide your password to run the update command.
2. Once the update is completed, run the below command to add the key for the Spotify repository in your APT keyring.
$ curl -sS https://download.spotify.com/debian/pubkey_5E3C45D7B312C643.gpg | sudo apt-key add -
3. Then run the below command to add the Spotify repository to your system’s list of configured APT data sources:
$ echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
4. After you have added the Spotify repository, run the “apt update” command:
$ sudo apt update
5. Now you can install Spotify on your system using the below command:
$ sudo apt install spotify-client
It will ask for your confirmation to install Spotify. Press y and Enter to install Spotify.
6. Run the below command once you’re done to ensure Spotify is installed:
$ Spotify --version
This should output the Spotify version installed on your system.
Installing Spotify through Snap
Complete the below steps in order to install Spotify on your Ubuntu machine through the snap package:
1. Run the below command to update the package repository index:
$ sudo apt update
Then provide your password to run the update command.
2. Once the update is completed, install snapd:
$ sudo apt install snapd
3. After you have installed snapd, run the below command to install Spotify:
$ sudo snap install spotify
This will install Spotify on your Ubuntu machine.
4. Run the below command once you’re done to ensure Spotify is installed:
$ Spotify --version
This should output the Spotify version installed on your system.
Launch Spotify
You can launch Spotify from the application launcher. Press the super key and type Spotify. From the search results, select the Spotify icon to launch it.
Now you can sign in to your Spotify account or create a new account by clicking the SIGN UP button at the bottom.
Uninstall Spotify
If for any reason you want to uninstall Spotify, you can do so using the method described below:
If you have installed Spotify from the Spotify repository using the apt command, you can uninstall it as follows:
$ sudo apt remove spotify-client
If you have installed Spotify from the snap, you can uninstall it as follows:
$ sudo snap remove spotify
In this post, you have learned how to install Spotify on Ubuntu 22.04 LTS through two different methods. You have also learned how to remove Spotify from Ubuntu in case you no longer need it in your system.