DEV Community

loading...
Cover image for ERROR: Existing lock /var/run/yum.pid: another copy is running as pid

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

yuvarajan_johnpaul profile image Yuvarajan Johnpaul Updated on ・1 min read

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

Discussion (0)

pic
Editor guide