Skip to content

Instantly share code, notes, and snippets.

@ed-flanagan
Last active December 26, 2017 10:56
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ed-flanagan/7068f869a98ea534b8c2 to your computer and use it in GitHub Desktop.
Save ed-flanagan/7068f869a98ea534b8c2 to your computer and use it in GitHub Desktop.
Install Spotify Preview on Debian 8 Jessie

Install Spotify Preview on Debian 8 Jessie

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.

Intial Aptitude Install

  1. 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

  2. Add the Spotify repository

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

  3. Update list of available packages

    sudo apt-get update

  4. Install Spotify

    sudo apt-get install spotify-client

libgcrypt error

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:

  1. wget ftp://ftp.debian.org/debian/pool/main/libg/libgcrypt11/libgcrypt11_1.5.0-5+deb7u3_amd64.deb
  2. sudo dpkg -i libgcrypt11_1.5.0-5+deb7u3_amd64.deb

Sources

Copy link

ghost commented Jul 12, 2015

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.

@n00dl3
Copy link

n00dl3 commented Jan 26, 2016

@kowal-tbg: +1 !

Better solution, use the spotify version from testing :

#1. 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 BBEBDCB318AD50EC6865090613B00F1FD2C19886

#2. Add the Spotify repository
echo deb http://repository.spotify.com testing non-free | sudo tee /etc/apt/sources.list.d/spotify.list

#3. Update list of available packages
sudo apt-get update

#4. Install Spotify
sudo apt-get install spotify-client

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment