Friday, December 26, 2014

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



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

Caused : Yum Session was locked by other user or it was terminated.

[root@rac1 ~]# yum list | grep oracle-
This system is not registered with ULN.
ULN support will be disabled.
Existing lock /var/run/yum.pid: another copy is running as pid 3246.
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum-updatesd-he
    Memory :  26 M RSS (263 MB VSZ)
    Started: Fri Dec 26 19:53:45 2014 - 00:10 ago
    State  : Running, pid: 3246
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum-updatesd-he
    Memory :  26 M RSS (263 MB VSZ)
    Started: Fri Dec 26 19:53:45 2014 - 00:12 ago
    State  : Running, pid: 3246
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum-updatesd-he
    Memory :  26 M RSS (263 MB VSZ)
    Started: Fri Dec 26 19:53:45 2014 - 00:14 ago
    State  : Running, pid: 3246



Exiting on user cancel.

Fixed:
[root@rac1 ~]# ls -l /var/run/yum.pid 
-rw-r--r-- 1 root root 4 Dec 26 19:53 /var/run/yum.pid
[root@rac1 ~]# rm /var/run/yum.pid 
rm: remove regular file `/var/run/yum.pid'? y

Re-run:
[root@rac1 ~]# yum list | grep oracle-

apt-key warning when sudo apt update run

Issue: apt-key warning when sudo apt update run Update below file: cat /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list ...