/var/run/yum.pid已被锁定,PID 为 XXXXX 的另一个程序正在运行@H_502_10@
@H_502_10@
直接在终端运行 rm -f/var/run/yum.pid 将该文件删除,然后再次运行yum@H_502_10@
@H_502_10@
@H_502_10@
@H_502_10@
@H_502_10@
问题再现:
@H_502_10@
@H_502_10@
@H_502_10@
@H_502_10@
@H_502_10@
@H_502_10@
[root@localhostzjy]# yum -y remove java-1.8.0-openjdk-headless-1.8.0.65-3.b17.el7.x86_64 @H_502_10@
已加载插件:langpacks,product-id,search-disabled-repos,subscription-manager@H_502_10@
This system is notregistered to Red Hat Subscription Management. You can use subscription-managerto register.@H_502_10@
/var/run/yum.pid 已被锁定,PID 为 36637 的另一个程序正在运行。@H_502_10@
Another app iscurrently holding the yum lock; waiting for it to exit...@H_502_10@
另一个应用程序是:yum@H_502_10@
内存: 80 M RSS (441 MB VSZ)@H_502_10@
已启动: Sun Jan 7 19:29:40 2018 -02:55之前@H_502_10@
状态 :跟踪/停止,进程ID:36637@H_502_10@
Another app iscurrently holding the yum lock; waiting for it to exit...@H_502_10@
另一个应用程序是:yum@H_502_10@
内存: 80 M RSS (441 MB VSZ)@H_502_10@
已启动: Sun Jan 7 19:29:40 2018 -02:57之前@H_502_10@
状态 :跟踪/停止,进程ID:36637@H_502_10@
Another app iscurrently holding the yum lock; waiting for it to exit...@H_502_10@
另一个应用程序是:yum@H_502_10@
内存: 80 M RSS (441 MB VSZ)@H_502_10@
已启动: Sun Jan 7 19:29:40 2018 -02:59之前@H_502_10@
状态 :跟踪/停止,进程ID:36637@H_502_10@
Another app iscurrently holding the yum lock; waiting for it to exit...@H_502_10@
另一个应用程序是:yum@H_502_10@
内存: 80 M RSS (441 MB VSZ)@H_502_10@
已启动: Sun Jan 7 19:29:40 2018 -03:01之前@H_502_10@
状态 :跟踪/停止,进程ID:36637@H_502_10@
Another app iscurrently holding the yum lock; waiting for it to exit...@H_502_10@
另一个应用程序是:yum@H_502_10@
内存: 80 M RSS (441 MB VSZ)@H_502_10@
已启动: Sun Jan 7 19:29:40 2018 -03:03之前@H_502_10@
状态 :跟踪/停止,进程ID:36637@H_502_10@
^Z@H_502_10@
@H_502_10@
@H_502_10@
@H_502_10@
@H_502_10@
@H_502_10@
成功!@H_502_10@