{"id":46053,"date":"2024-04-02T15:05:10","date_gmt":"2024-04-02T15:05:10","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=46053"},"modified":"2025-01-03T01:52:13","modified_gmt":"2025-01-03T01:52:13","slug":"install-spotify-ubuntu-24-04","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2024\/04\/install-spotify-ubuntu-24-04\/","title":{"rendered":"How to Install Spotify Client in Ubuntu 24.04"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/spotify-logo.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-46054\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/spotify-logo-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/spotify-logo-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/spotify-logo-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/spotify-logo-700x700.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/spotify-logo-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/spotify-logo.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>This tutorial shows how to install the popular Spotify music app in Ubuntu 24.04, Ubuntu 24.10 though Snap, Deb, or Flatpak packages.<\/p>\n<p>Spotify supports for Linux officially through Snap package which runs in sandbox environment, and Deb package that&#8217;s native in Debian and Ubuntu.<\/p>\n<p>For choice, there&#8217;s also a community maintained Flatpak package, which also runs in sandbox environment. All of them is available for <b>only x86_64 (Intel\/AMD CPUs)<\/b> platform so far.<\/p>\n<p>Spotify for Linux packages:<\/p>\n<ul>\n<li><b>Snap package<\/b>, runs in sandbox and receives updates automatically.<\/li>\n<li><b>Deb package<\/b>, the classic package format runs natively in Debian and Ubuntu.<\/li>\n<li><b>Flatpak package<\/b>, unofficial community maintained package, runs in sandbox and works in most Linux desktop.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/spotify-darkmode.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-46057\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/spotify-darkmode-700x487.webp\" alt=\"\" width=\"610\" height=\"424\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/spotify-darkmode-700x487.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/spotify-darkmode-300x209.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/spotify-darkmode-768x534.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/spotify-darkmode.webp 1100w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><br \/>\n<!--more--><\/p>\n<h3>Option 1: Install Spotify in Ubuntu via Snap package<\/h3>\n<p>Snap is the easiest way to get the most recent app package installed in Ubuntu, since it&#8217;s officially supported by Canonical, the company behind Ubuntu. And, Spotify Snap can be installed in all current Ubuntu releases!<\/p>\n<p>Simply launch <b>App Center<\/b> (or <b>Ubuntu Software<\/b> for 22.04\/20.04), then search and install <a href=\"https:\/\/snapcraft.io\/spotify\" target=\"_blank\" rel=\"noopener\">Spotify snap<\/a> package:<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/spotify-snapstore.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-46055\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/spotify-snapstore-700x408.webp\" alt=\"\" width=\"610\" height=\"356\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/spotify-snapstore-700x408.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/spotify-snapstore-300x175.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/spotify-snapstore-768x447.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/spotify-snapstore.webp 1121w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>For choice, user can press <code>Ctrl+Alt+T<\/code> on keyboard to open terminal and run command below instead to install the package:<\/p>\n<pre>snap install spotify<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/snap-spotify.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-46056\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/snap-spotify-700x384.webp\" alt=\"\" width=\"610\" height=\"335\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/snap-spotify-700x384.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/snap-spotify-300x165.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/snap-spotify-768x422.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/snap-spotify.webp 796w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>The snap package installs updates automatically. If you want manually check updates for it, then use command:<\/p>\n<pre>snap refresh spotify<\/pre>\n<h3>Option 2: Install Spotify Deb package<\/h3>\n<p>For those who hate running app in sandbox environment, Spotify also provides an official apt repository contains <code>.deb<\/code> package for Debian\/Ubuntu users.<\/p>\n<p>There&#8217;s an official <a href=\"https:\/\/www.spotify.com\/de-en\/download\/linux\/\" target=\"_blank\" rel=\"noopener\">setup guide<\/a> which is however OUTDATED at the moment of writing due to Debian\/Ubuntu policy change.<\/p>\n<h4>Install GPG Key<\/h4>\n<p>To make your system trust the packages from the Spotify repository, you have to first download and install its GPG key file.<\/p>\n<p>First, press <code>Ctrl+Alt+T<\/code> on keyboard to open up a terminal window. When it opens, paste the command below into terminal and hit run:<\/p>\n<pre>wget -qO - https:\/\/download.spotify.com\/debian\/pubkey_C85668DF69375001.gpg | gpg --dearmor | sudo tee \/etc\/apt\/keyrings\/spotify.gpg<\/pre>\n<p>This command will first use <code>wget<\/code> tool to download the gpg key file, dearmor it so unreadable (see the screenshot below), and finally install it to <code>\/etc\/apt\/keyrings<\/code> directory.<\/p>\n<p>After that, you may run <code>ls \/etc\/apt\/keyrings<\/code> and verify if there&#8217;s the <code>spotify.gpg<\/code> file listed in that directory.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/spotify-gpgkey.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-47902\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/spotify-gpgkey-700x484.webp\" alt=\"\" width=\"610\" height=\"422\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/spotify-gpgkey-700x484.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/spotify-gpgkey-300x208.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/spotify-gpgkey-768x531.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/spotify-gpgkey.webp 834w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<h4>Add Spotify repository<\/h4>\n<p>After setup the key, then run command to create &amp; edit the sources file:<\/p>\n<pre>sudo nano \/etc\/apt\/sources.list.d\/spotify.sources<\/pre>\n<p><i>Here I use <code>nano<\/code> command line text editor that works in most desktops. You can replace it with <code>gnome-text-editor<\/code> for default GNOME Desktop, or <code>gedit<\/code> for Ubuntu 22.04\/20.04 with GNOME, <code>mousepad<\/code> for XFCE, or <code>pluma<\/code> for MATE Desktop.<\/i><\/p>\n<p>When file opens, paste follow lines, then press Ctrl+S to save, Ctrl+X to exit.<\/p>\n<pre>Types: deb\r\nURIs: http:\/\/repository.spotify.com\r\nSuites: stable\r\nComponents: non-free\r\nSigned-By: \/etc\/apt\/keyrings\/spotify.gpg<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/nano-spotify-sources.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-46060\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/nano-spotify-sources-700x497.webp\" alt=\"\" width=\"610\" height=\"433\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/nano-spotify-sources-700x497.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/nano-spotify-sources-300x213.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/nano-spotify-sources-768x545.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/nano-spotify-sources.webp 981w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<h4>Refresh &amp; install Spotify Deb package<\/h4>\n<p>Now, refresh your system package cache by running command:<\/p>\n<pre>sudo apt update<\/pre>\n<p>In the terminal output, it should include a line says something &#8220;<i>Get: x http:\/\/repository.spotify.com table &#8230;<\/i>&#8221;<\/p>\n<p><b>NOTE: It seems Spotify changes the GPG key regularly! If you got NO_PUBKEY error\/warning in terminal output, then re-run the <code>wget<\/code> command in step of &#8220;Install GPG Key&#8221; and replace the key ID (C85668DF69375001 in the case), and refresh (sudo apt update).<\/b><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/spotify-nopubkey.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-47904\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/spotify-nopubkey-700x447.webp\" alt=\"\" width=\"610\" height=\"390\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/spotify-nopubkey-700x447.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/spotify-nopubkey-300x191.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/spotify-nopubkey-768x490.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/spotify-nopubkey.webp 986w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>Finally, install the <code>.deb<\/code> package by apt command line package manager:<\/p>\n<pre>sudo apt install spotify-client<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/apt-spotify-client.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-46061\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/apt-spotify-client-700x489.webp\" alt=\"\" width=\"610\" height=\"426\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/apt-spotify-client-700x489.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/apt-spotify-client-300x210.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/apt-spotify-client-768x537.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/apt-spotify-client.webp 866w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>To check update for the package, either use <b>Software Updater<\/b> or re-run the last command again and again.<\/p>\n<h3>Option 3: Install Spotify via Flatpak package<\/h3>\n<p>Linux Mint users may prefer the Flatpak package, since Snap is blocked out-of-the-box and the Flatpak package can be installed directly from Software Manager app.<\/p>\n<p>Ubuntu users can install the <a href=\"https:\/\/dl.flathub.org\/repo\/appstream\/com.spotify.Client.flatpakref\" target=\"_blank\" rel=\"noopener\">Spotify Flatpak<\/a> package by running the 2 commands below one by one:<\/p>\n<ul>\n<li>First, open terminal (Ctrl+Alt+T) and run command to install the Flatpak daemon:\n<pre>sudo apt install flatpak<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/apt-flatpak-noble.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-45732\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/apt-flatpak-noble-700x501.webp\" alt=\"\" width=\"610\" height=\"437\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/apt-flatpak-noble-700x501.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/apt-flatpak-noble-300x215.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/apt-flatpak-noble-768x550.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/apt-flatpak-noble.webp 786w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/li>\n<li>Then, install the music app as Flatpak package by using command:\n<pre>flatpak install https:\/\/dl.flathub.org\/repo\/appstream\/com.spotify.Client.flatpakref<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/flatpak-spotify.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-46062\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/flatpak-spotify-700x574.webp\" alt=\"\" width=\"610\" height=\"500\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/flatpak-spotify-700x574.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/flatpak-spotify-300x246.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/flatpak-spotify-768x630.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/flatpak-spotify.webp 866w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/li>\n<\/ul>\n<p>After installation, search for and launch the music app from start menu or &#8216;Show Apps&#8217; screen depends on your desktop environment.<\/p>\n<p>If app icon is not visible, either try log out and back in to apply PATH environment for Flatpak, or run <code>flatpak run com.spotify.Client<\/code> command to start it from command line.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/launch-spotify.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-46063\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/launch-spotify.webp\" alt=\"\" width=\"516\" height=\"288\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/launch-spotify.webp 516w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/launch-spotify-300x167.webp 300w\" sizes=\"auto, (max-width: 516px) 100vw, 516px\" \/><\/a><\/p>\n<p>To check updates for the Spotify Flatpak package, use command:<\/p>\n<pre>flatpak update com.spotify.Client<\/pre>\n<h3>Uninstall Spotify<\/h3>\n<p>Depends on which package you installed, open terminal (Ctrl+Alt+T) and run corresponding command to uninstall the app.<\/p>\n<p>For the Snap package, use either App Center (or Ubuntu Software), or run command to uninstall:<\/p>\n<pre>snap remove --purge spotify<\/pre>\n<p>For the Deb package, uninstall it by running command:<\/p>\n<pre>sudo apt remove --autoremove spotify-client<\/pre>\n<p>Also remove the Spotify source repository by deleting both sources and key files:<\/p>\n<pre>sudo rm \/etc\/apt\/keyrings\/spotify.gpg \/etc\/apt\/sources.list.d\/spotify.sources<\/pre>\n<p>Finally, run <code>sudo apt update<\/code> to refresh system package cache.<\/p>\n<p>For the Flatpak package, use command to uninstall:<\/p>\n<pre>flatpak uninstall --delete-data com.spotify.Client<\/pre>\n<p>And run <code>flatpak uninstall --unused<\/code> to remove useless run-time libraries that can free up some disk spaces.<\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial shows how to install the popular Spotify music app in Ubuntu 24.04, Ubuntu 24.10 though Snap, Deb, or Flatpak packages. Spotify supports for Linux officially through Snap package which runs in sandbox environment, and Deb package that&#8217;s native in Debian and Ubuntu. For choice, there&#8217;s also a community maintained Flatpak package, which also [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":46054,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[277,601,261],"class_list":["post-46053","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-audio","tag-cloud-music","tag-spotify"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/46053","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=46053"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/46053\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/46054"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=46053"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=46053"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=46053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}