Spotify has become a staple for music lovers everywhere, providing a huge library of songs, podcasts, and playlists. The Spotify desktop application offers features such as personalized playlists, high-quality streaming, and offline listening.
Installing Spotify on Ubuntu 24.04 can enhance your music experience by providing access to a vast library of songs and podcasts. So, Ubuntu users can enjoy the seamless experience of Spotify on their systems.
This article will explain all possible methods for installing Spotify on Ubuntu 24.04.
Table of Content
- How to Install Spotify on Ubuntu 24.04
- Method 1: Installing Spotify via Snap
- Method 2: Installing Spotify via Flatpak
- Method 3: Installing Spotify via APT
- Method 4: Installing Spotify via GUI
- How to Uninstall Spotify on Ubuntu 24.04
- Conclusion
How to Install Spotify on Ubuntu 24.04
For Ubuntu users, the installation process is straightforward, with options to install via APT, Flatpak, or Snap package managers, ensuring that you can easily integrate Spotify into your Linux environment.
Here’s a guide for installing Spotify on Ubuntu 24.04 using various methods.
Method 1: Installing Spotify via Snap
Snap is a package management system that simplifies installation processes and provides automatic updates. To install Spotify on Ubuntu using Snap, follow the below steps:
1. Install Snap
If Snap is not already installed on the system, users can install it through the below command:
sudo apt install snapd

2. Install Spotify
After the Snap is successfully installed, users can install Spotify:
sudo snap install spotify

3. Launch Spotify:
Once the installation is accomplished, users can open it from the Dash or by typing spotify as below:
spotify

Method 2: Installing Spotify via Flatpak
Flatpak is another package management tool that offers sandboxed applications. To install Spotify on Ubuntu using Flatpak, follow the below steps:
1. Install Flatpak
Before you can use Flatpak, you need to install it:
sudo apt install flatpak

2. Add Flathub Repository
Flathub is the main repository for Flatpak applications:
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Note: Refresh the Flatpak repository via the flatpak remote-update flathub command.
3. Install Spotify
Now, you can install Spotify from Flathub:
sudo flatpak install flathub com.spotify.Client

4. Launch Spotify
Launch Spotify from the Dash or by typing the below command in the terminal:
flatpak run com.spotify.Client

Method 3: Installing Spotify via APT
On Ubuntu, the APT is the go-to procedure for installing software. It’s straightforward and integrates well with the system, ensuring that you receive updates alongside system updates.
To install Spotify on Ubuntu using APT, follow the below steps:
1. Update System Repositories
Ensure your system is up-to-date to avoid any issue during the installation procedure:
sudo apt update
2. Install Necessary Dependencies
Some packages are required before you can install Spotify.
sudo apt install curl libcanberra-gtk-module software-properties-common apt-transport-https

3. Import Spotify’s GPG Key
This step is crucial for security, as it confirms the package’s authenticity:
curl -sS https://download.spotify.com/debian/pubkey_6224F9941A8AA6D1.gpg | sudo gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/spotify.gpg

4. Add Spotify Repository
With the key imported, add Spotify’s repository to your system:
echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list

5. Install Spotify
Update your package list and install Spotify:
sudo apt update && sudo apt install spotify-client

6. Launch Spotify
Launch Spotify from the Dash or by typing spotify in the terminal:
spotify

Method 4: Installing Spotify via GUI
For Ubuntu users, installing Spotify is a straightforward process that can be done using the Graphical User Interface (GUI), which is ideal for those who prefer not to use the command line.
1. Access the Ubuntu Software Center
The Ubuntu Software Center is a convenient tool to find and install applications. You can open it by clicking on “Ubuntu Software Center”:

2. Search for Spotify
Once the Ubuntu Software Center is open, hit the search icon and type “spotify”. The Spotify application appears in the search results:

3. Install Spotify
Now, hit the Install button, and authorize the installation:

4. Launch Spotify
Now, click the Open icon again. Or hit the Spotify icon to launch the application from Applications:

By following these simple steps, you can easily install Spotify on Ubuntu 24.04 using the GUI.
Each method has its advantages, from the ease of updates with APT to the security of sandboxed applications with Flatpak. Choose the one that best fits your needs and enjoy your favorite music on Ubuntu 24.04.
How to Uninstall Spotify on Ubuntu 24.04
To uninstall Spotify from Ubuntu 24.04, you can use the terminal and input specific commands based on how the application was installed.
If Spotify was installed using APT, you can remove it by executing:
sudo apt autoremove --purge spotify-client

In case Spotify was installed via SNAP, the below command:
sudo snap remove spotify

For those who installed Spotify using Flatpak, the removal command is below:
flatpak uninstall --delete-data flathub com.spotify.Client

It’s important to note that these commands will remove the application and its data from your system.
For a graphical method, you can use the Ubuntu Software app to uninstall Spotify by searching for the app and clicking the Uninstall button:

Conclusion
To install Spotify on Ubuntu 24.04, start by updating your system. Then, install the necessary dependencies. Then, import the Spotify repository GPG key and add the repository to the system’s sources list. Update the repository list and install Spotify with sudo apt install spotify-client.
Snaps are generally the most convenient and secure option, as they’re isolated from your system and automatically updated. Flatpaks are also well-isolated and offer automatic updates. APT is less recommended, as it requires manual updates and may not always have the latest version of Spotify.