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. JAVA基础Day1-注释/标识符和关键字/数据类型/类型转换/变量、常量、作用域

    目录 一.注释 二.标识符和关键字 标识符命名需要注意: 三.数据类型 基本数据类型: 拓展: 定义时需要注意: 四.类型转换 字节 五.变量.常量.作用域 变量 变量命名规范 变量作用域 常量 一. ...

  2. 免费Linux RDP,用来练习linux或者Python,还能做成远程桌面

        分类:资源| 阅读:1103次阅读 goorm提供了免费的Linux容器,用它来在线练习命令行是非常不错的. 它的注册非常简单:https://ide.goorm.io/ 直接用谷歌账号登录即 ...

  3. 如何找到并使用makecert.exe

    如果安装visual studio 后,visual studio command  仍然无法识别 makecert.exe 命令. 则需要手动安装 Windows Software Developm ...

  4. 去除input框相关样式,只显示内容

    <input /> css代码: .edit-input{ /* width: 20px; */ height: -webkit-fill-available; background: i ...

  5. 字典方法 setdefault()、pprint;迭代、递归的区别

    计算一个字符串中每个字符出现的次数 import pprint message = 'It was a bright cold day in April, ' \ 'and the clocks we ...

  6. jsp第7个作业

      MailService package mail.service; import java.util.List; import mail.dao.DaoFactory; import mail.d ...

  7. 求小于N的最大素数

    问题 求小于N的最大素数 分析 枚举:从可能的集合中一一列举各元素 枚举过程中需要考虑的问题: 给出解空间 减少搜索的空间 采用合适的搜索顺序 枚举关键字(枚举核心):减少规模 代码实现 1 impo ...

  8. 测试--MD5--加密

    CREATE TABLE `test`.`testmd5` ( `id` INT ( 4 ) NOT NULL, `name` VARCHAR ( 20 ) NOT NULL, `pwd` VARCH ...

  9. Q:Win10无法访问共享文件夹。提示此用户无法登录,因为该账户当前已被禁用

    问题:当我访问同事电脑共享文件夹时,弹出如下提示框: 可以在命令提示符上ping通对方主机,但是不能访问对方文件夹 尝试解决方法(无效): 1.同时按住win+r打开运行命令框,输入gpedit.ms ...

  10. 前端复习之css

    1.css概述 1 1.CSS3概述 2 1.问题 3 1.设置页面中所有的文本颜色为红色 4 2.设置页面中所有div的文本的颜色为蓝色 5 3.将所有的div的文本的颜色改为黄色 6 7 HTML ...