Run yum, system hint existing lock/var/run/yum.pid:another copy is running as PID 3046
Problem Description: After logging into the system, execute yum install VSFTPD, prompting existing Lock/var/run/yum.pid:another copy is running as PID 5048. Sometimes wait 5-10 minutes for Yum to work.
Problem Analysis: The main reason is that Yum is automatically updated, so running Yum will report this error.
Problem solving: Just turn off the Yum update that is being executed, stop the Yum process that is running, or disable the start of the Yum process automatically.
Operation Steps:
Stop the Yum process
[Email protected] ~]# rm-f/var/run/yum.pid
Why is there a yum process executing?
The Yum Automatic update mechanism automatically activates the Yum process and stops Automatic Updates with the following command:
[[email protected] ~]#/etc/init.d/yum-updatesd stop
Stop yum-updatesd: [OK]
If we do not need to update the service automatically, you can delete it directly.
#yum Remove Yum-updatesd
However, after the service is removed, subsequent updates will be done manually with the following command.
#yum Update
Run YUM system hint existing Lock/var/run/yum.pid:another copy is running as PID