Find the answer to your Linux question:
Results 1 to 5 of 5
I am using Mandriva 2008.1 KDE 3.5 A few days ago I encountered a problem. Whenever I try to use the package manager, whether to install a program or update ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie Max2009's Avatar
    Join Date
    Nov 2008
    Posts
    197

    [SOLVED] URPMI Database locked?


    I am using Mandriva 2008.1 KDE 3.5
    A few days ago I encountered a problem. Whenever I try to use the package manager, whether to install a program or update stuff, it tells me A fatal error has occurred: urpmi database is locked (another program is already using it).
    What does that mean? I have tried rebooting, and to the best of my knowledge no other program is using it.
    Is there a way I can find out which program is using it? How did this happen, and how do I fix it?
    Thanks.
    Oh, please try and be as specific as possible, I'm still a Linux noob.
    Cogito ergo surf - I think therefore I network.

    Registered Linux user #481826 Get counted!

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    There could be an updater working in the background. Check the output of top command or process manager. I am not using Mandriva and I can't tell you exactly. Fedora has an updater too which work in background and one has to stop it before using any other Package Manager tool.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    I used to use 2008.1, and there is an auto-updater that works in the background which caused me no end of irritation. It always seemed to take forever to update the repositories during which the database is locked. I ended up turning the autoupdates off altogether, but I'm afraid I don't recall how I went about doing it. I think there is an option in the control center or it autostarted programs.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Feb 2009
    Posts
    7
    Quote Originally Posted by Max2009 View Post
    I am using Mandriva 2008.1 KDE 3.5
    A few days ago I encountered a problem. Whenever I try to use the package manager, whether to install a program or update stuff, it tells me A fatal error has occurred: urpmi database is locked (another program is already using it).
    What does that mean? I have tried rebooting, and to the best of my knowledge no other program is using it.
    Is there a way I can find out which program is using it? How did this happen, and how do I fix it?
    Thanks.
    Oh, please try and be as specific as possible, I'm still a Linux noob.
    Open a command line and Type the following commands and You root user
    The first is to know the process works in order to arrest:
    Code:
    ps -aef | grep rpm | grep -v grep
    Of course, if there were a number of operations can be disabled works kill order
    Code:
    ps -aef | grep rpm | grep -v grep
    root 8109 8099 99 07:30 ? 00:00:10 /usr/bin/perl /usr/bin/rpmdrake -- ...
    kill -9 8109
    After the stop of the operation delete locked files in the packages Manager
    Code:
    rm -f /var/lib/urpmi/.LOCK
    
    rm -f /var/lib/urpmi/.RPMLOCK
    That everything
    I hope that helped you

  6. #5
    Linux Newbie Max2009's Avatar
    Join Date
    Nov 2008
    Posts
    197
    Thank you very much googel. That worked perfectly.
    Cogito ergo surf - I think therefore I network.

    Registered Linux user #481826 Get counted!

Posting Permissions

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