Solved

yum segmentation fault on RHES 4.2

Posted on 2011-03-25
6
841 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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
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…
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…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

759 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

24 Experts available now in Live!

Get 1:1 Help Now