LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 09: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, 10:06 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:15 AM.

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
Open Source Consulting | Domain Registration