yum command returns error "Existing lock /var/run/yum.pid"

Solution Unverified - Updated -

Issue

  • After registering system with RHN Classic, yum commands return the following error:
    # yum install yum-downloadonly
    Loading "security" plugin
    Loading "rhnplugin" plugin
    There was an error communicating with RHN.
    RHN support will be disabled.
    Error communicating with server. The message was:
    Temporary failure in name resolution
    Existing lock /var/run/yum.pid: another copy is running as pid 7604.
    Another app is currently holding the yum lock; waiting for it to exit...
    Another app is currently holding the yum lock; waiting for it to exit...
    Another app is currently holding the yum lock; waiting for it to exit...
    Another app is currently holding the yum lock; waiting for it to exit...
    Another app is currently holding the yum lock; waiting for it to exit...
    Another app is currently holding the yum lock; waiting for it to exit...
    Another app is currently holding the yum lock; waiting for it to exit...
    Another app is currently holding the yum lock; waiting for it to exit...
    Another app is currently holding the yum lock; waiting for it to exit...
    Another app is currently holding the yum lock; waiting for it to exit...
    ......

Environment

  • Red Hat Enterprise Linux 5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.