Skip to main content

Cannot upgrade because yum is locked

Comments

5 comments

  • cPanelAnthony
    Hello! I would be happy to help. Can you run this command? cat /var/run/yum.pid && echo
    You should get a number in response. Can you then use this number for the following command? ps auwfx | grep $number
    Obviously replacing $number with the real number. This should help.
    0
  • Ramon Pego
    Sure: [root@servidor ~]# cat /var/run/yum.pid && echo 10151 [root@servidor ~]# ps auwfx | grep 10151 root 26982 0.0 0.0 112808 972 pts/1 S+ 14:48 0:00 | \_ grep --color=auto 10151 root 10151 0.0 0.0 2297224 4660 ? S Nov04 0:00 /usr/bin/python /usr/bin/yum --assumeyes --color=never --config /etc/yum.conf update
    0
  • cPanelAnthony
    @Ramon Pego It looks like that Yum process has been going since November 4th. You might need to restart your server; would it be possible to try doing so and then test again?
    0
  • Ramon Pego
    It worked!! thanks this solved my problem
    0
  • cPanelAnthony
    I'm glad to hear that fixed the issue!
    0

Please sign in to leave a comment.