yum install报错:Another app is currently holding the yum lock

分类:CentOS运维 阅读:5370 次

在CentOS上yum -y install gcc* gcc-c++* autoconf* automake* zlib* libxml* ncurses-devel* libmcrypt* libtool*时出现错误:
yum install报错:Another app is currently holding the yum lock
1)怎么回事呢?根据提示,原来是系统进程已经有一个update在运行了。在进程里查看下:ps -ef | grep update
yum install报错:Another app is currently holding the yum lock
2)通过kill杀掉这个进程,可杀掉之后,错误依旧。原来在/var/run目录下,还有yum这个进程ID,需要将这个进程id文件强制删除掉:
yum install报错:Another app is currently holding the yum lock
3)同时重启下yum更新服务,如下:
yum install报错:Another app is currently holding the yum lock
4)最后重新yum -y install gcc* gcc-c++* autoconf* automake* zlib* libxml* ncurses-devel* libmcrypt* libtool* ,已正常
yum install报错:Another app is currently holding the yum lock