Another app is currently holding the yum lock; waiting for it to exit...另一個應用程式在佔用yum lock,等待其退出。

九天高遠發表於2013-06-19

這種情況下通常是由於yum的時候意外退出造成的,雖然也給出提示當前佔用進行的id,但是執行kill -9 3599 強制殺死程式後,情況依然沒能改變。

備註:(-9是強制殺死)

主要原因是因為,yum lock被佔用,無法被其他yum操作獲得,這裡只需要刪除/var/run/yum.pid即可:

[root@lemon run]# ls
abrt                     console      gdm                    hive            plymouth        syslogd.pid             wpa_supplicant
abrtd.pid                ConsoleKit   hadoop-0.20-mapreduce  httpd           pm-utils        tpvmlpd.pid             wpa_supplicant.pid
acpid.pid                crond.pid    hadoop-hdfs            lvm             portreserve     tpvmlpd.stat            yum.pid
acpid.socket             cron.reboot  hadoop-httpfs          mdadm           ppp             udev-configure-printer  zookeeper
atd.pid                  cups         hadoop-mapreduce       messagebus.pid  saslauthd       udisks
auditd.pid               cupsd.pid    hadoop-yarn            netreport       sepermit        utmp
cloudera-scm-agent       dbus         hald                   net-snmp        setrans         vmblock-fuse
cloudera-scm-server      faillock     haldaemon.pid          NetworkManager  spice-vdagentd  vmtoolsd.pid
cloudera-scm-server.pid  flume-ng     hbase                  oozie           sshd.pid        winbindd
[root@lemon run]# rm -rf yum.pid 
[root@lemon run]# pwd

相關文章