重啟yum,可殺掉之后,那怎么辦呢? 可以通過(guò)強(qiáng)制關(guān)掉yum進(jìn)程: #rm -f /var/run/yum.pid 然后就可以使用yum了, 清掉緩存中的進(jìn)程: rm -f /var/run/yum.pid 重啟yum(我的系統(tǒng)是fedora) systemctl status yum-updatesd.service centos用戶使用: /sbin/service yum-updatesd restart 補(bǔ)充二、 在CentOS上yum -y install gcc* gcc-c++* autoconf* automake* zlib* libxml* ncurses-devel* libmcrypt* libtool*時(shí)出現(xiàn)錯(cuò)誤: 1)怎么回事呢?根據(jù)提示,原來(lái)是系統(tǒng)進(jìn)程已經(jīng)有一個(gè)update在運(yùn)行了,yum在鎖定狀態(tài)中,錯(cuò)誤依舊,如果不行可以重啟yum /sbin/service yum-updatesd restart 以下是其它網(wǎng)友的補(bǔ)充: 補(bǔ)充一、 有時(shí), 使用yum安裝計(jì)劃任務(wù)功能,使用kill干掉它: 復(fù)制代碼 代碼如下: # 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] 很遺憾,kill對(duì)付不了它, security Existing lock /var/run/yum.pid: another copy is running as pid 25960. Another app is currently holding the yum lock; waiting for it to exit... 可能是系統(tǒng)自動(dòng)升級(jí)正在運(yùn)行。
在進(jìn)程里查看下:ps -ef | grep update 2)通過(guò)kill殺掉這個(gè)進(jìn)程,在linux下yum update會(huì)提示: Another app is currently holding the yum lock解決方案 解決辦法是干掉緩存中的yum進(jìn)程,。
需要將這個(gè)進(jìn)程id文件強(qiáng)制刪除掉: 3)同時(shí)重啟下yum更新服務(wù),還有yum這個(gè)進(jìn)程ID,已正常 ,原來(lái)在/var/run目錄下, 已經(jīng)有一個(gè)yum進(jìn)程在運(yùn)行了,結(jié)果提示: 復(fù)制代碼 代碼如下: # yum -y install vixie-cron Loaded plugins: fastestmirror, refresh-packagekit,如下: 4)最后重新yum -y install gcc* gcc-c++* autoconf* automake* zlib* libxml* ncurses-devel* libmcrypt* libtool* 。