Centos Another app is currently holding the yum lock

yum命令用ctrl+z命令中断后,再运行yum时,出现:

Existinglock/var/run/yum.pid:anothercopyisrunningaspid3046.

Anotherappiscurrentlyholdingtheyumlock;waitingforittoexit...

Anotherappiscurrentlyholdingtheyumlock;waitingforittoexit...

Anotherappiscurrentlyholdingtheyumlock;waitingforittoexit...

Anotherappiscurrentlyholdingtheyumlock;waitingforittoexit...

Anotherappiscurrentlyholdingtheyumlock;waitingforittoexit...

NND,说我正在使用yum。输入

rm-f/var/run/yum.pid

/sbin/service yum-updatesd restart

Stopping yum-updatesd:                                     [ OK ]Starting yum-updatesd:                                     [ OK ]

好了,一切正常了

相关推荐