Unable to install on ubuntu 15.04 for hash sum mismatch

Solved!
Reply

Unable to install on ubuntu 15.04 for hash sum mismatch

vampolo
Casual Listener

Hi,

 

I just installed ubuntu 15.04, was following https://www.spotify.com/us/download/previews/ and after adding the key and the repo to sources.list apt-get says:

 

W: Failed to fetch http://repository.spotify.com/dists/stable/non-free/binary-amd64/Packages  Hash Sum mismatch

E: Some index files failed to download. They have been ignored, or old ones used instead.

and apt-get install spotify-client does not find the package

 sudo apt-get install spotify-client
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package spotify-client

Any clue in how to fix this ?

1 ACCEPTED SOLUTION
Solution!

vampolo
Casual Listener

I've found a solution since spotify people seems to take way more than necessary to fix their own deb repo.

 

First of all get spotify package, it is http://repository.spotify.com/pool/non-free/s/spotify/spotify-client_0.9.17.1.g9b85d43.7-1_amd64.deb

Then get libgcrypt11, it is on debian from http://security.debian.org/debian-security/pool/updates/main/libg/libgcrypt11/libgcrypt11_1.5.0-5+de...

 

Install both packages with dpkg -i package.deb or double clicking on them.

 

Whoila' you have spotify. cheers!

View solution in original post

26 Replies

edwinksl
Casual Listener

I have a GUI-friendly fix for people who are running Ubuntu 15.04 64-bit. If you have followed the instructions given by https://www.spotify.com/us/download/linux/ and your Spotify client doesn't start (and this is because the client in the stable distribution relies on libgcrypt11, which is upgraded to libgcrypt20 in Ubuntu 15.04), read on. On your distro, look for "Software & Updates" and go to the "Other Software" tab. You'll find a line that says "http://repository.spotify.com stable non-free". Click on it and then the "Edit" button. In the "Distribution" box, change "stable" to "testing". Close all boxes and now search for "Software Updater" on your distro and check for updates. You should see an update for your Spotify client. Proceed to update with caution. When I upgraded, I encountered a couple of errors but they did not appear to crash my distro nor impair my Spotify client. The Facebook login may fail on first try, but it should work after a few tries (I don't know why this happens, but it is probably related to libgcrypt20 if I have to guess). I have not tried to reproduce these errors, so follow these instructions with caution!

jensvb2009
Newbie

Same issue here:

Xubuntu x86 - 15.04: unable to install the spotify client. For some reason the spotify repository is ignored when doing "update". 

Please have a look at this spotify!

 

keestux
Regular

Is one of the Spofify developers listening? Or else, how do we notify the right people? To me it seems a 5 minute job to fix this problem.

keestux
Regular
Spofify => Spotify 🙂

keestux
Regular

The real problem is a mismatch between the checksum of the downloaded Packages.gz and what is in InRelease.

 

I've downloaded these files and computed md5sum

4bfa1d4da7e0d639f5682d1bcffbf671 Packages
c1b40790a4de8f07fbe221c0b9a396c5 Packages.gz

a6c45b9be906f8c19f07640f4087febd Release

 

But InRelease says:

MD5Sum:
4bfa1d4da7e0d639f5682d1bcffbf671 4409 non-free/binary-amd64/Packages
dfefc4034b6b440d9a9e3c3ebe361536 1433 non-free/binary-amd64/Packages.gz
a6c45b9be906f8c19f07640f4087febd 194 non-free/binary-amd64/Release

 

The workarounds are nice but the problem needs to be fixed by the Spotify guys.

jooon
Spotify
Spotify

I can't reproduce this.

 

$ REPO=http://repository.spotify.com/dists/stable

$ curl -s $REPO/InRelease | grep binary-amd64 | head -n3
4bfa1d4da7e0d639f5682d1bcffbf671 4409 non-free/binary-amd64/Packages
dfefc4034b6b440d9a9e3c3ebe361536 1433 non-free/binary-amd64/Packages.gz
a6c45b9be906f8c19f07640f4087febd 194 non-free/binary-amd64/Release
$ curl -s $REPO/non-free/binary-amd64/Packages | md5sum -
4bfa1d4da7e0d639f5682d1bcffbf671 -
$ curl -s $REPO/non-free/binary-amd64/Packages.gz | md5sum -
dfefc4034b6b440d9a9e3c3ebe361536 -
$ curl -s $REPO/non-free/binary-amd64/Release | md5sum -
a6c45b9be906f8c19f07640f4087febd -

 

What you describe can probably happen, but it is much more likely that it is a CDN problem and there is a broken copy of Packages.gz out there somewhere. To test the CDN theory, replace repository with repository-origin.

vampolo
Casual Listener

It has been fixed.

 

I dunno the Spotiffy architecture but if you guys didn't change package at all (which seems the case) it was probably a cdn problem that for some days it was referencing a broken Packages.gz as you said @jooon.

mattra73
Newbie

It still doesn't work for me on Peppermint 6. I have a 32 bit machine, and got the hash sum error and then Unable to Locate Spotify error. Anyone looking into this?

fdemurger
Newbie

Same thing on Super X distro 32 bits

AntonGorodeckij
Casual Listener

Same problem.

Ubuntu 15.04 for 32bit on Thinkpad L440.

PLEASE HELP!!!

keestux
Regular

Strange, now I can't reproduce it anymore either.

So, yes, it could have been a CDN problem.

yuribit
Casual Listener

I have the same problem here, anyone found a solution?

 

Solution!

vampolo
Casual Listener

I've found a solution since spotify people seems to take way more than necessary to fix their own deb repo.

 

First of all get spotify package, it is http://repository.spotify.com/pool/non-free/s/spotify/spotify-client_0.9.17.1.g9b85d43.7-1_amd64.deb

Then get libgcrypt11, it is on debian from http://security.debian.org/debian-security/pool/updates/main/libg/libgcrypt11/libgcrypt11_1.5.0-5+de...

 

Install both packages with dpkg -i package.deb or double clicking on them.

 

Whoila' you have spotify. cheers!

View solution in original post

lifeizshort
Newbie

links are not working for me

ibmc
Newbie

Go up a level and you can see the parent folder. The version numbers have changed which is why the links 404. You can view all available files at http://repository-origin.spotify.com/pool/non-free/s/spotify/ and http://security.debian.org/debian-security/pool/updates/main/libg/libgcrypt11/. Good luck!

user-removed
Not applicable

@vampolo wrote:

I've found a solution since spotify people seems to take way more than necessary to fix their own deb repo.

 

First of all get spotify package, it is http://repository.spotify.com/pool/non-free/s/spotify/spotify-client_0.9.17.1.g9b85d43.7-1_amd64.deb

Then get libgcrypt11, it is on debian from http://security.debian.org/debian-security/pool/updates/main/libg/libgcrypt11/libgcrypt11_1.5.0-5+de...

 

Install both packages with dpkg -i package.deb or double clicking on them.

 

Whoila' you have spotify. cheers!


THANK YOU, GREAT INFORMATION!

 

Finally a Spotify on Linux, newest one for my familiar (my old laptop).

 

So easy to install!

 

Kind regards and have a nice day!!!

thatbeardybloke
Newbie

This only works with a 64bit machine. I have a 32bit machine running 15.04 and according to online sources there is no 32bit deb package for Spotify. I was running Spotify perfectly before on 14.10. I've exhausted all possible solutions, Spotify surely has a monopoly with Window users and forgets Linux? 🙂

mckayefc
Casual Listener

I am now up and running as well.

 

I already had Spotify installed, but was getting the same errors. To fix, all I needed to do was to reistall the Spotify .deb package. I didn't need libgcrypt11, as I was already running a newer version.

 

thanks @vampolo.

salamando
Casual Listener

This worked great. Thanks.

greg_the_greg
Newbie

You're awesome! This works for 14.04 as well, after trying three other things, that link is the only thing that's worked.

 

Everything plays, including remotely, and it can open and close from the icon, without needing terminal open.

 

Thanks!

SUGGESTED POSTS