LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 09-01-2009, 12:29 PM   #1
PrinceCruise
Member
 
Registered: Aug 2009
Location: /Universe/Earth/India/Pune
Distribution: Slackware64 -Current
Posts: 890

Rep: Reputation: 186Reputation: 186
"Yum lock problem"


Hi Folks,

I'm back with a new headache... .
Whenever I try to install some package by yum...for an example -
# yum groupinstall "office" - it shows the following message-

"yum is locked by some other application - <app. name>"...
sleeping...
blah blah...

This thing is freaking me out..as I'm not able to use yum for anything.

looking forward to your valuable suggestions.

Thanks in advance.
 
Old 09-01-2009, 01:20 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
have you tried the gui for yum ?? ( add and remove software )

also if yumupdated service is running and you have a mis-configured mirror list . That will cause this

what repos are you using ?
Code:
yum repolist
 
Old 09-03-2009, 06:06 PM   #3
PrinceCruise
Member
 
Registered: Aug 2009
Location: /Universe/Earth/India/Pune
Distribution: Slackware64 -Current
Posts: 890

Original Poster
Rep: Reputation: 186Reputation: 186
Hello...
This is what I've got...

[root@Fedora ~]# yum repolist
Loaded plugins: refresh-packagekit
repo id repo name status
adobe-linux-i386 Adobe Systems Incorporated enabled: 17
fedora Fedora 11 - i386 enabled: 13,289
updates Fedora 11 - i386 - Updates enabled: 4,958
repolist: 18,264

But I've read in some other threads that killing the other running processes is a solution , but I din't see any other running process...
 
Old 09-03-2009, 07:16 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
sometimes the "adobe-linux-i386 Adobe Systems Incorporated " repo can lock up and sort of freeze yum.
try turning it off . Like this

Code:
su -
( your root password when asked )
gedit /etc/yum.repos.d/adobe-linux-i386.repo
and change this line
enabled=1
-- to --
enabled=0
then try yum again .
 
Old 09-03-2009, 11:55 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Try

ps -ef|grep yum

if there's a process running

kill <pid>

then check again. If ok, (no yum running) then

yum update

You can also disable the relevant daemon in the Services menu, if you want to always manually ctrl when updates are done.
Look for rhnsd or yum.
 
Old 09-04-2009, 08:47 AM   #6
PrinceCruise
Member
 
Registered: Aug 2009
Location: /Universe/Earth/India/Pune
Distribution: Slackware64 -Current
Posts: 890

Original Poster
Rep: Reputation: 186Reputation: 186
John VV,
Thanks a lot for the valuable suggestion.I'll try that and will update here.

chrism01,
Thanks a lot for your time but I tried this already and that's why i got to know that there was no processes running.Still it's very useful at times so many thanks .
 
Old 09-09-2009, 12:17 PM   #7
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,719

Rep: Reputation: 68
I think there is a problem with yum removing yum.pid when shutting down.
Sometimes when I use Yumex and it acts like it's hanging I click on the "X" top right and shutdown Yumex to restart, you can't get back into Yumex because /var/run/yum.pid has not been removed, you physically have to go to /var/run and delete yum.pid
 
Old 09-09-2009, 01:29 PM   #8
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Folks, Fedora and many other distributions run the PackageManager automatically every time you boot. On Fedora, the PM uses yum.

Since I prefer to do my updates "by hand," I always change the PM setting to never run and never check for updates. If you haven't done this, try using the "Package Manager" application to install the new applications and manage your updates.

(My wife's system, on the other hand, uses the defaults with automatic update and installation so she never needs to "fiddle" with anything. She prefers a system that "just works" and lets her read her e-mail and visit a few Web sites. I only need to touch it every six months or so, when a new Fedora is released.)
 
Old 09-10-2009, 01:55 AM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
As per #7, check that the yum.pid file has gone as well. If you killed the process, it may still be there.
 
Old 09-10-2009, 01:15 PM   #10
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,719

Rep: Reputation: 68
I physically removed it from /var/run/yum.pid
 
Old 09-10-2009, 03:35 PM   #11
PrinceCruise
Member
 
Registered: Aug 2009
Location: /Universe/Earth/India/Pune
Distribution: Slackware64 -Current
Posts: 890

Original Poster
Rep: Reputation: 186Reputation: 186
mickeyboa,

Thanks a ton...It worked...!!! I have to do it manually !!!

Other folks(Senior members/guru),

Seriously appreciate your efforts to make all Linux user's lives easier!!! Thanks a lot!!!
 
  


Reply



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
The "Log out" and "Lock screen" actions cannot be executed through keyboard shortcuts Snood Linux - Desktop 0 04-22-2009 09:30 AM
Difference betweenn "yum install" and "yum update" john lee Linux - Newbie 1 02-11-2008 11:26 PM
KDE "Logout" and "Lock Session" menu restoration powah Linux - Software 3 03-29-2005 08:02 PM
KDE "Lock Session" and "Logout" menu restoration tcma Linux - Software 0 01-29-2005 11:12 AM
"yum" bad lock error ServalSoft Linux - Software 7 02-09-2004 03:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 02:58 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