Spotify (Testing) latest on Debian

I’m running Debian Testing as my daily driver. I also enjoy using Spotify for background music when working, and I want this to be the latest release, like my OS. The following shell command are how I installed the latest testing or beta version of Spotify

curl -sS https://download.spotify.com/debian/pubkey_C85668DF69375001.gpg | sudo gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/spotify.gpg

echo "deb http://repository.spotify.com testing non-free" | sudo tee /etc/apt/sources.list.d/spotify.list

sudo apt-get update && sudo apt-get install spotify-client

NB

If you have problems with the “testing” release of Spotify you can sudo apt autoremove spotify-client and then replace “testing” with “stable” in the above repository command, which would then look like this:

echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list

Following this, rerun the install command.

sudo apt-get update && sudo apt-get install spotify-client

I hope this is useful for anyone looking to set up Spotify Testing or Stable on their Debian Desktop.