Linux

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

Naan 2013. 6. 20. 21:30
반응형

#yum update

Loaded plugins: fastestmirror

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

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: system-install-

    Memory :  64 M RSS (414 MB VSZ)

    Started: Thu Jun 20 21:16:14 2013 - 05:31 ago

    State  : Sleeping, pid: 4602

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: system-install-

    Memory :  64 M RSS (414 MB VSZ)

    Started: Thu Jun 20 21:16:14 2013 - 05:33 ago

    State  : Sleeping, pid: 4602

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: system-install-

    Memory :  64 M RSS (414 MB VSZ)

    Started: Thu Jun 20 21:16:14 2013 - 05:35 ago

    State  : Sleeping, pid: 4602

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: system-install-

    Memory :  64 M RSS (414 MB VSZ)

    Started: Thu Jun 20 21:16:14 2013 - 05:37 ago

    State  : Sleeping, pid: 4602

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: system-install-

    Memory :  64 M RSS (414 MB VSZ)

    Started: Thu Jun 20 21:16:14 2013 - 05:39 ago

    State  : Sleeping, pid: 4602


위와 같이 에러가 뜬다면
#ps -ax | grep yum
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
 4742 pts/1    SN     0:00 /usr/bin/python -tt /usr/sbin/yum-updatesd
 4749 pts/1    S+     0:00 grep yum
#kill -9 4742 
#service yum-updatesd restart

그래도 안된다면!!
#rm /var/run/yum.pid
rm: remove regular file `/var/run/yum.pid'? y
#yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
addons                                                                      | 1.9 kB     00:00
base                                                                        | 1.1 kB     00:00
extras                                                                      | 2.1 kB     00:00
updates                                                                     | 1.9 kB     00:00
Setting up Update Process
~~~~~~~~~~~~~~~~~

정상적으로 된다.




반응형