[SOLVED] Lost connection while yum'ing, can't yum now
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I was using yum to update a server, then my putty session to the server dropped.
I reconnected, and now when i try to do a yum list updates, i get the following message:
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 42 M RSS ( 53 MB VSZ)
Started: Fri Dec 3 12:05:30 2010 - 06:55 ago
State : Sleeping, pid: 21762
Does that mean its still installing the updates i asked it to, and i just need to wait for that to finish so i can see what updates are left? or am i really in a bad spot now?
Nope. Since it is sleeping it's not instally anything. Indeed it was interrupted (actually it received a SIGHUP signal) from the broken connection. However the lock file of the running application is still there (check /var/run/yum.pid). You can kill the yum process whose PID is 21762 and remove the lock file /var/run/yum.pid if still there.
Edit: ooops... too late, reed9 gave the same answer before I actually did.
Thanks guys. I killed the process like you both said, there was no pid file in that location, and now i can yum list updates. I was VERY scared for a while, thanks for the help you two.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.