LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



Reply
 
Search this Thread
Old 03-21-2006, 10:11 AM   #1
amussaw
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:

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

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

Thanks,

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

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


Reply


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-08-2005 12:01 AM
CentOS' YUM repository not updating? guest cAos 3 03-19-2005 04:57 AM
after updating RHEL AS 4 w/ CentOS' YUM repository.... guest cAos 2 03-17-2005 11:53 PM
YUM/RPM commands giving errors MontyPY Linux - Software 1 03-04-2005 09:10 AM
update centos 4 rc1 to centos 4 trou yum? maxut cAos 2 03-04-2005 03:36 AM


All times are GMT -5. The time now is 08:59 PM.

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