Solved

yum segmentation fault on RHES 4.2

Posted on 2011-03-25
6
842 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

863 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

27 Experts available now in Live!

Get 1:1 Help Now