Objective
The following Spotify setup procedure outlines installation steps as provided by spotify.com. Nonetheless, may you encounter some difficulties along the way of the Spotify installation on Debian Stretch, read the appendix below to resolve them.
Requirements
Privileged access to your Debian Stretch system is required.
Difficulty
EASY
Conventions
- # – requires given linux commands to be executed with root privileges either directly as a root user or by use of
sudo
command - $ – requires given linux commands to be executed as a regular non-privileged user
Instructions
Include Spotify’s repository
First, we need to include Spotify’s repository signing key. Execute the below command and import non-expired key. Most likely your numeric selection will be 1
as shown below:
# gpg --keyserver hkp://keyserver.ubuntu.com --search-key 'Spotify Public Repository Signing Key' gpg: data source: http://91.189.89.49:11371 (1) Spotify Public Repository Signing Key4096 bit RSA key EFDC8610341D9410, created: 2017-07-25, expires: 2018-07-25 (2) Spotify Public Repository Signing Key 4096 bit RSA key 13B00F1FD2C19886, created: 2015-05-28, expires: 2017-11-22 (expired) (3) Spotify Public Repository Signing Key 2048 bit RSA key 082CCEDF94558F59, created: 2012-06-25, expires: 2015-06-25 (expired) (4) Spotify Public Repository Signing Key 1024 bit DSA key 4F9946354E9CFF4E, created: 2010-06-23, expires: 2012-06-22 (expired) Keys 1-4 of 4 for "Spotify Public Repository Signing Key". Enter number(s), N)ext, or Q)uit > 1 gpg: /root/.gnupg/trustdb.gpg: trustdb created gpg: key EFDC8610341D9410: public key "Spotify Public Repository Signing Key " imported gpg: Total number processed: 1 gpg: imported: 1
To confirm, hence list all imported keys run:
# gpg --list-keys /root/.gnupg/pubring.kbx ------------------------ pub rsa4096 2017-07-25 [SC] [expires: 2018-07-25] 0DF731E45CE24F27EEEB1450EFDC8610341D9410 uid [ unknown] Spotify Public Repository Signing Key
Add Spotify’s repository to local sources and run apt-get update
:
# echo deb http://repository.spotify.com stable non-free > /etc/apt/sources.list.d/spotify.list # apt-get update
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. 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. Install dirmngr
package.
# apt install dirmngr
ERROR:
gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file or directory gpg: connecting dirmngr at '/tmp/tmp.t1Mi4lXT6P/S.dirmngr' failed: No such file or directory gpg: keyserver receive failed: No dirmngr
spotify-client : Depends: libssl1.0.0 but it is not installable
Debian Stretch contains higher version of libssl
. Download and install libssl1.0.0
from Debian Jessie repository:
$ wget http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u7_amd64.deb # dpkg -i libssl1.0.0_1.0.1t-1+deb8u7_amd64.deb
ERROR:
The following packages have unmet dependencies: spotify-client : Depends: libssl1.0.0 but it is not installable