> CentOS > CentOS故障 >

yum命令出现 段错误 (core dumped)

使用yum命令安装东西或者yum update时都提示以下错误:

1
2
3
4
5
6
7
8
[root@lee ~]# yum update
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
 * base: mirrors.tuna.tsinghua.edu.cn
 * extras: mirrors.tuna.tsinghua.edu.cn
 * soluslabs: mirror.eu1.soluslabs.net
 * updates: mirrors.tuna.tsinghua.edu.cn
段错误 (core dumped)

解决方法:

1
2
3
4
5
6
7
8
9
[root@lee ~]# rpm -q zlib zlib-devel
zlib-1.2.3-29.el6.x86_64
zlib-devel-1.2.3-29.el6.x86_64
[root@lee ~]# cp /usr/lib64/lib
Display all 1910 possibilities? (y or n)
[root@lee ~]# cp /usr/lib64/libz.so /usr/local/lib64/
[root@lee ~]# cd /usr/local/lib64/
[root@lee lib64]# ln -sf libz.so libz.so.1
[root@lee lib64]# yum clean all

我的系统是CentOS 64位,如果是32位的在赋值libz.so时这么复制

1
[root@lee ~] cp /usr/lib/libz.so /usr/local/lib/

然后重新yum update就可以了

(责任编辑:IT)