Find the answer to your Linux question:
Results 1 to 5 of 5
What does this error mean? I keep getting this error every time I try to update my system....
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2008
    Location
    Temecula - Temecula Creek
    Posts
    7

    Question urpmi database locked


    What does this error mean?

    I keep getting this error every time I try to update my system.

  2. #2
    Linux Enthusiast Manchunian's Avatar
    Join Date
    Dec 2007
    Location
    France but my heart stays in Britain
    Posts
    675
    This sometimes happens on Mandriva. These commands (you must be root) will usually get you up and running again:
    Code:
    rm -f "/var/lib/urpmi/.LOCK"
    Then
    Code:
    rm -f "/var/lib/urpmi/.RPMLOCK"
    Here is a ressource that might help. However, I have to say that when I was using MAndriva, even after following these instructions, URPMI would still lock from time to time. It's one of the reasons I stopped using it, in fact.
    Distribution: Archlinux
    Processor: 3 x Amd 64 bit
    Ram: 4 GB
    Graphics card: Nvidia GeForce 9800 GT

  3. #3
    Linux Guru fingal's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham - UK
    Posts
    1,539
    Manchunian's solution will work, but you shouldn't have persistant problems with urpmi locking. It usually means that you've previously tried to install some software. Then - for whatever reason - the download has failed leaving urpmi in limbo.

    It may point to problems with your setup rather than to a bug in the package management system which - in current versions - is very good.

    Sometimes it's better to use urpmi from a command line, because that way if things go wrong you get more feedback. To be honest urpmi is great when it's working well, but when something is wrong it can be hard to pin down the fault.
    I am always doing that which I can not do, in order that I may learn how to do it. - Pablo Picasso

  4. #4
    Linux Enthusiast Manchunian's Avatar
    Join Date
    Dec 2007
    Location
    France but my heart stays in Britain
    Posts
    675
    Yes, this issue can arise with any distribution. In Debian (and Debian derivatives) you do dpkg --configure -a to get everything working again. However, I did find this happened far too frequently in Mandriva - perhaps because that was because I was using the Mandriva Control Center. Note that, whereas I was getting this issue very frequently in Mandriva, I can only remember it happening once in Debian - and that was because I accidently interrupted apt from installing some software.
    Distribution: Archlinux
    Processor: 3 x Amd 64 bit
    Ram: 4 GB
    Graphics card: Nvidia GeForce 9800 GT

  5. #5
    Linux Guru fingal's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham - UK
    Posts
    1,539
    Quote Originally Posted by Manchunian View Post
    However, I did find this happened far too frequently in Mandriva - perhaps because that was because I was using the Mandriva Control Center.
    I had the same trouble for a long time, and looking back it's hard to pin down how I solved it because the error messages I got weren't all that helpful.

    In the end it was because Mandriva was - by default - configured to use the ipv6 protocol, but this is still unsupported by my ISP. This is a recurring theme in posts to the Mandriva Forum, and strangely not one that seems to be discussed openly... Linux has a few dirty little secrets when it comes to configuring networks.. Shhhhh.
    I am always doing that which I can not do, in order that I may learn how to do it. - Pablo Picasso

Posting Permissions

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