How To Resolve Another App Is Currently Holding The Yum Lock; Waiting For It To Exit…

  -  
I often encounter the "Another app is currently holding the yum lock; waiting for it to exit..." message when trying to lớn install an app and I have to lớn kill yum manually. How can I avoid that? Is there any simple method to lớn unloông chồng yum?

It seems that only one instance of yum can be running. Is it the same with other package mangers (apt-get, pacman)?


*

I think it is caused by PackageKit. You have sầu lớn check for PackageKit and disable it (I assume it is CentOS 7 with systemctl, otherwise you can use service and chkconfig) (as mentioned in comments, the service name is packagekit not packagekitd):

systemctl stop packagekitsystemctl disable packagekitAnother approach (On CentOS/RHEL 6, Fedora 19 or earlier) is lớn open /etc/yum/pluginconf.d/refresh-packagekit.conf with a text editor, and change enabled=1 lớn enabled=0.

Bạn đang xem: How to resolve another app is currently holding the yum lock; waiting for it to exit…

Or you can completely remove sầu it:

yum remove PackageKit
Share
Improve this answer
Follow
edited Jun 4 "18 at 9:06

*

muru
59.5k88 gold badges162162 silver badges251251 bronze badges
answered Apr 14 "15 at 6:41
*

taliezintaliezin
8,29511 gold badge2929 silver badges3434 bronze badges
3
Add a phản hồi |
12
do the following lớn solve the problem:

cd /var/runrm -f yum.pidyou could also update your yum afterward

yum -y update
Share
Improve sầu this answer
Follow
edited Jul 1 "16 at 19:13

*

jimmij
40.2k1616 gold badges108108 silver badges132132 bronze badges
answered Jul 1 "16 at 19:01
*

LuckyLucky
12911 silver badge22 bronze badges
1
Add a bình luận |
4
You can unloông xã yum by following two simple steps,

1) Run ps aux | grep yum khổng lồ see which process is locking yum.2) kill to kill the process.

Again run ps aux | grep yum khổng lồ see if the process is killed or not. Yum will be unlocked after killing the process.

Xem thêm: Tải Phần Mềm Chỉnh Sửa Video Cho Macbook Đơn Giản Không Cần Cài Thêm Phần Mềm


Share
Improve this answer
Follow
answered Dec 27 "15 at 6:31
MayurKubavatMayurKubavat
14933 bronze badges
2
Add a phản hồi |
1
In my case, I was connected khổng lồ a hệ thống via VPN (open VPN). Once I ran sudo yum -y update, all packages were getting updated, along with open-VPN. Once open-VPN package got updated, I was disconnected from the VPN. I logged baông chồng in, tried the yum update again and it said another process is holding the yum lock.

Xem thêm: Phần Mềm Ổn Định Mạng Chậm Với Top Phần Mềm Tăng Tốc Wifi Trên Android

I checked with ps ax | grep yum và the old process was still running. I waited for 5 min for it lớn "finish", but the process just kept running. Then I thought I could "pull the trigger" with kill, so I ran

kill

That didn"t kill the process. Tried that a few more times, and still no success.

Finally I had to lớn really pull the plug on it, by running:

kill -9

Tried yum update again, but same issue. I then ran:

rm -f /var/run/yum.pid

& then tried update & got this output:

Loaded plugins: fastestmirrorSetting up Update ProcessLoading mirror speeds from cached hostfile * base: mirror.sigmanet.com * epel: mirror.sjc02.svwh.net * extras: mirrors.vpsie.com * updates: mirror.pac-12.orgNo Packages marked for UpdateBelieve everything is good, but I didn"t like pulling the plug on so many things!