yum只能支持一个例程运行,所以如果有一个例程已经在运行,其他的必须等待该进程退出释放lock。出现这种情况时,可以用以下命令来恢复:
rm -f /var/run/yum.pid
[root@zymh ~]# yum -y remove java-1.7.0-openjdk-1.7.0.141-2.6.10.5.el7.x86_64
Loaded plugins: fastestmirror, langpacks
Repository base is listed more than once in the configuration
Existing lock /var/run/yum.pid: another copy is running as pid 1968.
Another app is currently holding the yum lock; waiting for it to exit…
The other application is: yum
Memory : 28 M RSS (332 MB VSZ)
Started: Fri Jan 26 09:05:28 2018 – 00:38 ago
State : Sleeping, pid: 1968
Another app is currently holding the yum lock; waiting for it to exit…
The other application is: yum
Memory : 28 M RSS (332 MB VSZ)
Started: Fri Jan 26 09:05:28 2018 – 00:40 ago
State : Sleeping, pid: 1968
Another app is currently holding the yum lock; waiting for it to exit…
The other application is: yum
Memory : 28 M RSS (332 MB VSZ)
Started: Fri Jan 26 09:05:28 2018 – 00:42 ago
State : Sleeping, pid: 1968
Another app is currently holding the yum lock; waiting for it to exit…
The other application is: yum
Memory : 28 M RSS (332 MB VSZ)
Started: Fri Jan 26 09:05:28 2018 – 00:44 ago
State : Sleeping, pid: 1968
[root@zymh ~]# yum -y remove java-1.8.0-openjdk-1.8.0.161-0.b14.el7_4.x86_64
Loaded plugins: fastestmirror, langpacks
Repository base is listed more than once in the configuration
Resolving Dependencies
–> Running transaction check
—> Package java-1.8.0-openjdk.x86_64 1:1.8.0.161-0.b14.el7_4 will be erased
–> Processing Dependency: java-1.8.0-openjdk for package: icedtea-web-1.6.2-4.el7.x86_64
–> Running transaction check
—> Package icedtea-web.x86_64 0:1.6.2-4.el7 will be erased
–> Finished Dependency Resolution
file:///mnt/cdrom/repodata/repomd.xml: [Errno 14] curl#37 – “Couldn’t open file /mnt/cdrom/repodata/repomd.xml”
Trying other mirror.
Dependencies Resolved
====================================================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================================================
Removing:
java-1.8.0-openjdk x86_64 1:1.8.0.161-0.b14.el7_4 @updates 501 k
Removing for dependencies:
icedtea-web x86_64 1.6.2-4.el7 @anaconda 2.1 M
Transaction Summary
====================================================================================================================================================================
Remove 1 Package (+1 Dependent package)
Installed size: 2.6 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : icedtea-web-1.6.2-4.el7.x86_64 1/2
Erasing : 1:java-1.8.0-openjdk-1.8.0.161-0.b14.el7_4.x86_64 2/2
Verifying : 1:java-1.8.0-openjdk-1.8.0.161-0.b14.el7_4.x86_64 1/2
Verifying : icedtea-web-1.6.2-4.el7.x86_64 2/2
Removed:
java-1.8.0-openjdk.x86_64 1:1.8.0.161-0.b14.el7_4
Dependency Removed:
icedtea-web.x86_64 0:1.6.2-4.el7
Complete!
以下文章点击率最高
Loading…