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
相关推荐
AlfredZhao7 小时前
Docker 容器时区不对,`timedatectl` 不存在怎么办?
linux·timezone
zzzzzz3102 天前
9K Star 炸裂开源!这个 C 语言写的代码知识图谱,把 Linux 内核索引压缩到了 3 分钟
linux·服务器·sql
XIAOHEZIcode2 天前
Linux系统鼠标偏移常见原因以及修复方案
linux·运维·游戏
A小辣椒3 天前
TShark:Wireshark CLI 功能
linux
A小辣椒4 天前
TShark:基础知识
linux
AlfredZhao4 天前
OCI 明明分配了 200G 系统盘,为什么 df 只看到 30G?
linux·oci
AlfredZhao4 天前
vi 删除指定范围的行,不用再反复按 dd
linux·vi
用户9718356334665 天前
银河麒麟 KY10 申威(SW64) 安装 nginx-1.16.1-2.p01.ky10.sw_64.rpm 详细步骤
linux
猪脚踏浪5 天前
linux 拷贝文件或目录到指定的位置
linux
大树885 天前
金刚石散热越强,管路越先见顶
大数据·运维·服务器·人工智能·ai