使用yum安装计划任务功能,结果提示:


复制代码代码如下:
# yum -y install vixie-cron
Loaded plugins: fastestmirror, refresh-packagekit, security
Existing lock /var/run/yum.pid: another copy is running as pid <font color="#ff0000">25960</font>.
Another app is currently holding the yum lock; waiting for it to exit...


可能是系统自动升级正在运行,yum在锁定状态中。
已经有一个yum进程在运行了,使用kill干掉它:


复制代码代码如下:
# kill -s 9 25960
# ps aux|grep yum
root 6744 0.0 0.0 103260 900 pts/1 S+ 14:59 0:00 grep yum
root 25960 0.0 0.0 0 0 ? Z Sep19 0:01 [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*时出现错误:

linux中yum update被占用(Another app is currently holding the yum lock)的解决办法 

1)怎么回事呢?根据提示,原来是系统进程已经有一个update在运行了。在进程里查看下:ps -ef | grep update

linux中yum update被占用(Another app is currently holding the yum lock)的解决办法

2)通过kill杀掉这个进程,可杀掉之后,错误依旧。原来在/var/run目录下,还有yum这个进程ID,需要将这个进程id文件强制删除掉:

linux中yum update被占用(Another app is currently holding the yum lock)的解决办法 

3)同时重启下yum更新服务,如下:

linux中yum update被占用(Another app is currently holding the yum lock)的解决办法

4)最后重新yum -y install gcc* gcc-c++* autoconf* automake* zlib* libxml* ncurses-devel* libmcrypt* libtool* ,已正常

linux中yum update被占用(Another app is currently holding the yum lock)的解决办法

以上就是小编的整理了,希望大家多支持网站。

华山资源网 Design By www.eoogi.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
华山资源网 Design By www.eoogi.com

RTX 5090要首发 性能要翻倍!三星展示GDDR7显存

三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。

首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。

据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。