Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-21-2006, 09:11 AM   #1
LQ Newbie
Registered: Mar 2006
Location: Elkton, MD
Distribution: CentOS 4.2 and Red Hat 9
Posts: 2

Rep: Reputation: 0
Unhappy rpm and yum commands failing on CentOS 4.2

I recently "inherited" the linux machines at my job. I'm fairly familiar with getting around in linux, but not with installing and updating so much...this is all quite new to me.

After doing some research, I found that yum works best for updating and rpm seems to work best for installing. Unfortunately, neither of them work on this inherited machine. I would love to tell you what was done to cause this, but the former admin is not on good terms...

When I run yum, I get:

Traceback (most recent call last):
File "/usr/bin/yum", line 22, in ?
import yummain
File "/usr/share/yum/", line 22, in ?
import clientStuff
File "/usr/share/yum/", line 18, in ?
import rpm
ImportError: cannot open shared object file: No such file or directory
And when I run rpm, I get:

rpm: error while loading shared libraries: cannot open shared object file: No such file or directory
ANY help would be greatly appreciated.


Old 03-21-2006, 10:06 AM   #2
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Try reinstalling rpm and libselinux (You can get the rpms from a CentOS mirror). Because rpm is already installed, you have to do
#rpm -Uvh --nodeps --force rpm-VERSION.rpm
The same would apply if libselinux is already installed.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgrading MySQL to 4.1 with YUM on CentOS 3.6? Xoleum Linux - Software 0 12-07-2005 11:01 PM
CentOS' YUM repository not updating? guest cAos 3 03-19-2005 03:57 AM
after updating RHEL AS 4 w/ CentOS' YUM repository.... guest cAos 2 03-17-2005 10:53 PM
YUM/RPM commands giving errors MontyPY Linux - Software 1 03-04-2005 08:10 AM
update centos 4 rc1 to centos 4 trou yum? maxut cAos 2 03-04-2005 02:36 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration