OS환경 : Oracle Linux 7.4 (64bit)
DB 환경 : Oracle Database 19.3.0.0
에러 : Another app is currently holding the yum lock; waiting for it to exit...
오라클 리눅스에서 yum으로 패키지 설치시 설치가 지연되며 발생하는 메세지
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # yum -y localinstall oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm Loaded plugins: langpacks, ulninfo Existing lock /var/run/yum.pid: another copy is running as pid 10187. Another app is currently holding the yum lock; waiting for it to exit... The other application is: PackageKit Memory : 195 M RSS (615 MB VSZ) Started: Wed Apr 22 17:53:36 2020 - 01:00 ago State : Running, pid: 10187 Another app is currently holding the yum lock; waiting for it to exit... The other application is: PackageKit Memory : 195 M RSS (615 MB VSZ) Started: Wed Apr 22 17:53:36 2020 - 01:02 ago State : Running, pid: 10187 Another app is currently holding the yum lock; waiting for it to exit... The other application is: PackageKit Memory : 195 M RSS (615 MB VSZ) Started: Wed Apr 22 17:53:36 2020 - 01:04 ago State : Running, pid: 10187 |
해결 방법 : 새로운 세션을 열어서 /var/run/yum.pid 삭제
기존 세션 그대로 놔둔채로 새로운 세션 열어서 아래 파일 삭제
1 2 | # rm /var/run/yum.pid rm: remove regular file ??/var/run/yum.pid??? y |
기존 세션 확인
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | # /var/run/yum.pid 삭제 전 . . . Another app is currently holding the yum lock; waiting for it to exit... The other application is: PackageKit Memory : 200 M RSS (621 MB VSZ) Started: Wed Apr 22 17:53:36 2020 - 01:16 ago State : Running, pid: 10187 # /var/run/yum.pid 삭제 전 # /var/run/yum.pid 삭제 후 Examining oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm: oracle-database-preinstall-19c-1.0-1.el7.x86_64 Marking oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package oracle-database-preinstall-19c.x86_64 0:1.0-1.el7 will be installed --> Processing Dependency: ksh for package: oracle-database-preinstall-19c-1.0-1.el7.x86_64 --> Processing Dependency: libaio-devel for package: oracle-database-preinstall-19c-1.0-1.el7.x86_64 --> Running transaction check ---> Package ksh.x86_64 0:20120801-142.0.1.el7 will be installed ---> Package libaio-devel.x86_64 0:0.3.109-13.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================= Package Arch Version Repository Size ============================================================================================================================================================= Installing: oracle-database-preinstall-19c x86_64 1.0-1.el7 /oracle-database-preinstall-19c-1.0-1.el7.x86_64 55 k Installing for dependencies: ksh x86_64 20120801-142.0.1.el7 ol7_latest 882 k libaio-devel x86_64 0.3.109-13.el7 ol7_latest 12 k Transaction Summary ============================================================================================================================================================= Install 1 Package (+2 Dependent packages) Total size: 950 k Total download size: 894 k Installed size: 3.2 M Downloading packages: warning: /var/cache/yum/x86_64/7Server/ol7_latest/packages/libaio-devel-0.3.109-13.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEYETA Public key for libaio-devel-0.3.109-13.el7.x86_64.rpm is not installed (1/2): libaio-devel-0.3.109-13.el7.x86_64.rpm | 12 kB 00:00:00 (2/2): ksh-20120801-142.0.1.el7.x86_64.rpm | 882 kB 00:00:00 ------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 799 kB/s | 894 kB 00:00:01 Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle Importing GPG key 0xEC551F03: Userid : "Oracle OSS group (Open Source Software group) <build@oss.oracle.com>" Fingerprint: 4214 4123 fecf c55b 9086 313d 72f9 7b74 ec55 1f03 Package : 7:oraclelinux-release-7.6-1.0.15.el7.x86_64 (@anaconda/7.6) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : ksh-20120801-142.0.1.el7.x86_64 1/3 Installing : libaio-devel-0.3.109-13.el7.x86_64 2/3 Installing : oracle-database-preinstall-19c-1.0-1.el7.x86_64 3/3 Verifying : libaio-devel-0.3.109-13.el7.x86_64 1/3 Verifying : oracle-database-preinstall-19c-1.0-1.el7.x86_64 2/3 Verifying : ksh-20120801-142.0.1.el7.x86_64 3/3 Installed: oracle-database-preinstall-19c.x86_64 0:1.0-1.el7 Dependency Installed: ksh.x86_64 0:20120801-142.0.1.el7 libaio-devel.x86_64 0:0.3.109-13.el7 Complete! |
정상적으로 패키지가 설치됨
원인 : 다른 프로세스가 yum을 사용중이어서 lock 가 걸려 발생한 문제
기존에 실행중인 yum 프로세스를 ps -ef | yum으로 찾아서 kill 하거나
위 방법을 이용하면 정상적으로 설치됨
참조 :
'Linux, Unix > Trouble Shooting' 카테고리의 다른 글
E: Package 'python' has no installation candidate (2) | 2020.06.03 |
---|---|
-bash: /bin/rm: Argument list too long (2) | 2020.04.24 |
/usr/bin/xauth: file /root/.Xauthority does not exist (0) | 2020.03.22 |
/bin/sh^M: bad interpreter: No such file or directory (0) | 2020.03.14 |
configure: error: *** A compiler with support for C++11 language features is required. (0) | 2019.10.27 |