yum安装却提示 lock yum锁定无法使用怎么办?
2024-03-29 19:51:23

yum安装却提示 lock yum锁定无法使用怎么办?

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软件名

(作者:汽车配件)