spotify: error while loading shared libraries: libgcrypt.so.11

Solved!
Reply
3 people liked this

spotify: error while loading shared libraries: libgcrypt.so.11

nimblefinger
Music Fan

$ spotify
spotify: error while loading shared libraries: libgcrypt.so.11: cannot open shared object file: No such file or directory

$

 

A recent update depends on libgcrypt11 but debian only has libgcrypt20. Is there a solution to this? Or can I revert somehow?

 

I am currently running:

  • debian jessie/sid
  • kernel 3.16-3-amd64

 

Thank you.

4 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Solution! 30 people liked this

Re: spotify: error while loading shared libraries: libgcrypt.so.11

hemlock4000
Casual Listener

Thank you for the reply.

 

I came up with a similar solution: I downloaded the libgcrypt11 library for Debian Wheezy and installed it via

 

~# dpkg -i libgcrypt11_1.5.0-5+deb7u1_amd64.deb

Now Spotify works again. However, this should only be treated as a temporary solution, as the upcoming Debian release Jessie will not ship the old version of the library and it generally not a good approach to manually install packages from another (and soon outdated) release.

Solution! 34 people liked this

Re: spotify: error while loading shared libraries: libgcrypt.so.11

equaint
Casual Listener

The new version mentioned above works great! Thanks, MarcosC for linking the new package.

 

For those wishing to make the switch, you can try the following.

 

 

sudo apt-get purge spotify-client
sudo apt-get autoremove
sudo add-apt-repository --remove 'deb http://repository.spotify.com stable non-free'
sudo apt-get update wget http://repository-origin.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.0.7.153.gb9e8174a_amd64.deb sudo dpkg -i spotify-client_1.0.7.153.gb9e8174a_amd64.deb spotify &

You're also definitely going to want to get rid of libgcrypt11_1.5.0 unless you wish to enjoy being potentially vulnerable to attacks described here: https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-5270

 

Solution! 20 people liked this

Re: spotify: error while loading shared libraries: libgcrypt.so.11

sata
Music Fan

Finally some movement!

 

Thanks for the update MarcosC

 

equaint:

 

Apt repositories exist so you can upgrade your installed software when there is an upgrade path available - without doing any manual steps (other than the upgrade call). This isn't windows. Learn to use your distribution package manager!

just edit your /etc/apt/sources.list from stable to testing

remove the app, then install it with apt-get install spotify-client.

It should even work with apt-get upgrade without removing it but I didn't try it since I had it uninstalled already.

Works without libgcrypt11 though the app only works in fullscreen mode for me. No windowing, or menus for it either. still better though than running unsafe libs :)

Solution! 37 people liked this

Re: spotify: error while loading shared libraries: libgcrypt.so.11

JnewbieD
Newbie

It is missing the echo command. The correct sequence of commands is

 

sudo apt-get purge spotify-client
sudo apt-get autoremove
sudo add-apt-repository --remove 'deb http://repository.spotify.com stable non-free'
sudo 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

 

Thank you again to Asile for found this solution! it works!

 

53 Replies

Re: spotify: error while loading shared libraries: libgcrypt.so.11

Peter__
Community Legend
It might be worth creating a symbolic link from one library to the other and see if that works?

Peter
Spotify Community Mentor and Troubleshooter

Spotify Last.FM Twitter LinkedIn Meet Peter Rock Star Jam 2014


If this post was helpful, please add kudos below!

Re: spotify: error while loading shared libraries: libgcrypt.so.11

hemlock4000
Casual Listener

Same problem here. I tried creating a symbolic link to the new lib version. This ist the result when trying to start Spotify:

 

spotify: /lib/x86_64-linux-gnu/libgcrypt.so.11: version `GCRYPT_1.2' not found (required by /opt/spotify/spotify-client/Data/libcef.so)

 

2 people liked this

Re: spotify: error while loading shared libraries: libgcrypt.so.11

olejon
Roadie
I remember I came across this problem on Arch a while ago, and was able to solve it using an older package provided by in AUR the community.

If I were you I would try to compile the same version the latest Ubuntu uses, which is version 1.5.4. Don't confuse by the package version vs the lib version. Version 1.5.4 provides libgcrypt11.

You can find it here:

ftp://ftp.gnupg.org/gcrypt/libgcrypt/

Or you could try copying the file from Ubuntu. According to this the package only provides one file (of importance). You can download it and extract it and put the file in the correct location.

http://packages.ubuntu.com/utopic/libgcrypt11

I'm writing on my phone so sorry if it's a bit messy.
SpotCommander - The most elegant, intuitive, feature-rich & universal remote control for Spotify, exclusive for Linux users!

Re: spotify: error while loading shared libraries: libgcrypt.so.11

olejon
Roadie
BTW you'll probably have to run "sudo ldconfig" after placing the file.
SpotCommander - The most elegant, intuitive, feature-rich & universal remote control for Spotify, exclusive for Linux users!
Highlighted
Solution! 30 people liked this

Re: spotify: error while loading shared libraries: libgcrypt.so.11

hemlock4000
Casual Listener

Thank you for the reply.

 

I came up with a similar solution: I downloaded the libgcrypt11 library for Debian Wheezy and installed it via

 

~# dpkg -i libgcrypt11_1.5.0-5+deb7u1_amd64.deb

Now Spotify works again. However, this should only be treated as a temporary solution, as the upcoming Debian release Jessie will not ship the old version of the library and it generally not a good approach to manually install packages from another (and soon outdated) release.

Re: spotify: error while loading shared libraries: libgcrypt.so.11

olejon
Roadie
Great. The devs have clearly stated that they only support Ubuntu, despite the download page saying Debian. Since Debian is Ubuntu based I'm sure it'll be fixes sooner or later. The upcoming v 1.0, maybe.
SpotCommander - The most elegant, intuitive, feature-rich & universal remote control for Spotify, exclusive for Linux users!
8 people liked this

Re: spotify: error while loading shared libraries: libgcrypt.so.11

durin
Roadie

Actually Ubuntu is based on Debian and not the other way around.

 

I got this same libgcrypt.so.11 problem but I solved it by installing libgcrypt11 from the Debian archives.

 

On Debian libgcrypt11 is superseded with libgcrypt20 and libgcrypt11 wasn't installed on my system as it wasn't required by any other package.

 

Spotify should add libgcrypt11 as a required dependency or migrate to ibgcrypt20.

8 people liked this

Re: spotify: error while loading shared libraries: libgcrypt.so.11

lovingboth
Casual Listener

@olejon wrote:
Great. The devs have clearly stated that they only support Ubuntu, despite the download page saying Debian. Since Debian is Ubuntu based I'm sure it'll be fixes sooner or later. The upcoming v 1.0, maybe.

Well, it's now borken in Ubuntu 15.04 too, so doubtless someone at Spotify will get their finger out and start depending on libgcrypt20 instead.

 

Downloading and installing Debian Wheezy's libgcrypt11 works as a temporary fix here (and stops the tears that would have happened when my daughter got back from school and found Spotify wouldn't work...)

14 people liked this

Re: spotify: error while loading shared libraries: libgcrypt.so.11

yafuslae
Newbie
SUGGESTED POSTS