歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> yum install報錯:Another app is currently holding the yum lock

yum install報錯:Another app is currently holding the yum lock

日期:2017/3/1 17:21:26   编辑:關於Linux

在CentOS上yum -y install gcc* gcc-c++* autoconf* automake* zlib* libxml* ncurses-devel* libmcrypt* libtool*時出現錯誤:
\
1)怎麼回事呢?根據提示,原來是系統進程已經有一個update在運行了。在進程裡查看下:ps -ef | grep update
\
2)通過kill殺掉這個進程,可殺掉之後,錯誤依舊。原來在/var/run目錄下,還有yum這個進程ID,需要將這個進程id文件強制刪除掉:
\
3)同時重啟下yum更新服務,如下:
\
4)最後重新yum -y install gcc* gcc-c++* autoconf* automake* zlib* libxml* ncurses-devel* libmcrypt* libtool* ,已正常
\

本文出自300second的蝸居博客

Copyright © Linux教程網 All Rights Reserved