DEV Community

Cover image for ERROR: Existing lock /var/run/yum.pid: another copy is running as pid <PID>
Yuvarajan Johnpaul
Yuvarajan Johnpaul

Posted on • Edited on

1

ERROR: Existing lock /var/run/yum.pid: another copy is running as pid <PID>

Existing lock /var/run/yum.pid: another copy is running as pid .
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum-cron
Memory : 23 M *** (418 MB ***)
Started: Wed Apr 29 2020 - 12:41 ago
State : Sleeping, pid:

Solution:

$ yum list

[root@user bin]# yum list
Failed to set locale, defaulting to C
Existing lock /var/run/yum.pid: another copy is running as pid .
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum-cron
Memory : 23 M *** (418 MB ***)
Started: Wed Apr 29 2020 - 13:21 ago
State : Sleeping, pid:

Identify the PID from the above output.
State : Sleeping, pid:

Now, Kill if it is a stale process to resolve this issue.
$ kill -9

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay