在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

转载于:https://blog.51cto.com/300second/767194

相关文章:

  • 2021-07-07
  • 2021-09-02
  • 2022-01-23
  • 2022-12-23
猜你喜欢
  • 2022-02-17
  • 2021-12-20
  • 2021-11-15
  • 2021-05-27
  • 2021-07-01
  • 2021-05-22
相关资源
相似解决方案