解决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


相关文章
|
2月前
|
JSON 小程序 JavaScript
uni-app开发微信小程序的报错[渲染层错误]排查及解决
uni-app开发微信小程序的报错[渲染层错误]排查及解决
636 7
|
2月前
|
Linux 开发工具 数据安全/隐私保护
linux异常一:feng 不在 sudoers 文件中,此事将被报告。yum提示Another app is currently holding the yum lock; waiting for
这篇文章介绍了在CentOS 7系统中安装Docker时遇到的两个常见问题及其解决方法:用户不在sudoers文件中导致权限不足,以及yum被锁定的问题。
42 2
linux异常一:feng 不在 sudoers 文件中,此事将被报告。yum提示Another app is currently holding the yum lock; waiting for
|
1月前
|
C#
【Azure App Service】使用Microsoft.Office.Interop.Word来操作Word文档,部署到App Service后报错COMException
System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (0x80040154 (REGDB_E_CLASSNOTREG)).
|
26天前
|
存储 缓存 Linux
【Linux】另一种基于rpm安装yum的方式
通过本文的方法,您可以在离线环境中使用RPM包安装YUM并进行必要的配置。这种方法适用于无法直接访问互联网的服务器或需要严格控制软件源的环境。通过配置本地YUM仓库,确保了软件包的安装和更新可以顺利进行。希望本文能够为您在特定环境中部署YUM提供实用的指导。
131 0
|
2月前
|
缓存 前端开发 Linux
Linux yum 命令
10月更文挑战第1天
50 2
|
3月前
|
关系型数据库 MySQL Linux
Linux 安装 mysql【使用yum源进行安装】
这篇文章介绍了在Linux系统中使用yum源安装MySQL数据库的步骤,包括配置yum源、安装MySQL服务、启动服务以及修改root用户的默认密码。
Linux 安装 mysql【使用yum源进行安装】
|
2月前
|
Unix Linux Go
Linux 使用Yum安装Go和配置环境
Linux 使用Yum安装Go和配置环境
|
4月前
|
开发框架 .NET Windows
【App Service】在App Service中配置Virtual applications and directories,访问目录中的静态文件报错404
【App Service】在App Service中配置Virtual applications and directories,访问目录中的静态文件报错404
|
4月前
|
安全 前端开发 网络安全
【Azure App Service】访问App Service应用报错 SSL: WRONG_VERSION_NUMBER
【Azure App Service】访问App Service应用报错 SSL: WRONG_VERSION_NUMBER
143 0
|
2月前
|
小程序 JavaScript 前端开发
uni-app开发微信小程序:四大解决方案,轻松应对主包与vendor.js过大打包难题
uni-app开发微信小程序:四大解决方案,轻松应对主包与vendor.js过大打包难题
726 1