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

 

posted on 2022-12-07 14:59  Star*S  阅读(259)  评论(0)    收藏  举报