Linux

yum lock Error 해결방법

Daniel007 2020. 3. 2. 22:03
[root@localhost ~]# yum install convmv
Loaded plugins: fastestmirror, langpacks
Existing lock /var/run/yum.pid: another copy is running as pid 11273.
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory : 302 M RSS (1.4 GB VSZ)
    Started: Mon Mar  2 07:36:40 2020 - 08:57 ago
    State  : Sleeping, pid: 11273

다른 인스턴스에서 yum 이 실행중이기 때문에 나는 오류
yum process를 담고 있는 파일을 삭제 하면 해결이 된다.

[root@localhost ~]# rm -rf /var/run/yum.pid
[root@localhost ~]# yum install convmv
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: data.aonenetworks.kr
 * centos-sclo-rh: data.aonenetworks.kr
 * centos-sclo-sclo: data.aonenetworks.kr
 * epel: mirror2.totbb.net
 * extras: data.aonenetworks.kr
 * ius: muug.ca
 * updates: data.aonenetworks.kr