Cannot upgrade because yum is locked (/var/run/yum.pid has existed for 10+ minutes).

kodeslogic

Well-Known Member
PartnerNOC
Apr 26, 2020
549
255
138
IN
cPanel Access Level
Root Administrator
Can you share the output of the below command:

Code:
# ps auxf | grep yum
 
  • Like
Reactions: cPRex

stokmu

Member
Jun 8, 2022
17
3
3
Indonesia
cPanel Access Level
Root Administrator
Can you share the output of the below command:

Code:
# ps auxf | grep yum
After checking the following code appears:
Code:
root     13978  0.0  0.0 112808   972 pts/0    S+   12:51   0:00  |       \_ grep --color=auto yum
root     22160  0.0  0.0 224072 13480 ?        SN   Aug21   0:00      |   \_ /opt/alt/python38/bin/python3 /opt/alt/python38/share/imunify360/scripts/report-command-error /usr/bin/yum update imunify-antivirus ai-bolit imunify-notifier --assumeyes
root     22188  0.0  0.3 4551952 61704 ?       SN   Aug21   0:01      |       \_ /usr/bin/python /usr/bin/yum update imunify-antivirus ai-bolit imunify-notifier --assumeyes
 

stokmu

Member
Jun 8, 2022
17
3
3
Indonesia
cPanel Access Level
Root Administrator
Nothing in that output seems odd to me. If you try running a 'yum update' now, do things work well? It's possible the issue resolved itself after an older Yum process timed out.
Yes, maybe.. The code above appears after I remove Immunify.

Now, i have update "Yum Update"

And now successfully update Yum.
Total 10 MB/s | 50 MB 00:00:04
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : kmod-libs-20-28.el7.x86_64 1/3
Installing : kernel-3.10.0-1160.59.1.el7.x86_64 2/3
Cleanup : kmod-libs-20-21.el7.x86_64 3/3
Verifying : kernel-3.10.0-1160.59.1.el7.x86_64 1/3
Verifying : kmod-libs-20-28.el7.x86_64 2/3
Verifying : kmod-libs-20-21.el7.x86_64 3/3

Installed:
kernel.x86_64 0:3.10.0-1160.59.1.el7

Updated:
kmod-libs.x86_64 0:20-28.el7

Complete!
Thanks a lot bro @cPRex
 
  • Like
Reactions: cPRex