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


目录
打赏
0
0
0
0
347
分享
相关文章
Linux环境基础开发工具的使用(yum、vim、gcc、g++、gdb、make/Makefile)
本文介绍了yum 包管理工具、Vim 编辑器、gcc/g++ 编译器、gdb 调试器、编译原理及 Makefile 的使用,同时还配备了如何使用,以及图解。旨在帮助读者更好地理解和应用这些工具与技术。
91 0
【App Services】App Service报错远程证书无效 - "The remote certificate is invalid according to the validation procedure"
在开发环境中,新部署的应用(App Service)无法与 Salesforce 的远程端点建立 SSL/TLS 连接,报错显示证书无效。经分析,防火墙启用了 SSL Inspection,插入了私有 CA 签发的中间证书,导致 App Service 无法验证。解决方案包括禁用 SSL Inspection、设置 `WEBSITE_LOAD_ROOT_CERTIFICATES` 环境变量或临时禁用代码中的 SSL 验证(仅限测试环境)。
123 8
uni-app开发微信小程序的报错[渲染层错误]排查及解决
uni-app开发微信小程序的报错[渲染层错误]排查及解决
2106 7
Linux中yum、rpm、apt-get、wget的区别,yum、rpm、apt-get常用命令,CentOS、Ubuntu中安装wget
通过本文,我们详细了解了 `yum`、`rpm`、`apt-get`和 `wget`的区别、常用命令以及在CentOS和Ubuntu中安装 `wget`的方法。`yum`和 `apt-get`是高层次的包管理器,分别用于RPM系和Debian系发行版,能够自动解决依赖问题;而 `rpm`是低层次的包管理工具,适合处理单个包;`wget`则是一个功能强大的下载工具,适用于各种下载任务。在实际使用中,根据系统类型和任务需求选择合适的工具,可以大大提高工作效率和系统管理的便利性。
518 25
【Azure App Service】基于Linux创建的App Service是否可以主动升级内置的Nginx版本呢?
基于Linux创建的App Service是否可以主动升级内置的Nginx版本呢?Web App Linux 默认使用的 Nginx 版本是由平台预定义的,无法更改这个版本。
190 77
【Linux】另一种基于rpm安装yum的方式
通过本文的方法,您可以在离线环境中使用RPM包安装YUM并进行必要的配置。这种方法适用于无法直接访问互联网的服务器或需要严格控制软件源的环境。通过配置本地YUM仓库,确保了软件包的安装和更新可以顺利进行。希望本文能够为您在特定环境中部署YUM提供实用的指导。
764 0
|
9月前
|
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)).
151 2
linux异常一:feng 不在 sudoers 文件中,此事将被报告。yum提示Another app is currently holding the yum lock; waiting for
这篇文章介绍了在CentOS 7系统中安装Docker时遇到的两个常见问题及其解决方法:用户不在sudoers文件中导致权限不足,以及yum被锁定的问题。
158 2
linux异常一:feng 不在 sudoers 文件中,此事将被报告。yum提示Another app is currently holding the yum lock; waiting for
|
2月前
|
Linux命令拓展:为cp和mv添加进度显示
好了,就这样,让你的Linux复制体验充满乐趣吧!记住,每一个冷冰冰的命令背后,都有方法让它变得热情起来。
135 8

热门文章

最新文章

  • 1
    CentOS7 yum安装报错“Could not resolve host: mirrorlist.centos.org;"之解决办法(换源)
    5073
  • 2
    Linux中yum、rpm、apt-get、wget的区别,yum、rpm、apt-get常用命令,CentOS、Ubuntu中安装wget
    544
  • 3
    你需要在你的系统上安装`sqlmap`。这通常可以通过下载其源代码并编译,或者使用包管理器(如`apt`、`yum`或`pip`,但请注意,`pip`通常不直接提供`sqlmap`)来完成。
    280
  • 4
    【Linux】已解决:There are no enabled repos. Run “yum repolist all” to see the repos you have. You can en
    1817
  • 5
    Ngnix05---Ngnix安装方式介绍及源码安装的准备工作,Ngnix安装通过Ngnix源码安装和yum安装
    131
  • 6
    Ngnix07---通过yum安装Ngnix下 whereis ngnix可以查看Ngnix相关的一些目录,使用./nginx -y可以查看Ngnix版本及相关配置信息,使用 more CHANGES
    179
  • 7
    Ngnix09目录结构分析,使用tree工具可以Ngnix目录中以一个树的方式呈现出来,yum install -y tree,tail -f nginx/logs/access.log
    105
  • 8
    Linux部署实战前言,MySQL在CentOS安装【单机软件】,MySQL的安装需要root权限,yum install mysql,systemctl enable mysqld开机自启的意思
    653
  • 9
    IP地址和主机名,ifconfig查看本机的ip地址,无法用,yum -y install net-tools,输入ifconfig之后还会列明网卡,ens33表明的是网卡,inet ip地址,000
    189
  • 10
    Linux软件安装-Linux系统靠yum命令安装软件,yum命令是一个RPM包软件管理器,用于自动化安装配置Linux软件,.rpm是Linux包下的软件,yum install下载 wget re
    349
  • AI助理

    你好,我是AI助理

    可以解答问题、推荐解决方案等

    登录插画

    登录以查看您的控制台资源

    管理云资源
    状态一览
    快捷访问