LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-25-2009, 12:37 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466
Blog Entries: 6

Rep: Reputation: 51
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 ~]#
 
Old 12-25-2009, 12:42 AM   #2
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466

Original Poster
Blog Entries: 6

Rep: Reputation: 51
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Another app is currently holding the yum lock 9nine9 Fedora 28 09-28-2014 02:40 AM
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg0000 Fedora 8 04-13-2011 11:25 AM
[SOLVED] "Yum lock problem" PrinceCruise Fedora 10 09-10-2009 03:35 PM
all software installs hang scroll lock and caps lock lights flash jcorrnt Linux - Hardware 6 02-07-2009 12:44 PM
"yum" bad lock error ServalSoft Linux - Software 7 02-09-2004 03:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration