Fedora Linux Support Community & Resources Center
  #1  
Old 18th February 2012, 04:53 PM
dulkancellin Offline
Registered User
 
Join Date: Nov 2011
Posts: 6
linuxfirefox
Problem with the rpm libraries when trying to update

Hello,

I made my last update on February 3. Now I realize that something must have happened because yum doesn't work.

[pablo@pampas ~]$ uname -a
Linux pampas 3.2.2-1.fc16.i686 #1 SMP Thu Jan 26 03:38:31 UTC 2012 i686 i686 i386 GNU/Linux

[pablo@pampas ~]$ yum
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
librpm.so.2: cannot dynamically load executable
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.7.2 (default, Oct 27 2011, 01:36:46)
[GCC 4.6.1 20111003 (Red Hat 4.6.1-10)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq

I tried to reinstall yum using rpm, but
[pablo@pampas ~]$ rpm
rpm: error while loading shared libraries: librpm.so.2: cannot dynamically load executable

[pablo@pampas ~]$ ldd /bin/rpm
/bin/rpm: error while loading shared libraries: librpm.so.2: cannot dynamically load executable

However, librpm.so.2 seems to be present
[pablo@pampas ~]$ ls -ls /usr/lib/librpm*
0 lrwxrwxrwx. 1 root root 20 Feb 1 13:14 /usr/lib/librpmbuild.so.2 -> librpmbuild.so.2.0.1
144 -rwxr-xr-x. 1 root root 146300 Jan 24 19:26 /usr/lib/librpmbuild.so.2.0.1
0 lrwxrwxrwx. 1 root root 17 Jan 31 12:52 /usr/lib/librpmio.so.2 -> librpmio.so.2.0.1
164 -rwxr-xr-x. 1 root root 164768 Jan 24 19:26 /usr/lib/librpmio.so.2.0.1
0 lrwxrwxrwx. 1 root root 19 Feb 1 13:14 /usr/lib/librpmsign.so.0 -> librpmsign.so.0.0.1
16 -rwxr-xr-x. 1 root root 14472 Jan 24 19:26 /usr/lib/librpmsign.so.0.0.1
0 lrwxrwxrwx. 1 root root 15 Jan 31 12:52 /usr/lib/librpm.so.2 -> librpm.so.2.0.2
312 -rwxr-xr-x. 1 root root 315500 Jan 24 19:26 /usr/lib/librpm.so.2.0.2

I don't know what have happened. I need to update, but I am afraid that the only way is reinstalling
yum or rpm from source code. I wish to avoid that. Can anyone help me out?

Thanks.

Last edited by dulkancellin; 18th February 2012 at 05:03 PM.
Reply With Quote
  #2  
Old 19th February 2012, 02:42 AM
amturnip Offline
Registered User
 
Join Date: Jul 2007
Posts: 135
linuxfirefox
Re: Problem with the rpm libraries when trying to update

What does ldd -v say?
Reply With Quote
  #3  
Old 19th February 2012, 03:26 AM
dulkancellin Offline
Registered User
 
Join Date: Nov 2011
Posts: 6
linuxfirefox
Re: Problem with the rpm libraries when trying to update

Hi amturnip,

ldd -v gives the same output as ldd alone.

[pablo@pampas ~]$ ldd -v /bin/rpm
/bin/rpm: error while loading shared libraries: librpm.so.2: cannot dynamically load executable
Reply With Quote
  #4  
Old 21st February 2012, 05:19 PM
dulkancellin Offline
Registered User
 
Join Date: Nov 2011
Posts: 6
linuxfirefox
Smile Re: Problem with the rpm libraries when trying to update

Somehow librpm.so.2 got corrupted.
I don't know if it is the proper way, but this is how I fixed the problem.

From http://rpm.phone.net, I downlowded rpm-libs-4.9.1.2-5.fc16.i686.rpm
to extract a copy of librpm.so.2.0.2 in my home directory.

Then,
[root@pampas pablo]# rm -f /usr/lib/librpm.so.2*
[root@pampas pablo]# mv ~/librpm.so.2.0.2 /usr/lib
[root@pampas pablo]# ln -s librpm.so.2.0.2 librpm.so.2
[root@pampas pablo]# ldconfig -v | grep librpm.so.2
librpm.so.2 -> librpm.so.2.0.2

Now both rpm and yum work fine

[root@pampas pablo]# rpm
RPM version 4.9.1.2
Copyright (C) 1998-2002 - Red Hat, Inc.
This program may be freely redistributed under the terms of the GNU GPL ...
[root@pampas pablo]# yum
Loaded plugins: langpacks, presto, refresh-packagekit
You need to give some command ...

Last edited by dulkancellin; 21st February 2012 at 05:24 PM.
Reply With Quote
Reply

Tags
libraries, problem, rpm, update

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The GNU libc libraries - Update Problem Commander Using Fedora 8 4th December 2011 05:38 PM
YUM - Missing libraries problem kamil_blue Installation, Upgrades and Live Media 4 29th August 2008 07:32 PM
problem with loading libraries vnykr Installation, Upgrades and Live Media 5 12th February 2007 05:39 PM
KDE update and missing libraries balcinus Using Fedora 3 23rd November 2005 05:00 PM


Current GMT-time: 21:34 (Friday, 28-11-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Arvorismo Ybira Pe - Flowing Wells High School Photos