首页 > 系统相关 >centos虚拟机yum update报错Another app is currently holding the yum lock; waiting for it to exit...

centos虚拟机yum update报错Another app is currently holding the yum lock; waiting for it to exit...

时间:2022-12-07 15:12:59浏览次数:50  
标签:95864 虚拟机 update 报错 yum root localhost

1、运行yum update报错

[root@localhost ~]# yum update
已加载插件:fastestmirror, langpacks
/var/run/yum.pid 已被锁定,PID 为 95864 的另一个程序正在运行。
Another app is currently holding the yum lock; waiting for it to exit...
  另一个应用程序是:PackageKit
    内存: 31 M RSS (451 MB VSZ)
    已启动: Wed Dec  7 14:50:09 2022 - 01:53之前
    状态  :睡眠中,进程ID:95864


2、原因是进程被占用,结束进程
[root@localhost ~]# ps aux | grep yum
root      95864  0.6  0.8 461552 31316 ?        SN   14:50   0:01 /usr/bin/python /usr/share/PackageKit/helpers/yum/yumBackend.py get-updates none
root      96192  0.0  0.0 112824   988 pts/2    S+   14:53   0:00 grep --color=auto yum

[root@localhost ~]# kill 95864

3、使用yum update更新成功

[root@localhost ~]# yum update
已加载插件:fastestmirror, langpacks
Determining fastest mirrors
 * epel: ftp.riken.jp
updates/7/x86_64/primary_db                                                                           92% [====================================================================================-       ] 1.4 kB/s |  17 MB  00:16:48 ETA

 

标签:95864,虚拟机,update,报错,yum,root,localhost
From: https://www.cnblogs.com/path602/p/16963103.html

相关文章