[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 ...
随机推荐
- CSS设置边距
1.内边距 所有的 HTML 元素基本都是以矩形为基础. 每个 HTML 元素周围的矩形空间由三个重要的属性来控制: padding(内边距) margin(外边距) border(边框 ...
- 【python】第二模块 步骤一 第三课、数据库的基本查询
第三课.数据库的基本查询 一.课程介绍 1.1 课程介绍 学习目标 数据的简单查询 无条件查询记录,字段的计算和字段的别名 数据的高级查询 数据排序.分页.去除重复记录 数据的有条件查询 条件表达式: ...
- Nacos 之 Distro 协议
1. 概述 Distro协议是阿里自研的一个最终一致性协议,继承了 Gossip 以及 Eureka 通信(PeerEurekaNodes)的优点并做进一步优化而出来的: 对于原生的Gossip,由于 ...
- linux 系统安装配置jdk + mysql + redis (离线状态)
系统版本:centos7.7 环境搭建(离线状态) 安装java环境 安装配置mysql数据库 安装配置redis数据库 安装java环境 jdk版本:jdk-8u5-linux-x64.rpm ...
- ybtoj 12F
求值的话改为求解前缀和的值,通过两个前缀和相减即可得到每个值. 每次询问相当于给一个方程. 一共有 $n$ 个未知数,因此需要 $n$ 个方程,同时每个数都必须至少在方程中出现一次. 最小生成树求解即 ...
- js字符串常用的方法
1. charAt( ) 获取指定下标处的字符 let str = 'hello' console.log(str.charAt(0));//h 2. charCodeAt 获取下标出的字符的Un ...
- windows-git-tagslist
windows平台使用 Git-bash + vim + Taglist + ctags + cscope 安装Git for win版 安装ctags for win版,目录添加到环境变量 下载 T ...
- mergehex tools安装
(1)nRF5x command line tools包括Jlink驱动以及Nordic自己开发的一些命令行工具,具体包括Jlink驱动,nrfjprog,nrfutil以及mergehex等. 下载 ...
- (瞎学系列)RISC-V & ARM & x86
reduced instruction set computing (RISC) -> ARM & RISC-V complex instruction set computing (C ...
- k8s中label和selector的基本概念以及使用方法
概述 在k8s中有一个非常核心的概念,就是label(标签),以及对label的使用,label selector label(标签) 定义: 标签这个概念和现实生活中的标签其实没有什么区别,如, ...