Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14
This is the message I'm stuck up with could anyone help me understand what is this? Very thanks in advance...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2010
    Posts
    2

    Smile Another app is currently holding the yum lock; waiting for it to exit...


    This is the message I'm stuck up with could anyone help me understand what is this?
    Very thanks in advance

  2. #2
    Linux User glennzo's Avatar
    Join Date
    Sep 2004
    Location
    Salem, Mass
    Posts
    464
    Typicaly, that goes away in 60-90 seconds. In your case does this just keep happening endlessly? What does ps aux | grep yum show?
    Glenn
    Powered by Fedora

  3. #3
    Linux User
    Join Date
    Nov 2009
    Location
    France
    Posts
    292
    I'm not on Fedora but the error mesage seems quite clear. Some running application has locked the RPM database and yum can't start. It's probably another yum process. Try to find the process identifier and kill that process :

    Code:
    ps -e | grep yum
    kill -SIGKILL <pid>
    If it's not another yum process, it may be hard to find out, just reboot if it's not a 24/7 server.
    0 + 1 = 1 != 2 <> 3 != 4 ...
    Until the camel can pass though the eye of the needle.

  4. #4
    Just Joined!
    Join Date
    May 2010
    Posts
    2

    Post

    Quote Originally Posted by glennzo View Post
    Typicaly, that goes away in 60-90 seconds. In your case does this just keep happening endlessly? What does ps aux | grep yum show?
    Hey thanks for your response, but what does yum mean? I've no idea about what it is?

  5. #5
    Linux User glennzo's Avatar
    Join Date
    Sep 2004
    Location
    Salem, Mass
    Posts
    464
    Yum is the tool to update the system, along with PackageKit. Yum is typically used from the command line. You see the message you are seeing quite often when you try to use yum to install something. For example,
    Code:
    yum install somepackage
    Another app is currently holding the yum lock; waiting for it to exit...
    The message tends to repeat until the lock is released and then yum proceeds as expected. If you don't want to wait you can kill the process and then issue the yum install command.
    Glenn
    Powered by Fedora

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    It looks like yum update package is running in the background.
    Execute this in Terminal :
    Code:
    su -
    service yum-updatesd stop
    yum update
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Just Joined!
    Join Date
    Mar 2009
    Location
    Santa Cruz, California
    Posts
    76
    A bit more detail -

    yum is an update manager for RedHat, Fedora, and other distibutions that use .rpm packages. The original version was written for Yellowdog Linux, so YUM originally stood for "Yellowdog Update Manager". The lock is a file or bit or byte set when a program is started to manage something, to keep another program from accessing the same resource (in this case packages).

    The simplest way to solve this problem is to reboot, as locks will generally be unset after a boot - as someone else mentioned, this might not be a good way if the system is a server that other people or computers are depending on, but for a personal system that's generally ok.

  8. #8
    Linux User glennzo's Avatar
    Join Date
    Sep 2004
    Location
    Salem, Mass
    Posts
    464
    No need to reboot as far as I'm concerned. Stop the process that is holding the lock and move on.
    Glenn
    Powered by Fedora

  9. #9
    Linux Newbie
    Join Date
    Oct 2008
    Posts
    153
    Quote Originally Posted by thoutam View Post
    Hey thanks for your response, but what does yum mean? I've no idea about what it is?
    How do you get this error message? As far as I know of, it only comes when you are running yum.
    To find the other process type,

    [you@Yourbox ~]$ps aux | grep yum

    This should give you something like this,

    username 30122 16.3 0.7 283544 14452 pts/0 R+ 17:55 0:00 /usr/bin/python/usr/bin/yum update
    root 30124 0.0 0.0 103244 840 pts/9 S+ 17:55 0:00 grep yum

    Here we see two processes running from the Yum program. In your situation there are probably three. The first will be the oldest, probably the one that's holding the yum lock. The most recent is your search with ps aux...
    Find the "other program"
    and send it to meet it's maker

    The first set of numbers in each process is the Process Identification Number or PID.
    Kill the PID
    [you@Yourbox ~]$su -c "kill -9 PID".
    You'll be asked for the root password (only root can kill root's processes), and then the kill program will run.
    Please let us know if this works, it should be immediate.
    You should not need to reboot Linux very often, certainly not for this small problem. Kurt

  10. #10
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    There is no need to kill any process. As I mentioned ealier, first of all, stop yum-updatesd services. It will sort out problem.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •