본문 바로가기

IT tech/Trouble Shooting

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

반응형
SMALL

환경: Centos 7

 

yum 명령 실행 중 잠깐 다른 작업을 하다가 돌아왔더니 원격접속이 끊겨있어 다시 접속했다가 이런 에러가 발생했다.

# yum install mariadb
Loaded plugins: fastestmirror
Existing lock /var/run/yum.pid: another copy is running as pid 5195.
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  95 M RSS (495 MB VSZ)
    Started: Tue May 16 10:39:56 2023 - 1:08:38 ago
    State  : Sleeping, pid: 5195
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  95 M RSS (495 MB VSZ)
    Started: Tue May 16 10:39:56 2023 - 1:08:40 ago
    State  : Sleeping, pid: 5195

 

Another app 부터 맨 마지막줄의 State 까지의 문단이 반복적으로 나타나면서 yum 명령이 정상적으로 실행되지 않는다.

 

해결방법은 간단하다.

# rm -rf /var/run/yum.pid

 

위 명령만 실행해주면 yum명령이 정상적으로 실행된다.

 

 

.

.

.

참고로 서치 중 yum 프로세스를 죽이는 방법도 가능하다고 나와있길래 해봤는데, 딱히 에러 해결이 되지 않았다...

그래도 혹시 모르니 아래 방법도 한번 시도해보시라. 

# ps -ef | grep yum 

# kill -9 yum

 

 

 

 

반응형
LIST