[root@yq01-hadoop-bdl119 yum.repos.d]# yum install openssl-devel
Loaded plugins: fastestmirror
Repository epel is listed more than once in the configuration
Existing lock /var/run/yum.pid: another copy is running as pid 26570.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 25 M RSS (416 MB VSZ)
Started: Fri Apr 10 17:04:08 2020 - 18:46 ago
State : Traced/Stopped, pid: 26570
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 25 M RSS (416 MB VSZ)
Started: Fri Apr 10 17:04:08 2020 - 18:48 ago
State : Traced/Stopped, pid: 26570
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 25 M RSS (416 MB VSZ)
Started: Fri Apr 10 17:04:08 2020 - 18:50 ago
State : Traced/Stopped, pid: 26570
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
直接报错,yum是因为有别的应用正在使用,
ps aux | grep yum

果然是这样然后直接 kill -9 干掉再重新
yum clean all
yum makecache fast
就可用了如果kill不掉
还可以强制的关闭yum
#rm -f /var/run/yum.pid
然后就好使了,如有不到之处请多指教
本文详细介绍了当遇到YUM因为有别的应用正在使用而无法执行安装openssl-devel的情况时,如何通过kill命令结束冲突进程,清理YUM缓存,并重新创建缓存来解决问题。此外,还提供了当kill命令无法正常工作时的强制关闭YUM的方法。
516

被折叠的 条评论
为什么被折叠?



