Sunday, June 6, 2021

CentOS - Yum lock - Another app is currently holding the yum lock; waiting for it to exit...

 $ sudo yum install gcc

Loaded plugins: fastestmirror, langpacks

Existing lock /var/run/yum.pid: another copy is running as pid 158996.

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: yum

    Memory : 1.0 M RSS (450 MB VSZ)

    Started: Fri Jun  4 15:31:12 2021 - 2 day(s) 21:14:07 ago

    State  : Traced/Stopped, pid: 158996

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: yum

    Memory : 1.0 M RSS (450 MB VSZ)

    Started: Fri Jun  4 15:31:12 2021 - 2 day(s) 21:14:09 ago

    State  : Traced/Stopped, pid: 158996

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: yum

    Memory : 1.0 M RSS (450 MB VSZ)

    Started: Fri Jun  4 15:31:12 2021 - 2 day(s) 21:14:11 ago

    State  : Traced/Stopped, pid: 158996

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: yum

    Memory : 1.0 M RSS (450 MB VSZ)

    Started: Fri Jun  4 15:31:12 2021 - 2 day(s) 21:14:13 ago

    State  : Traced/Stopped, pid: 158996

Exiting on user cancel.

$ ps -ef | grep 158996

root     158996 158792  0 Jun04 pts/3    00:00:00 /usr/bin/python /bin/yum install pyenv

datta    203485  67435  0 12:46 pts/2    00:00:00 grep --color=auto 158996

$ sudo kill -9 158996

$ cat /etc/resolv.conf

# Generated by NetworkManager

nameserver XXX.XXX.X.X # some numbers

$ sudo vi /etc/resolv.conf

added nameserver 8.8.8.8

$ sudo yum install gcc # Resolved now works.

Loaded plugins: fastestmirror, langpacks

Loading mirror speeds from cached hostfile

epel/x86_64/metalink                                                                                                                                                                        |  18 kB  00:00:00     

 * base: centos.mirror.myduniahost.com

 * epel: d2lzkl7pfhq30w.cloudfront.net

 * extras: centos.exabytes.com.my

 * nux-dextop: li.nux.ro

 * updates: centos.exabytes.com.my


No comments:

Post a Comment