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

解决方法:

复制代码
rm -f /var/run/yum.pid

再重新运行yum

原因:可能是系统自动升级正在运行,yum在锁定状态中,要等待那个进程结束退出:

复制代码
  另一个应用程序是:PackageKit
    内存: 29 M RSS (445 MB VSZ)
    已启动: Wed Nov 15 13:55:28 2023 - 00:24之前
    状态  :睡眠中,进程ID:6830
Another app is currently holding the yum lock; waiting for it to exit...

可以看一下是否有yum进程:

复制代码
ps aux|grep yum

localhost lms]# ps aux|grep yum
root      66282  0.0  0.0 112824   988 pts/0    S+   14:26   0:00 grep --color=auto yum
相关推荐
石像鬼₧魂石2 小时前
内网渗透靶场实操清单(基于 Vulhub+Metasploitable 2)
linux·windows·学习·ubuntu
Danileaf_Guo2 小时前
256台H100服务器算力中心的带外管理网络建设方案
运维·服务器
橘子真甜~3 小时前
C/C++ Linux网络编程15 - 网络层IP协议
linux·网络·c++·网络协议·tcp/ip·计算机网络·网络层
拾贰_C4 小时前
【Linux | Windows | Terminal Command】 Linux---grep | Windows--- findstr
linux·运维·服务器
阿华hhh5 小时前
Linux系统编程(标准io)
linux·开发语言·c++
石像鬼₧魂石5 小时前
Kali Linux 网络端口深度扫描
linux·运维·网络
alengan5 小时前
linux上面写python3日志服务器
linux·运维·服务器
Rose sait6 小时前
【环境配置】Linux配置虚拟环境pytorch
linux·人工智能·python
小卒过河01047 小时前
使用apache nifi 从数据库文件表路径拉取远程文件至远程服务器目的地址
运维·服务器·数据库