[Linux/CENTOS]YUM提示: Another app is currently holding the yum lock; waiting for it to exit...
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...的更多相关文章
- yum提示Another app is currently holding the yum lock
使用yum grouplis列举系统中以组安装的包,结果提示: # yum grouplist Loaded plugins: fastestmirror, refresh-packagekit, s ...
- (转)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 ...
- 状态 :睡眠中,进程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命 ...
- yum提示another app is currently holding the yum lock;waiting for it to exit
Another app 解决方法:rm -rf /var/run/yum.pid 来强行解除锁定,然后你的yum就可以运行了
- 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 ...
- 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 ...
- 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 ...
- Another app is currently holding the yum lock解决方法
用yum安装包有时候会提示 ``` Another app is currently holding the yum lock; waiting for it to exit... The oth ...
- centos在yum install报错:Another app is currently holding the yum lock解决方法
centos在yum install报错:Another app is currently holding the yum lock,这个问题可能是很多的新手经常遇到问题,之前也有人问我,包括本人在刚 ...
- 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 ...
随机推荐
- 初步学习UE网络同步
UE 网络同步和框架介绍 为一个UE引擎的初学者基于现有知识储备和见识的限制下,对UE网络和游戏框架的粗鄙之见,文中多有错误敬请指出以较后文. 1.网络复制 不论是服务端还是客户端,代码都是一样的 ...
- cuda安装的问题
小学期老师给的文档,里面要加入这几个环境变量 他这排版有问题,我就去网上找了几个cuda环境变量的配置 保姆级的CUDA的下载安装使用,详细的环境变量配置,不仅仅让你能够安装,还会教你弄懂为什么要这样 ...
- C语言初级阶段7——指针1
C语言初级阶段7--指针1 地址与指针 1.地址:数据在内存中的存储位置编号,是一个常量. 2.指针:指针的本质就是地址. 指针变量的定义和声明 1.指针变量:存储的数据是地址. 2.定义方法:类型* ...
- idea 改变片段内相同变量的快捷键
在 win系统中 shift+F6 在 ios系统中Fn+shift+F6
- 使用Jquery的.css('border')在火狐不兼容
改成如下就可以兼容火狐.IE.谷歌(border-left-color.border-left-width等)
- jsp第6个作业—jdbc
UsersDao.java package a; import java.sql.Connection; import java.sql.PreparedStatement; import java. ...
- vue + vant 移动端适配
1. 设置动态根字号大小,/public/phone-adapt.js,在index.html中引入 (function (doc, win) { const docEl = win.document ...
- javaheima14
Java 日志框架 日志框架的概述 记录程序运行过程中的信息,并可以进行永久存储 以前记录日志的方式--输出语句 弊端 信息只能展示在控制台 不能将其记录到其他位置(文件,数据库) 想取消记录的信息需 ...
- Navicat 通过ssh链接远程数据库
首先需要下载一个Navicat数据库管理工具,有了Navicat工具需要完成一下步骤就可以实现本地链接远程数据库了 一.打开Navicat,点击连接按钮,找到MySQL并点击 二.点击"常规 ...
- UG二次开发-CAM-获取修改路径参数
项目中要获取路径参数,网上大多是C++的例子,而本项目是用C#写的,探索了下,记录下. 以获取某条路径的刀具号为例,其他参数依此类推. using System; using System.Colle ...