Run YUM system hint existing Lock/var/run/yum.pid:another copy is running as PID

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.