Note: Possibly outdated
Note: This is more of a personal reference. You should never install/add keys/libs/programs you yourself don't trust or know are safe.
Check https://www.spotify.com/us/download/linux/ for the official scoop.
-
Add the Spotify repository signing key to be able to verify downloaded packages
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys D2C19886
-
Add the Spotify repository
echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list
-
Update list of available packages
sudo apt-get update
-
Install Spotify
sudo apt-get install spotify-client
Note: Use at own discretion. Generally better to use a package manager than manually adding .deb files
If you run Spotify and get this error...
$ spotify
spotify: error while loading shared libraries: libgcrypt.so.11: cannot open shared object file: No such file or directory
Your libgcrypt
lib is too new. Debian Jessie uses version 20 (I think).
I solved this by installing the older version 11 from the Debian repsoitory at ftp://ftp.debian.org/debian/pool/main/libg/libgcrypt11
This package for amd64: libgcrypt11_1.5.0-5+deb7u3_amd64.deb
I assume replace amd64
for your respective architecture
Example:
wget ftp://ftp.debian.org/debian/pool/main/libg/libgcrypt11/libgcrypt11_1.5.0-5+deb7u3_amd64.deb
sudo dpkg -i libgcrypt11_1.5.0-5+deb7u3_amd64.deb
- https://www.spotify.com/us/download/linux/
- https://www.spotify.com/us/download/previews/
- https://community.spotify.com/t5/Help-Desktop-Linux-Mac-and/spotify-error-while-loading-shared-libraries-libgcrypt-so-11/td-p/970485
- http://linuxconfig.org/installation-of-spotify-client-on-debian-linux-8-jessie-64-bit
- ftp://ftp.debian.org/debian/pool/main/libg/libgcrypt11
Please do not advise installing packages from outside repositories. Package libgcrypt11 was superceded by libgcrypt20 and it is only up to Spotify developers to finally update this dependency.