码迷,mamicode.com
首页 > 其他好文 > 详细

yum命令的一个报错记录一下

时间:2014-09-26 13:33:18      阅读:243      评论:0      收藏:0      [点我收藏+]

标签:style   color   io   os   java   ar   for   sp   div   

昨天bash漏洞放出,补丁也更新到yum源。百八十台服务器跑个yum –y update bash。有一台机器出了问题,登录检查~

登录服务器,敲命令

yum update bash

返回如下:

   1:  [root@localhost ~]# yum update bash
   2:  Loaded plugins: fastestmirror
   3:  Existing lock /var/run/yum.pid: another copy is running as pid 17178.
   4:  Another app is currently holding the yum lock; waiting for it to exit...
   5:    The other application is: java
   6:      Memory : 1.2 G RSS (8.0 GB VSZ)
   7:      Started: Fri Sep 26 10:45:42 2014 - 09:15 ago
   8:      State  : Sleeping, pid: 17178
   9:  Another app is currently holding the yum lock; waiting for it to exit...
  10:    The other application is: java
  11:      Memory : 1.2 G RSS (8.1 GB VSZ)
  12:      Started: Fri Sep 26 10:45:42 2014 - 09:17 ago
  13:      State  : Sleeping, pid: 17178
  14:  Another app is currently holding the yum lock; waiting for it to exit...
  15:    The other application is: java
  16:      Memory : 1.2 G RSS (8.2 GB VSZ)
  17:      Started: Fri Sep 26 10:45:42 2014 - 09:19 ago
  18:      State  : Sleeping, pid: 17178
  19:   
  20:   
  21:  Exiting on user cancel.

 

赶脚怪异,根本没有进程。杀掉重头来

   1:  [root@localhost ~]# ps -ef|grep yum
   2:  root     19434 19377  0 10:55 pts/0    00:00:00 grep yum
   3:  [root@localhost ~]# rm /var/run/yum.pid
   4:  rm: remove regular file `/var/run/yum.pid‘? y
   5:  [root@localhost ~]# yum update bash
   6:  Loaded plugins: fastestmirror
   7:  Loading mirror speeds from cached hostfile
   8:  addons                                                                                              | 1.9 kB     00:00
   9:  base                                                                                                | 1.1 kB     00:00
  10:  Segmentation fault

 

?_? segmentation fault又是啥玩意

搜了一下可能与zlib相关?经确认我的机器没有zlib相关的问题,不过ld.so.conf中的配置有些异样(与其它机器有异)

/etc/ld.so.conf中添加了一行 “/usr/local/lib”

把这行配置取消,确认应用无误~,再来看看yum

   1:  [root@localhost ~]# yum makecache
   2:  Loaded plugins: fastestmirror
   3:  Loading mirror speeds from cached hostfile
   4:  addons                                                                                              | 1.9 kB     00:00
   5:  base                                                                                                | 1.1 kB     00:00
   6:  extras                                                                                              | 2.1 kB     00:00
   7:  updates                                                                                             | 1.9 kB     00:00
   8:  base                                                                                                             3662/3662
   9:  base                                                                                                             3662/3662
  10:  base                                                                                                             3662/3662
  11:  Metadata Cache Created

 

搞定……

yum命令的一个报错记录一下

标签:style   color   io   os   java   ar   for   sp   div   

原文地址:http://www.cnblogs.com/tutuye/p/3994464.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!