LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to get rid of yum lock? (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-get-rid-of-yum-lock-777982/)

your_shadow03 12-25-2009 12:37 AM

How to get rid of yum lock?
 
I have Fedora 10 running on my Dell Laptop.
I want to install package through yum but it seems to lock.
If I try to kill it get displays again.
Code:

root@localhost ~]# ps -auxf | grep yum
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
root      2999  8.9  4.8 111904 100516 ?      SN  17:33  0:14  \_ /usr/bin/python /usr/share/PackageKit/helpers/yum/yumBackend.py get-updates none
root      3021  0.0  0.0  4196  688 pts/0    S+  17:35  0:00              \_ grep yum
[root@localhost ~]# kill -9 2999
root@localhost ~]# ps -auxf | grep yum
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
root      3023 94.5  4.8 111364 100008 ?      RN  17:36  0:14  \_ /usr/bin/python /usr/share/PackageKit/helpers/yum/yumBackend.py get-updates none
[root@localhost ~]#


your_shadow03 12-25-2009 12:42 AM

Tried this and able to get it fixed !!!

Code:


Open a terminal.
Become superuser by entering 'su' and then the password.
Then,
# cd /var/run/
# ls
Look for the 'yum.pid' file.
# rm -f yum.pid
# ls
Confirm that the 'yum.pid' file has been deleted.
# yum update
This should re-start your update process



All times are GMT -5. The time now is 07:32 PM.