位置: 编程技术 - 正文
推荐整理分享linux中yum update被占用(Another app is currently holding the yum lock)的解决办法(linux updatedb),希望有所帮助,仅作参考,欢迎阅读内容。
文章相关热门搜索词:linux update grub,linux updatedb,linux upgrade,linux update grub,linux yum update,linux中update命令,linux yum update,linux updatedb,内容如对您有帮助,希望把文章链接给更多的朋友!
使用yum安装计划任务功能,结果提示:复制代码代码如下:# yum -y install vixie-cronLoaded plugins: fastestmirror, refresh-packagekit, securityExisting lock /var/run/yum.pid: another copy is running as pid <font color="#ff"></font>.Another app is currently holding the yum lock; waiting for it to exit...可能是系统自动升级正在运行,yum在锁定状态中。 已经有一个yum进程在运行了,使用kill干掉它:复制代码代码如下:# kill -s 9 # ps aux|grep yumroot 0.0 0.0 pts/1 S+ : 0: grep yumroot 0.0 0.0 0 0 ? Z Sep 0: [yumBackend.py] <defunct>很遗憾,kill对付不了它,那怎么办呢? 可以通过强制关掉yum进程: #rm -f /var/run/yum.pid 然后就可以使用yum了。如果不行可以重启yum/sbin/service yum-updatesd restart以下是其它网友的补充:补充一、有时,在linux下yum update会提示: Another app is currently holding the yum lock解决方案 解决办法是干掉缓存中的yum进程,重启yum。 清掉缓存中的进程: rm -f /var/run/yum.pid 重启yum(我的系统是fedora) systemctl status yum-updatesd.service centos用户使用: /sbin/service yum-updatesd restart补充二、在CentOS上yum -y install gcc* gcc-c++* autoconf* automake* zlib* libxml* ncurses-devel* libmcrypt* libtool*时出现错误: 1)怎么回事呢?根据提示,原来是系统进程已经有一个update在运行了。在进程里查看下:ps -ef | grep update2)通过kill杀掉这个进程,可杀掉之后,错误依旧。原来在/var/run目录下,还有yum这个进程ID,需要将这个进程id文件强制删除掉: 3)同时重启下yum更新服务,如下:4)最后重新yum -y install gcc* gcc-c++* autoconf* automake* zlib* libxml* ncurses-devel* libmcrypt* libtool* ,已正常
标签: linux updatedb
本文链接地址:https://www.jiuchutong.com/biancheng/360528.html 转载请保留说明!友情链接: 武汉网站建设