14.04 Unable to install correct package

18,754

Solution 1

Use sudo apt-get install libudev1 if libudev.so.1 is not already installed then:

sudo ln -sf /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0

Solution 2

I've downloaded the libudev0 package from http://packages.ubuntu.com/precise-updates/libudev0 and then install like this:
sudo dpkg -i libudev0_175-0ubuntu9.10_amd64.deb.
it works for me.

Share:
18,754

Related videos on Youtube

Thijser
Author by

Thijser

Updated on September 18, 2022

Comments

  • Thijser
    Thijser over 1 year

    I'm attempting to configure an oculus rift for this I need to execture ./OculusConfigUtil_i386

    This gives me the following error:

    ./OculusConfigUtil_i386: error while loading shared libraries: libudev.so.0: cannot open shared object file: No such file or directory
    

    then doing

    sudo apt-get update
    sudo apt-get install libudev0:i386
    sudo apt-get install libudev0
    

    both eturned that the packagep(:i386) has no installation candidate.

    This worked for me, but gave me the error:

    ./OculusConfigUtil_i386: error while loading shared libraries: libudev.so.0: cannot open shared object file: No such file or directory
    

    when trying to run the script again. any ideas?

    Running:

    ls -l /lib/x86_64-linux-gnu | grep libudev
    

    Gives this output:

     lrwxrwxrwx 1 root root      34 jul 22 09:56 libudev.so.0 -> /lib/x86_64-linux-gnu/libudev.so.1
    lrwxrwxrwx 1 root root      16 jun 20 02:15 libudev.so.1 -> libudev.so.1.3.5
    -rw-r--r-- 1 root root   67600 jun 20 02:16 libudev.so.1.3.5
    
    • Pabi
      Pabi almost 10 years
      So you have installed libudev.so.1?
    • Thijser
      Thijser almost 10 years
      I have installed libdconf1, sudo apt-get install libudev.so.1 also returns unable to locate package libudev.so.1
    • Pabi
      Pabi almost 10 years
      locate is not updated instantly, run sudo updatedb to update it.
    • Thijser
      Thijser almost 10 years
      Nope still the same problem sudo updatedb runs fine (no return value just runs) but all other installs still fail and so does the script
  • Thijser
    Thijser almost 10 years
    Well I have libdconf1 (in the linked question) but don't have libudev.so.1 which when I run sudo apt-get install libudev.so.1 returns E: Unable to locate package libudev.so.1 E: Couldn't find any package by regex 'libudev.so.1'
  • Pabi
    Pabi almost 10 years
    sudo apt-get install libudev1 is the command you need to run.
  • Thijser
    Thijser almost 10 years
    sudo apt-get install libudev1 returned 17 not upgraded and the rest unchanged sudo ln -sf /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0 returned nothing and the script still doesn't run same error
  • Pabi
    Pabi almost 10 years
    Post the output of ls -l /lib/x86_64-linux-gnu | grep libudev please.
  • Thijser
    Thijser almost 10 years
    I put the output in the OP
  • Pabi
    Pabi almost 10 years
    Output looks fine to me.
  • Thijser
    Thijser almost 10 years
    Yes but the script isn't working so am I doing something wrong here? Is the script wrong?
  • Thijser
    Thijser almost 10 years
    Ah found it should have made sure the script was also in 64 bits not 32 bits thank you for your help