Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

yum segmentation fault on RHES 4.2

Posted on 2011-03-25
6
Medium Priority
?
877 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

 
LVL 31

Assisted Solution

by:farzanj
farzanj earned 2000 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 2000 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

719 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