yum进程被占用


 

使用yum安装软件的时候出现,/var/run/yum.pid 已被锁定,PID 为 6503 的另一个程序正在运行的问题

[root@localhost mysql]# yum install gcc gcc-c++ cmake ncurses-devel bison
已加载插件:fastestmirror, langpacks
/var/run/yum.pid 已被锁定,PID 为 6503 的另一个程序正在运行。
Another app is currently holding the yum lock; waiting for itto exit...
另一个应用程序是:PackageKit
内存: 31 M RSS (361 MB VSZ)
已启动: Sat Jun 22 14:39:13 2019 - 00:04之前
状态 :运行中,进程ID:6503
Another app is currently holding the yum lock; waiting for itto exit...
另一个应用程序是:PackageKit
内存: 46 M RSS (375 MB VSZ)
已启动: Sat Jun 22 14:39:13 2019 - 00:06之前
状态 :运行中,进程ID:6503

解决办法:

vim   /etc/yum/pluginconf.d/fastestmirror.conf

enabled=1 改为enabled=0

重启服务器

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM