/var/run/yum.pid 已被锁定,PID 为 XXXXX 的另一个程序正在运行。

前端之家收集整理的这篇文章主要介绍了/var/run/yum.pid 已被锁定,PID 为 XXXXX 的另一个程序正在运行。前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

删除jdk时终端提示@H_502_10@

/var/run/yum.pid已被锁定,PID 为 XXXXX 的另一个程序正在运行@H_502_10@

@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@

状态 :跟踪/停止,进程ID36637@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@

状态 :跟踪/停止,进程ID36637@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@

状态 :跟踪/停止,进程ID36637@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@

状态 :跟踪/停止,进程ID36637@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@

状态 :跟踪/停止,进程ID36637@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@

成功!@H_502_10@

猜你在找的Bash相关文章