How to Install Spotify on Ubuntu 24.04
Learn how to install Spotify on Ubuntu 24.04 LTS using the official Snap package or Spotify APT repository. Configure audio playback and desktop launcher.

6 min read
Learn how to install Spotify on Ubuntu 24.04 LTS using the official Snap package or Spotify APT repository. Configure audio playback and desktop launcher.
- Prerequisites and Supported Releases
- Step 1: Updating System Packages and Verifying Audio Subsystem
- Step 2: Method 1: Installing Spotify via Official Snap (Recommended)
Spotify is the global leader in digital music streaming, granting subscribers and free listeners access to an extensive catalog of over one hundred million songs, audiobooks, and podcasts. Engineered as a native 64-bit desktop application for Linux using Chromium Embedded Framework (CEF), the Spotify desktop client integrates smoothly with Ubuntu's media playback controls, notification daemons, keyboard multimedia hotkeys, and system tray docks.
Unlike relying on browser-based web players that consume excessive browser memory and lack offline track storage, running the dedicated desktop client on Ubuntu delivers high-bitrate Ogg Vorbis streaming, local MP3 library indexing, and hardware media key integration. Learning how to install spotify on ubuntu 24.04 gives music lovers and productivity professionals an efficient, high-performance audio client on Linux.
In this step-by-step tutorial, we demonstrate how to install Spotify on Ubuntu 24.04 LTS (Noble Numbat). We cover two primary deployment workflows: the recommended automated Snap package from Canonical's Snap Store, and Spotify's official APT package repository using modern GPG signing keyrings. Furthermore, we cover desktop application launchers, PipeWire audio configuration, and clean removal procedures.
Step-by-step tutorial on installing Spotify on Ubuntu 24.04 LTS, contrasting Canonical's official Snap package deployment with Spotify's official APT Debian package repository.
Prerequisites and Supported Releases
This guide is thoroughly verified on Ubuntu 24.04 LTS (Noble Numbat). The instructions apply cleanly to cloud instances (AWS EC2, Google Compute Engine, DigitalOcean, Hetzner), bare-metal servers, and local virtual machines.
Before proceeding, ensure you have the following requirements satisfied:
- A desktop or laptop workstation running
Ubuntu 24.04 LTSwith a graphical desktop environment (GNOME, KDE Plasma, or XFCE). - A standard user account configured with administrative
sudoprivileges. - An active internet connection to download music streaming packages and album artwork.
- A functioning audio output device (speakers or headphones) managed by PipeWire or PulseAudio.
Step 1: Updating System Packages and Verifying Audio Subsystem
Before downloading Spotify, refresh your local APT repository index and upgrade existing system packages to avoid package lock conflicts.
Ubuntu 24.04 utilizes the PipeWire audio server to route sound streams to your output devices. Verify that audio playback is operational by playing a test chime or checking sound settings.
Install standard download utilities including curl and gpg.
# Update APT package repositories
sudo apt update && sudo apt upgrade -y
# Install prerequisite tools
sudo apt install -y curl gpg apt-transport-https
Step 2: Method 1: Installing Spotify via Official Snap (Recommended)
The most straightforward, maintenance-free method to install Spotify on Ubuntu 24.04 is using the official Snap package maintained directly by Spotify.
Snap packages bundle all necessary multimedia codecs and Chromium runtime libraries in a secure, sandboxed container that updates automatically in the background without affecting system packages.
Install Spotify by executing the snap install spotify command.
Verify the installation status and installed version.
# Install Spotify via Snap
sudo snap install spotify
# Verify installed Snap package
snap list spotify
Step 3: Method 2: Installing Spotify via Official APT Debian Repository
If your workstation disables the Snap daemon or you prefer traditional Debian package management, you can install Spotify directly from Spotify's official APT repository.
First, download and import Spotify's public GPG signing key into the system keyrings directory at /etc/apt/keyrings/spotify.gpg.
Register the official Spotify repository entry in /etc/apt/sources.list.d/spotify.list.
Update your local package lists and install the spotify-client package using APT.
# Create keyrings directory
sudo mkdir -p /etc/apt/keyrings
# Download and dearmor Spotify GPG key
curl -fsSL https://download.spotify.com/debian/pubkey_6224F9941A8AA6D1.gpg | sudo gpg --dearmor -o /etc/apt/keyrings/spotify.gpg
# Register Spotify repository
echo "deb [signed-by=/etc/apt/keyrings/spotify.gpg] http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
# Update repository index and install Spotify client
sudo apt update
sudo apt install -y spotify-client
Step 4: Launching Spotify on Ubuntu 24.04
Once installation finishes, launch Spotify from your graphical desktop environment or directly from your terminal session.
In the GNOME desktop environment, press the Super (Windows) key or click Show Apps in the dock.
Type Spotify into the application search bar and click the Spotify logo.
Alternatively, type spotify in your terminal to start the client in the background.
# Launch Spotify from terminal in background
spotify &
# Verify running Spotify process
pgrep -l spotify
Step 5: Signing In and Configuring Audio Streaming Quality
When Spotify launches, enter your email address and password, or use Google, Facebook, or Apple single sign-on authentication.
Once logged in, optimize your audio settings: click your profile avatar in the upper right corner and select Settings.
Under Audio Quality, select Very High (320 kbps streaming for Spotify Premium users) or Automatic.
Enable Normalize volume to ensure consistent sound levels across diverse music genres.
Path in Spotify: Profile Avatar -> Settings
Streaming Quality: Very High (320 kbps)
Volume Normalization: Enabled
Autoplay Similar Songs: Enabled
Hardware Acceleration: Enabled
Step 6: Enabling Local Audio Files and MP3 Library Indexing
Spotify for Linux can index your personal offline music collection (MP3, M4A, and FLAC files) stored on your local hard drive alongside cloud streaming tracks.
In Spotify Settings, scroll down to the Local Files section.
Toggle Show Local Files to the ON position.
Click Add a source and select your local music directory (such as ~/Music). Your personal tracks will appear under the 'Local Files' tab in the left sidebar.
# Verify local Music directory exists
ls -la ~/Music
Step 7: Configuring Multimedia Keys and GNOME Media Controls
Ubuntu 24.04 supports MPRIS (Media Player Remote Interfacing Specification), allowing Spotify to integrate directly with your GNOME desktop notification drawer and keyboard multimedia keys.
You can control Spotify playback (Play, Pause, Next, Previous) directly using your keyboard's hardware media buttons.
Additionally, the top panel sound menu displays the currently playing track title, artist name, and album artwork with pause and skip controls.
# Optional: Test MPRIS media control via playerctl utility
sudo apt install -y playerctl
playerctl --player=spotify play-pause
Step 8: Updating and Uninstalling Spotify
Managing updates and cleanly uninstalling Spotify depends on which installation method you chose in Step 2 or Step 3.
If installed via Snap, updates are applied automatically in the background; run sudo snap refresh spotify to check manually, or sudo snap remove spotify to uninstall.
If installed via APT, update Spotify alongside standard system packages with sudo apt update && sudo apt upgrade, or remove it with sudo apt purge spotify-client.
# To remove Spotify installed via Snap:
sudo snap remove spotify
# To remove Spotify installed via APT:
sudo apt purge spotify-client
sudo rm -f /etc/apt/sources.list.d/spotify.list /etc/apt/keyrings/spotify.gpg
sudo apt autoremove -y
Troubleshooting and Common Errors
When configuring Ubuntu servers, unexpected permission errors, network timeouts, or lock contention can occur. Review these common issues and verified resolutions:
Spotify displays a blank black window or crashes on startup with GPU errors
Resolution: Launch Spotify with software rendering disabled or hardware acceleration disabled: spotify --disable-gpu. If using Wayland, try launching with X11 backend: spotify --ozone-platform=x11.
Audio playback stutters or produces no sound on Ubuntu 24.04
Resolution: Restart the user PipeWire audio daemon: systemctl --user restart pipewire pipewire-pulse. Open Ubuntu Sound Settings and confirm your desired output device is selected and unmuted.
Local files do not show up or cannot be played
Resolution: Ensure your music files are encoded in supported formats (MP3 or AAC). If using the Snap package, grant removable storage permissions: sudo snap connect spotify:removable-media.
Security Best Practices and Hardening
Always obtain Spotify through Canonical's verified Snap Store or Spotify's official repository; never download unverified third-party deb packages or tarballs.
Never execute the Spotify client with root or sudo privileges, as it runs third-party Electron and web scripts under your desktop user session.
Enable Two-Factor Authentication (2FA) on your Spotify account to prevent unauthorized account hijacking and playlist manipulation.
Keep Ubuntu package repositories updated to ensure underlying OpenSSL, ALSA, and PipeWire security patches are applied.
Related Ubuntu Tutorials and Documentation
Deepen your Linux system administration skills with our related production-tested guides:
Authoritative References and Official Documentation

The Linux Command Line, 2nd Edition: A Complete Introduction
Frequently Asked Questions
Quick answers to common questions and configurations
~/snap/spotify/common/.cache/spotify/Data/. For the APT installation, delete ~/.cache/spotify/Data/.Editorial Disclosure: Website Vidya is supported by our readers. When you purchase hosting, tools, or software through our verified partner links, we may earn an affiliate commission at no extra cost to you. We only recommend solutions we trust and rigorously verify.
Rajesh Ray
I’m Rajesh Rai, a full-stack developer, Linux administrator, and technology enthusiast passionate about making complex technology easier to understand and use.
Most Read Guides
TrendingUbuntu Server Not Booting? 10 Simple Steps to Fix It Fast
How to Create a 3D Button in HTML and CSS: Easy Steps
How to Install Python and Pip on Ubuntu 24.04 LTS
How to Install Nginx on Ubuntu 24.04
How to Install Python on Ubuntu 24.04 LTS
Related Technical Guides
Tested runbooks, server administration walkthroughs, and troubleshooting guides


Join the Conversation & Perspective
Have thoughts, counterpoints, or reflections on this story? Engage directly with fellow readers and editorial contributors.
No comments on this guide yet. Be the first to share your thoughts or ask a question!