Transferred from: http://blog.csdn.net/testcs_dn/article/details/48711805
Using Yum to install the Scheduled Tasks feature, the results are prompt:
# yum-y Install vixie-cronloaded plugins:fastestmirror, Refresh-packagekit, securityexisting Lock/var/run/yum.pid:ano Ther copy is running as PID 25960.Another app is currently holding the Yum lock; Waiting for it to exit ...
It may be that the system is automatically upgraded and Yum is in a locked state.
There is already a Yum process running, kill it with Kill:
# kill-s 9 25960# PS aux|grep yumroot 6744 0.0 0.0 103260 pts/1 s+ 14:59 0:00 grep YUMRO OT 25960 0.0 0.0 0 0? Z Sep19 0:01 [yumbackend.py] <defunct
I'm sorry, kill can't deal with it.
You can disable the Yum process by forcing:
#rm-F/var/run/yum.pid
Then you can use Yum.
Yum hint Another app is currently holding the Yum lock; Waiting for it to exit ...