

Spotify implements MPRIS interface so commands like these should work:ĭbus-send -print-reply -dest= /org/mpris/MediaPlayer2. To exec dbus-launch -exit-with-session openbox-session You should now be able to run Spotify from your start menu or from command line: spotify Appendix gpg: keyserver receive failed: No dirmngr You are missing dirmngr binary. On minimal systems it might be required to launch the desktop environment or window manager through dbus-launch -exit-with-session (provided by dbus-x11). Install Spotify on Debian Stretch Finally, we are ready to install Spotify client on Debian Stretch using apt-get comamnd: apt-get install spotify-client All done. # The spotify package is currently broken and installs files owned by uid 1000, fix itĭpkg -L spotify-client | sudo xargs chown -no-dereference root:rootĬontrolling playback using MPRIS D-Bus interface Install Spotify sudo apt install spotify-clientĬurl -sSf | gpg -dearmor | sudo tee /etc/apt/keyrings/spotify.gpg > /dev/nullĮcho "deb stable non-free" | sudo tee /etc/apt//spotify.list Step1: Update the APT package repository Step 2: Install Snap (if not installed) Step 3: Install Spotify Step 4: Run the Spotify Step 1: Install curl (if. How to Install Spotify snap on Debian-like. Update list of available packages sudo apt update How to automate the installation of Spotify snap system-wide in Debian-like systems using Ansible module snap. NB: You will need to install dirmngr if not already installed sudo apt install dirmngrĪdd the Spotify repository signing key to be able to verify downloaded packages curl -sS | gpg -dearmor | sudo tee /usr/share/keyrings/repository-spotify-com-keyring.gpg >/dev/nullĪdd the Spotify repository echo deb stable non-free | sudo tee /etc/apt//spotify.list


Using third-party repositories as recommended below is not supported by the Debian project and could break your system now or when you upgrade later. Install Spotify on Debian/Ubuntu Installing Spotify on Debian-based Linux distros is the easiest, thanks to the APT package manager.
