/var/run/yum.pid 已被锁定,PID 为 XXXXX 的另一个程序正在运行
删除jdk时终端提示 /var/run/yum.pid已被锁定,PID 为 XXXXX 的另一个程序正在运行
解决方法: 直接在终端运行 rm -f/var/run/yum.pid 将该文件删除,然后再次运行yum 问题再现: [root@localhostzjy]# yum -y remove java-1.8.0-openjdk-headless-1.8.0.65-3.b17.el7.x86_64 已加载插件:langpacks,product-id,search-disabled-repos,subscription-manager This system is notregistered to Red Hat Subscription Management. You can use subscription-managerto register. /var/run/yum.pid 已被锁定,PID 为 36637 的另一个程序正在运行。 Another app iscurrently holding the yum lock; waiting for it to exit... 另一个应用程序是:yum 内存: 80 M RSS (441 MB VSZ) 已启动: Sun Jan 7 19:29:40 2018 -02:55之前 状态 :跟踪/停止,进程ID:36637 Another app iscurrently holding the yum lock; waiting for it to exit... 另一个应用程序是:yum 内存: 80 M RSS (441 MB VSZ) 已启动: Sun Jan 7 19:29:40 2018 -02:57之前 状态 :跟踪/停止,进程ID:36637 Another app iscurrently holding the yum lock; waiting for it to exit... 另一个应用程序是:yum 内存: 80 M RSS (441 MB VSZ) 已启动: Sun Jan 7 19:29:40 2018 -02:59之前 状态 :跟踪/停止,进程ID:36637 Another app iscurrently holding the yum lock; waiting for it to exit... 另一个应用程序是:yum 内存: 80 M RSS (441 MB VSZ) 已启动: Sun Jan 7 19:29:40 2018 -03:01之前 状态 :跟踪/停止,进程ID:36637 Another app iscurrently holding the yum lock; waiting for it to exit... 另一个应用程序是:yum 内存: 80 M RSS (441 MB VSZ) 已启动: Sun Jan 7 19:29:40 2018 -03:03之前 状态 :跟踪/停止,进程ID:36637 ^Z
解决后: 成功! (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |