Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

yum segmentation fault on RHES 4.2

Posted on 2011-03-25
6
Medium Priority
?
888 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 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
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.
Suggested Courses

886 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