Solved

yum segmentation fault on RHES 4.2

Posted on 2011-03-25
6
843 Views
Last Modified: 2012-05-11
I got the following:

# yum update clamav
Setting up Update Process
Setting up repositories
Segmentation fault

I've tried renamed away the RPM db files ie :
  mv /var/lib/rpm/__db.*  /tmp
& did "rpm --rebuild" but it did not help

It was working previously;  maybe someone fooled around with the server.

I tried upgrading yum but got lots of dependencies (can someone point me
to a yum package which would have everything it needs bundled in or
give me the dependency packages) :

# rpm -Uvh --force ./yum-3.2.22-4.el4.noarch.rpm
warning: only V3 signatures can be verified, skipping V4 signature
error: Failed dependencies:
        pygpgme is needed by yum-3.2.22-4.el4.noarch
        python >= 2.4 is needed by yum-3.2.22-4.el4.noarch
        python(abi) = 2.3 is needed by yum-3.2.22-4.el4.noarch
        python-iniparse is needed by yum-3.2.22-4.el4.noarch
        rpm >= 0:4.4.2 is needed by yum-3.2.22-4.el4.noarch
        yum-metadata-parser >= 1.1.0 is needed by yum-3.2.22-4.el4.noarch

 
0
Comment
Question by:sunhux
  • 3
  • 3
6 Comments
 

Author Comment

by:sunhux
ID: 35213991

I've tried reinstalling yum but no joy :

# rpm -Uvh --force ./yum-2.4.2-0.4.el4.rf.noarch.rpm
Preparing...                ########################################### [100%]
   1:yum                    ########################################### [100%]

# rpm -qa | grep yum
yum-2.4.2-0.4.el4.rf
# yum update clamav
Setting up Update Process
Setting up repositories
Segmentation fault
0
 
LVL 31

Accepted Solution

by:
farzanj earned 500 total points
ID: 35214266
First list your yum packages.

rpm -qa | grep yum

Then you need to erase all yum related packages:
rpm -e --nodeps yum

And others.

Then you need to reinstall yum again.
rpm -ivh yum*rpm

And other files that it needs or tells you that this package is dependent upon.

Also, I see your yum repository.

cd /etc/yum.repos.d/
ls *repo

You should see your yum repository files here.
It should at least contain the following:
[Name of repository or a label]
name=any string
baseurl=<ftp:// > or <http://   > or <file:/// for local >
gpgcheck=0
enabled=1
0
 

Author Comment

by:sunhux
ID: 35214571

is it essential to erase all yum packages before reinstalling?

I'm worried if something got erased, things may get worse
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 31

Assisted Solution

by:farzanj
farzanj earned 500 total points
ID: 35219565
Yum is not such a package that if you delete it, your system would break.  Do you have a cd or DVD of RedHat?

Second, are you talking about RHEL (Red Hat Enterprise Linux 4)?

That DID not have YUM to being with.  All you had was up2date

RHEL5 was the first one to get YUM.

If you have RHEL4.2, try using up2date.

Sorry, I missed this before.  Make sure this is the release number.

In your response, please let me know what you want to do, and I would tell you how to accomplish it using RHEL4.

If you have RHEL5, then please run the commands I told you in my last response and tell me the state of your system
0
 
LVL 31

Assisted Solution

by:farzanj
farzanj earned 500 total points
ID: 35220318
Ok.  Now I realize looking at your other questions that you really have RHEL4.

Read the following tips to use up2date.  This may help you a little if you wanted to download something.
http://www.redhat.com/advice/tips/up2date.html

There was no YUM in RHEL4.  So that would explain the segmentation fault.  RHEL5 was the first version to have yum in it.

In RHEL4 days, we had to work manually to resolve dependencies.  You would appreciate the need of YUM.
0
 

Author Closing Comment

by:sunhux
ID: 35371909
Thanks
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now