Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X udev problems after update: cannot open libudev.so
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
floops
n00b
n00b


Joined: 28 Dec 2011
Posts: 55

PostPosted: Tue Jul 10, 2012 3:05 pm    Post subject: X udev problems after update: cannot open libudev.so Reply with quote

Ran an update yesterday and now X wont start
The error that I get is:
Code:
xauth: file /home/floopy/.serverauth.2499 does not exist
/usr/bin/X: error while loading shared libraries: libudev.so.0: cannot open shared object file: No such file or directory

I located this file and it was living in /ib32.bak along with libudev.so.0.9.3

This is due to an earlier problem with the /lib32 file which was mucking something else up- see my earlier post which was "SOLVED"
http://forums.gentoo.org/viewtopic-t-923898-highlight-.html
basically I was getting flags about the lib32 folder and per suggestions the whole folder should not have been there so I turned it into a backup file and restarted and everything worked fine then.

So I copied libudev.so.0 and libudev.so.0.9.3 from /lib32.bak into just /lib

Now when I restarted, X started and seemed fine- I get to the login window as usual, but my keyboard and touchpad are completely dead.

I am not sure if this is relevant- but probably is- when I updated last I got a flag about
sys-fs/udev-init-scripts
it said
Code:
udev-postmount service has been removed, remove it from runlevel

I ran
Code:
rc-uodate show

and it did not show udev-postmount so I assumed all was well

The other flag I am getting
Code:
DEVTMPFS is not set in the kernel, udev will not run
this error has only occurred since adding the udev-inist-scripts (at least I had never seen it before)

Perhaps this is a different problem?
At the moment the computer is in trouble and will probably need to do the livecd thing to get in since the keyboard and mouse are utterly dead
Can anyone help? Thanks
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2642
Location: Slovenia

PostPosted: Tue Jul 10, 2012 3:08 pm    Post subject: Reply with quote

Code:
revdep-rebuild

Or if that won't work (it should), manually recompile everything using udev. libudev.so.0 is gone, there's libudev.so.1 now. This is assuming you're using ~arch and have therefore upgraded to udev-186.
Back to top
View user's profile Send private message
floops
n00b
n00b


Joined: 28 Dec 2011
Posts: 55

PostPosted: Tue Jul 10, 2012 3:56 pm    Post subject: Reply with quote

tried revdep-rebuild and got nothing, tried rebuilding udev and it did not help

any other thoughts?
I appreciate the response greatly- thanks
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5493

PostPosted: Tue Jul 10, 2012 4:12 pm    Post subject: Reply with quote

Which version of gentoolkit did you use ?
Back to top
View user's profile Send private message
floops
n00b
n00b


Joined: 28 Dec 2011
Posts: 55

PostPosted: Tue Jul 10, 2012 4:21 pm    Post subject: Reply with quote

At moment I do not know since I cannot get into system- all I can say is have been using 3.0.6 kernel and everything is updated
Back to top
View user's profile Send private message
linuxpyro
Apprentice
Apprentice


Joined: 08 Sep 2004
Posts: 255

PostPosted: Fri Jul 13, 2012 3:45 am    Post subject: Reply with quote

I was having a similar issue. In /usr/lib64, I had libudev.so.1, libudev.so, and libudev.so.1.0.2, and I just created a symlink from libudev.so.1.0.2 to libudev.so.0. Not sure if this will work for you, but it seems to be a workaround for me.
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2642
Location: Slovenia

PostPosted: Fri Jul 13, 2012 10:16 am    Post subject: Reply with quote

linuxpyro wrote:
I just created a symlink from libudev.so.1.0.2 to libudev.so.0.

DON'T ever do that!! It's the craziest of hacks. Might work by chance now, might lead to weird crashes and maybe failed compiles down the road. Instead do what I said you should do - recompile everything that uses udev. So that the stuff will link to .so.1
Back to top
View user's profile Send private message
linuxpyro
Apprentice
Apprentice


Joined: 08 Sep 2004
Posts: 255

PostPosted: Tue Jul 17, 2012 1:20 am    Post subject: Reply with quote

Gusar wrote:
linuxpyro wrote:
I just created a symlink from libudev.so.1.0.2 to libudev.so.0.

DON'T ever do that!! It's the craziest of hacks. Might work by chance now, might lead to weird crashes and maybe failed compiles down the road. Instead do what I said you should do - recompile everything that uses udev. So that the stuff will link to .so.1


