yum " Segmentation fault" in centos
While using yum commands in a centos server(2.6.18-194.el5PAE #1), it throws 'Segmentation fault'.
[root@server2 ~]# yum check-update
Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile
Segmentation fault
[root@server2 ~]# yum installlve-devel cmake
Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Segmentation fault
[root@server2 ~]# yum update
Loaded plugins: fastestmirror Loading
mirror speeds from cached hostfile
Segmentation fault
How can I solve this?
The issue was with zlib upgrade from source which is a problem affect all RHEL/CentOS/CL installations:
http://bugs.centos.org/view.php?id=4702&nbn=1
I have removed source zlib
/usr/local/lib/libz.so.1.2.5
and Changed the links
/usr/local/lib/libz.so -> libz.so.1.2.5 lrwxrwxrwx 1 root root
13 Sep 24 2010 /usr/local/lib/libz.so.1 -> libz.so.1.2.5
to point to libz.so.1.2.3. This has fixed the issue.
You can try repairing your rpm db and re-doing the cache
rm -rf /var/lib/rpm/__db.*
rpm --rebuilddb
yum clean all
yum makecache
The first thing I do when yum starts behaving strangely is
# yum clean all
It's hard to say from the info you've given here, but it seems a good guess that your cache and mirror files are corrupt. The above command will help fix that. If it doesn't work, then post the output of
# yum -v check-update