linux cs7在运行yum命令的时候,不知道怎么回事无法进行下载安装,报出 another app is currently holding the yum lock 的错误提示。在Linux系统中使用yum安装软件时,提示yum处于锁定状态。有以下几种解决方案,说不定某种方案能够适用于你的问题。
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 312 M RSS (661 MB VSZ)
Started: Sun Jun 26 09:08:58 2022 - 04:27 ago
State : Sleeping, pid: 3094
方法1 第1步-看到报错就知道PID是3094
第2步
kill -9 3094
执行上述命令即可,3094为系统报错的pid号
方法2 # kill -9 3094
the process could not be stopped
Second i attempt to kill all yum process
出现该进程无法被终止的情况,进而采用killall命令尝试
# killall -9 yum
still the process could not be stopped
若是通过以上两种方式都无法解决问题,那么采用以下命令
#rm -f /var/run/yum.pid 3094
随后执行更新
# yum -y update
看到Complete!就是yum更新完成,成功了。
最后确保yum-updatesd已经启动
#/etc/init.d/yum-updatesd status
# /etc/init.d/yum-updatesd start
再执行yum localinstall VNC-Server-6.9.1-Linux-x64.rpm
这种方式可以用yum直接安装本地RPM包yum自动解决RPM包依赖的问题。简单快捷的方法哦。注意不是yuminstall软件名,而是yumlocalinstall软件名