Existing lock /var/run/yum.pid: another copy is running as pid 18092.
Here's the way to resolve.
Locate the yum.pid file, usually in fedora, it is located in /var/run dir
cd /var/run
ls
vim yum.pid
press insert
delete pid number and save pressing esc + : + x then press enter
now run your yum command
I simple kill the process
ReplyDeleteps aux|grep yum
kill -9 [PID]
You should be careful about getting rid of processes running yum, as they might be in the middle of installing something. At least by my book, I always try to give the process 30 sec.s before worrying about getting around the lock
ReplyDeleteor better yet, attach strace to the process and make sure it isnt doing anything first.
ReplyDeletebut sometimes simply killing process does not work you know
ReplyDeleteI just deleted pid number...and started yum for vlc installation and it worked....
ReplyDeletethanks...