15

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)

1 Answer 1

28

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 :)

7
  • 1
    This worked, spotify starts without problems now. Apr 2, 2015 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. Apr 2, 2015 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. Apr 2, 2015 at 15:55
  • 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?
    – steoiatsl
    Nov 21, 2016 at 9:47
  • @mina michael, shoul've read your comment first... :( Feb 27, 2017 at 22:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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