解决linux 出现如下报错:Another app is currently holding the yum lock;

[root@localhost network-scripts]# yum install vim

Loaded plugins: fastestmirror

Existing lock /var/run/yum.pid: another copy is running as pid 2503.

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: yum

    Memory :  19 M RSS (306 MB VSZ)

    Started: Thu Oct 29 23:03:02 2015 - 04:00 ago

    State  : Traced/Stopped, pid: 2503

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: yum

    Memory :  19 M RSS (306 MB VSZ)

    Started: Thu Oct 29 23:03:02 2015 - 04:02 ago

    State  : Traced/Stopped, pid: 2503

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: yum

    Memory :  19 M RSS (306 MB VSZ)

    Started: Thu Oct 29 23:03:02 2015 - 04:04 ago

    State  : Traced/Stopped, pid: 2503

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: yum

    Memory :  19 M RSS (306 MB VSZ)

    Started: Thu Oct 29 23:03:02 2015 - 04:06 ago

    State  : Traced/Stopped, pid: 2503

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: yum

    Memory :  19 M RSS (306 MB VSZ)

    Started: Thu Oct 29 23:03:02 2015 - 04:08 ago

    State  : Traced/Stopped, pid: 2503

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: yum

    Memory :  19 M RSS (306 MB VSZ)

    Started: Thu Oct 29 23:03:02 2015 - 04:10 ago

    State  : Traced/Stopped, pid: 2503

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: yum

    Memory :  19 M RSS (306 MB VSZ)

    Started: Thu Oct 29 23:03:02 2015 - 04:12 ago

    State  : Traced/Stopped, pid: 2503






解决办法:

rm -rf /var/run/yum.pid 来强行解除锁定,然后就可以正常使用你的yum了




本文转自 lqbyz 51CTO博客,原文链接:http://blog.51cto.com/liqingbiao/1707723


上一篇:平板电脑和云计算时代的数据保护策略


下一篇:【我的Android进阶之旅】Android 源代码中的Java代码中//$NON-NLS-1$ 注释是什么意思?