1 问题描述

使用yum安装Nginx的安装依赖组件:

yum -y install gcc gcc-c++ automake autoconf libtool make

但是,在执行过程中出现如下信息:

[root@localhost software]# yum -y install gcc gcc-c++ automake autoconf libtool make
Loaded plugins: fastestmirror, langpacks
Existing lock /var/run/yum.pid: another copy is running as pid 3289.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 133 M RSS (551 MB VSZ)
Started: Wed Jun 16 09:22:32 2021 - 08:27 ago
State : Sleeping, pid: 3289
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 133 M RSS (551 MB VSZ)
Started: Wed Jun 16 09:22:32 2021 - 08:29 ago
State : Sleeping, pid: 3289
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 133 M RSS (551 MB VSZ)
Started: Wed Jun 16 09:22:32 2021 - 08:31 ago
State : Sleeping, pid: 3289
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 133 M RSS (551 MB VSZ)
Started: Wed Jun 16 09:22:32 2021 - 08:33 ago
State : Sleeping, pid: 3289
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 133 M RSS (551 MB VSZ)
Started: Wed Jun 16 09:22:32 2021 - 08:35 ago
State : Sleeping, pid: 3289
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 133 M RSS (551 MB VSZ)
Started: Wed Jun 16 09:22:32 2021 - 08:37 ago
State : Sleeping, pid: 3289
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 133 M RSS (551 MB VSZ)
Started: Wed Jun 16 09:22:32 2021 - 08:39 ago
...

2 现象分析

[root@localhost software]# netstat -lntp | grep -i 3289
[root@localhost software]# ll /proc/3289 | grep -i CWD
lrwxrwxrwx. 1 root root 0 Jun 16 09:34 cwd -> /
[root@localhost software]# ps -ef | grep -i 3289
root 3289 2040 2 09:22 ? 00:00:17 /usr/bin/python /usr/share/PackageKit/helpers/yum/yumBackend.py get-updates none
root 3721 3289 3 09:33 ? 00:00:02 /usr/bin/python /usr/libexec/urlgrabber-ext-down
root 3736 3508 0 09:34 pts/1 00:00:00 grep --color=auto -i 3289

3 解决方法

  • 方法1: kill掉该yum进程
[root@localhost software]# kill -9 <pid>

  • 方法2:通过强制关掉yum进程
rm -f /var/run/yum.pid

然后,就可以重新使用yum了。

X 参考文献

[Linux/CENTOS]YUM提示: Another app is currently holding the yum lock; waiting for it to exit...的更多相关文章

  1. yum提示Another app is currently holding the yum lock

    使用yum grouplis列举系统中以组安装的包,结果提示: # yum grouplist Loaded plugins: fastestmirror, refresh-packagekit, s ...

  2. (转)yum提示Another app is currently holding the yum lock; waiting for it to exit...

    文章转自 yum 下载东西突然卡主了,我直接ctrl+c退出,然后再次下载时候出现 Another app is currently holding the yum lock; waiting for ...

  3. 状态 :睡眠中,进程ID:13431,yum提示Another app is currently holding the yum lock; waiting for it to exit...

    问题描述: 今天想在虚拟机上重新安装docker然后使用到yum命令报错: 解决办法: [root@localhost ~]# rm -f /var/run/yum.pid 然后重新运行刚才的yum命 ...

  4. yum提示another app is currently holding the yum lock;waiting for it to exit

    Another app 解决方法:rm -rf /var/run/yum.pid 来强行解除锁定,然后你的yum就可以运行了

  5. yum安装提示Another app is currently holding the yum lock; waiting for it to exit...

    在Linux系统中使用yum安装软件时,提示yum处于锁定状态 Another app is currently holding the yum lock; waiting for it to exi ...

  6. centos 解决:Another app is currently holding the yum lock; waiting for it to exit

    centos执行yum时出现错误: Loaded plugins: fastestmirror, refresh-packagekit, security Existing lock /var/run ...

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

    Another app is currently holding the yum lock; waiting for it to exit... The other application is: P ...

  8. Another app is currently holding the yum lock解决方法

    用yum安装包有时候会提示 ``` Another app is currently holding the yum lock; waiting for it to exit...   The oth ...

  9. centos在yum install报错:Another app is currently holding the yum lock解决方法

    centos在yum install报错:Another app is currently holding the yum lock,这个问题可能是很多的新手经常遇到问题,之前也有人问我,包括本人在刚 ...

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

    Another app is currently holding the yum lock; waiting for it to exit... 另一个应用程序是:PackageKit 内存: 27 ...

随机推荐

  1. solidworks卸载方法,怎么完全彻底卸载删除清理干净solidworks各种残留注册表和文件?

    标题:solidworks重新安装方法,利用卸载清理工具完全彻底排查删除干净solidworks各种残留注册表和文件.solidworks显示已安装或者报错出现提示安装未完成某些产品无法安装的问题,怎 ...

  2. ps2022(Photoshop 2022)Mac/win最新图像处理中文版

    Adobe Photoshop 2022 Mac/win是数字图像处理和编辑的行业标准,提供了全面的专业修饰工具包,并具有旨在激发灵感的强大编辑功能.Photoshop 带有大量图像处理工具,旨在帮助 ...

  3. 社团管理系统(AMS)个人总结

    一.展示 所在小组:13组 源代码链接:https://github.com/xupppp/ams 博文链接: https://www.cnblogs.com/xupppp/p/11795218.ht ...

  4. api进阶Day1文件的创建、删除、访问、设置过滤器并查询。目录的删除、创建。

    文件的创建: package file; import java.io.File; import java.io.IOException; /* create:创建 new:新 file:文件 使用F ...

  5. window监听节点改变的接口

    监听页面某个元素的属性变化 window.MutationObserver(callback) Mutation Observer API 用来监视 DOM 变动.比如节点的增减.属性的变动.文本内容 ...

  6. MMDetection中模型的Checkpoints下载

    mmdetection中的模型checkpoints是需要自己手动下载的,下载步骤如下: 打开mmdetection, 进入configs目录,可以看到这里面有很多以目标检测模型命名的文件夹,选择你想 ...

  7. 转 oracle 无法使用sys用户登录 connection as SYS should be as SYSDBA OR SYSOPER

    转自:  https://blog.csdn.net/u012004128/article/details/80781979 安装Oracle11g后,为了测试安装是否成功,通过cmd命令打开了sql ...

  8. requests使用socks代理

    requests在2.10.0版本开始支持socks代理 自己搭了个服务器所以就想顺便用一下. import requests url = 'xxx' my_proxies={"http&q ...

  9. jxg项目Day1-配置

    1.搭建mysql与datagrip的连接(还未完成建表学习) 2.搭好项目框架:目前划分: maven我是直接复制的之前的两个项目的依赖,但是测试的时候遇到点问题:说数据库连不上,但是我明明已经配置 ...

  10. C# EF框架的入门使用

    如何构建数据模型 新建项 ADO.NET 实体模型 设置链接 链接字符串需要选择"是,包含敏感数据 注意:EF的框架引用的表应该要存在主键,程序引用中要包含 using System.Dat ...