You're right, sorry to mislead. I think I resorted to that because I was having some issues with another package, and revdep-rebuild was failing. I ran this, though, and it seemed to do the trick:

Code:

emerge -a --oneshot `equery d udev | awk '{print " ="$1}'`
Back to top
View user's profile Send private message
upengan78
l33t
l33t


Joined: 27 Jun 2007
Posts: 676
Location: IL

PostPosted: Wed Mar 20, 2013 2:22 pm    Post subject: Reply with quote

acroread
Code:
/opt/Adobe/Reader9/Reader/intellinux/bin/acroread: error while loading shared libraries: libudev.so.0: cannot open shared object file: No such file or directory


I am having that issue since I did update day before yesterday. I remember doing revdep-rebuild after the world update and also reemerged acroread but didn't help. I am running this now,
Code:
emerge -a --oneshot `equery d udev | awk '{print " ="$1}'`
 * IMPORTANT: 7 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-apps/util-linux-2.22.2  USE="{-test%}"
[ebuild   R    ] media-plugins/gst-plugins-v4l2-0.10.31
[ebuild   R    ] x11-libs/cairo-1.10.2-r3
[ebuild   R    ] media-libs/mesa-9.0.1
[ebuild   R    ] media-libs/libcanberra-0.29
[ebuild   R    ] sys-fs/udev-197-r8
[ebuild   R    ] virtual/udev-197-r1
[ebuild   R    ] virtual/dev-manager-0
[ebuild   R    ] sys-apps/hwids-20130302
[ebuild   R   ~] sys-fs/lvm2-2.02.98
[ebuild   R    ] sys-power/nut-2.6.3
[ebuild   R    ] x11-base/xorg-server-1.13.1
[ebuild   R    ] x11-drivers/xf86-video-ati-7.0.0
[ebuild   R    ] sys-fs/udev-init-scripts-23
[ebuild   R    ] sys-auth/consolekit-0.4.5_p20120320-r1
[ebuild   R   ~] sys-block/gparted-0.14.1



Hope it fixes things for me. Thanks for the thread.


EDIT:

I noticed some news was available. Wonder if it's related.

Code:

eselect news read
2012-03-16-udev-181-unmasking
  Title                     udev-181 unmasking
  Author                    William Hubbs <williamh@gentoo.org>
  Posted                    2012-03-16
  Revision                  1

udev-181 is being unmasked on 2012-03-19.

This news item is to inform you that once you upgrade to a version of
udev >=181, if you have /usr on a separate partition, you must boot your
system with an initramfs which pre-mounts /usr.

An initramfs which does this is created by
>=sys-kernel/genkernel-3.4.25.1 or
>=sys-kernel/dracut-017-r1. If you do not want to use these tools, be
sure any initramfs you create pre-mounts /usr.

Also, if you are using OpenRC, you must upgrade to >= openrc-0.9.9.

For more information on why this has been done, see the following URL:
http://freedesktop.org/wiki/Software/systemd/separate-usr-is-broken
Back to top
View user's profile Send private message
upengan78
l33t
l33t


Joined: 27 Jun 2007
Posts: 676
Location: IL

PostPosted: Wed Mar 20, 2013 2:37 pm    Post subject: Reply with quote

Still the same error while I run acroread after doing emering udev dependent packages as said earlier.

acroread
Code:
/opt/Adobe/Reader9/Reader/intellinux/bin/acroread: error while loading shared libraries: libudev.so.0: cannot open shared object file: No such file or directory
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5493

PostPosted: Wed Mar 20, 2013 3:59 pm    Post subject: Reply with quote

acroread, as a proprietary package, can only be fixed by its upstream.
Back to top
View user's profile Send private message
upengan78
l33t
l33t


Joined: 27 Jun 2007
Posts: 676
Location: IL

PostPosted: Wed Mar 20, 2013 4:52 pm    Post subject: Reply with quote

I found out, it was jump from app-emulation/emul-linux-x86-baselibs-20121202 to app-emulation/emul-linux-x86-baselibs-20130224 that created the issue for me.

ln -s /lib32/libudev.so.1.2.1 /lib32/libudev.so.0 helped me get acrobat to run again. No idea if this link is going to cause issues in future.

Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum