I am trying to run Spotify on Ubuntu 12.04. It used to work some time ago, when I tried to start it today, I got the following error:

spotify: error while loading shared libraries: libudev.so.1: cannot open shared object file: No such file or directory

how to fix it?

I tried

sudo apt-get install libudev1

which however gives an error saying that it does not exist (any more)

share|improve this question
up vote 27 down vote accepted

WARNING!

THIS SOLUTION BREAKS UNITY ON RECENT VERSIONS OF UBUNTU WHICH MAKES UBUNTU UNABLE TO BOOT. YOU PROBABLY DON'T WANT TO TRY IT UNLESS YOU KNOW WHAT YOU'RE DOING.

PLEASE PROCEED WITH CAUTION.




In Ubuntu 12.04 LTS do following:

sudo apt-get install libudev0

Then you create a symlink to the file as following (64bit):

PLEASE PROCEED WITH CAUTION!!
sudo ln -sf /lib/x86_64-linux-gnu/libudev.so.0 /lib/x86_64-linux-gnu/libudev.so.1

If you are using a 32bit:

PLEASE PROCEED WITH CAUTION!!
sudo ln -sf /lib/i386-linux-gnu/libudev.so.0 /lib/i386-linux-gnu/libudev.so.1

Now Spotify should recognize the correct library. If this doesn't work, please post back and I'll try to help you further :)

share|improve this answer
1  
This worked, spotify starts without problems now. – user3825755 Apr 2 '15 at 14:31
2  
It should be noted that the Spotify devs have acknowledged this issue and have promised a fix in the near future. – Glutanimate Apr 2 '15 at 15:45
4  
I can also add that you should delete the symlink libudev.so.1 as soon as the update arrives. If a program that use libudev.so.1 isn't compatible with libudev.so.0 something could break. This is only a quickfix and a temporary solution for your problem. – Lars Martinsen Apr 2 '15 at 15:55
1  
Awesome! Thanks – tachomi Jun 10 '15 at 16:30
1  
@LarsMartinsen that command (sudo ln -sf /lib/x86_64-linux-gnu/libudev.so.0 /lib/x86_64-linux-gnu/libudev.so.1) broke unity for me. No login screen. How do I reverse this link? – Mina Michael Nov 21 '16 at 9:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.