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

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

登录服务器,敲命令

yum update bash

返回如下:

   1:  [[email protected] ~]# 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:  [[email protected] ~]# ps -ef|grep yum
   2:  root     19434 19377  0 10:55 pts/0    00:00:00 grep yum
   3:  [[email protected] ~]# rm /var/run/yum.pid
   4:  rm: remove regular file `/var/run/yum.pid‘? y
   5:  [[email protected] ~]# 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:  [[email protected] ~]# 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

搞定……

时间: 2024-10-10 12:20:22

yum命令的一个报错记录一下的相关文章

3850 X5如何开启IMM中的SNMP V1, 现通过IE或ASU命令开启都报错

经验分享 问题: 3850 X5如何开启IMM中的SNMP V1, 现通过IE或ASU命令开启都报错. 报错如下: Couldn't save SNMP settings:Please configure Contact and location to enable snmp V1/V3 是否需要升级 IMM,升级IMM是否会影响运行的业务系统,如何升级IMM??? 解决办法:在左侧"IMM Control"中--"System Settings"  IMM Inf

duplicate symbol _OBJC_METACLASS_$ 报错记录

duplicate symbol _OBJC_METACLASS_$_TabbarButton in: /Users/hw201406/Library/Developer/Xcode/DerivedData/xxx-gafskbgawbctznekgfxqhaugwjce/Build/Intermediates/xxx.build/Debug-iphonesimulator/xxx06.build/Objects-normal/i386/TabbarButton-FDEB19611A30D765

InnoDB: The InnoDB memory heap is disabled报错记录

报错记录: [[email protected] ~]# cat /data/3307/data/localhost.localdomain.err  150509 21:21:27 mysqld_safe Starting mysqld daemon with databases from /data/3307/data 150509 21:21:27 InnoDB: The InnoDB memory heap is disabled 150509 21:21:27 InnoDB: Mute

在程序中使用命令打开一个进程和记录该进程执行日志

//在需要的程序中调用ExcutedCmd函数来打开执行dos命令 //cmd 命令  args 命令参数 private static void ExcutedCmd(string cmd, string args) { using (Process p = new Process()) { ProcessStartInfo psi = new ProcessStartInfo(cmd, args); psi.CreateNoWindow = true; psi.UseShellExecute

storm 一个报错 Async loop died! & reconnect

Async loop died! 重启任务后发现任务一直异常,日志中有大量reconnect. b.s.m.n.Client [INFO] Reconnect started for Netty-Client-192.168.1.2/192.168.1.21:6724... [26] telnet到对应级机器的6724端口,连接不上,登陆机器检测端口,发现端口没有正常关闭,重启使用此端口job,之后恢复正常. storm 一个报错 Async loop died! & reconnect

Spring Boot 报错记录

Spring Boot 报错记录 由于新建的项目没有配置数据库连接启动报错,可以通过取消自动数据源自动配置来解决 解决方案1: @SpringBootApplication(exclude = DataSourceAutoConfiguration.class) //@SpringBootApplication @MapperScan("com.example.*") //扫描:该包下相应的class,主要是MyBatis的持久化类. 解决方案2: #去配置文件中配置数据库连接参数 #

ansible报错记录

ansible报错: The full traceback is:Traceback (most recent call last):  File "/usr/lib/python2.7/site-packages/ansible-2.5.4-py2.7.egg/ansible/executor/task_executor.py", line 138, in run    res = self._execute()  File "/usr/lib/python2.7/site

django-crontab定时任务报错记录

1.使用命令python manage.py crontab add时报错:'/temp/xxxxxx', 10 , bad hour解决方法:看报错的字面意思就是时间填错了,然后我试了各种时间格式,依然报bad hour,查了网上一般报时间错误的都是bad minute,我意识到不是这个问题,然后仔细比对了下配置文件,发现最后面的逗号没写,一般认为这个元组里面只有一个元素会忽略,但是这里请一定要加上,虽然我也不知道为什么!下面把我的配置贴上:CRONJOBS = (('/5 *', 'Appn

CentOS7 Local yum的一次报错信息

说明:今天在火车上测试一个CentOS7下的一个服务,要用到yum配置,但是本机没有联网,所以考虑到配置本地yum,按照之前CentOS6下的常规方法,居然发现有报错.操作如下: 1)虚拟机下将CentOS7光盘加载到系统里面,然后挂载到本地的/localyum上 [[email protected] yum.repos.d]# mount /dev/cdrom /localyum 2)添加一个repo文件 [[email protected] ~]# cd /etc/yum.repos.d/