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)

Braiam
  • 67,791
  • 32
  • 179
  • 269

1 Answers1

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