Linux

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

Naan 2017. 2. 21. 10:34
320x100

어느날 yum update 를 했더니 

]# yum update

Loaded plugins: fastestmirror, refresh-packagekit, security

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

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...


위와 같이 에러가 뜬다...

# ps -ef | grep yum

root      43229  43227  0  2015 ?        00:00:01 [yumBackend.py] <defunct>

root      51034  39451  0 10:31 pts/0    00:00:00 grep yum


# kill -9 43229

yum 을 죽이고 다시 실행했지만.


# yum update

Loaded plugins: fastestmirror, refresh-packagekit, security

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

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...


동일하다.

# cd /var/run/

# rm yum.pid

rm: remove regular file `yum.pid'? y

# yum update

Loaded plugins: fastestmirror, refresh-packagekit, security

Determining fastest mirrors

 * base: centos.mirror.cdnetworks.com

 * extras: centos.mirror.cdnetworks.com

 * updates: centos.mirror.cdnetworks.com

base                                                                                                   | 3.7 kB     00:00

base/primary_db                                                                                        | 4.7 MB     00:02

extras                                                                                                 | 3.4 kB     00:00

extras/primary_db                                                                                      |  37 kB     00:00

updates                                                                                                | 3.4 kB     00:00

updates/primary_db                                                                                     | 4.3 MB     00:01

Setting up Update Process

Resolving Dependencies

--> Running transaction check


하니 정상 작동이 된다.

320x100

'Linux' 카테고리의 다른 글

tar 1.26 upgrade for centos 5  (0) 2017.04.24
dmar drhd handling fault status reg 3  (0) 2017.03.30
mysql 5.7 이상 암호 복잡성 해지하기  (0) 2017.01.23
리눅스 메모리 슬롯 및 용량 확인 하기  (0) 2016.07.28
swap 늘리기  (0) 2016.07.15