urpmi database locked

Discussion in 'Linux, BSD and Other OS's' started by sabashuali, Nov 22, 2005.

  1. sabashuali

    sabashuali Ani Ma'amin

    Likes Received:
    6
    Trophy Points:
    38
    Hi

    I was running the uprmi (in console) after a fresh install..... please do not ask why... it is complicated :eek:

    Anyway, the first three commands went fine.
    However, halfway through running
    the download stopped and would not go any further.

    I tried again but got a message that contrib already exists.
    When I tried to install Thunderbird in the control centre I got the messsge quoted in the title.

    Is it something I have done or has the database gone out for maintenance or simillar?

    Sorry dad..... :confused: did I break something?
     
  2. Anti-Trend

    Anti-Trend Nonconformist Geek

    Likes Received:
    118
    Trophy Points:
    63
    If you get a 'urpmi database locked' message, it means something has exclusive use of the urpmi database, more than likely another instance of urpmi itself. If urpmi is hung (e.g. it was interrupted or your internet connection went down part-way through an update), you can remedy the situation by killing the process. Type the following as root:
    Code:
    killall urpmi
    If your urpmi sources themselves are screwed up for whatever reason (e.g. bad mirror, whatever), you can remove all of the sources by using the following command (as root):
    Code:
    urpmi.removemedia -a
    Alternately, if there's only one source you want to remove, you can specify that instead. For example, if you wanted to remove a source called "contrib", you'd type the following as root:
    Code:
    urpmi.removemedia contrib
    Hope this helps...
    -AT
     
  3. sabashuali

    sabashuali Ani Ma'amin

    Likes Received:
    6
    Trophy Points:
    38
    Hi AT

    Thanks very much for this.
    I removed all the medias and started again.
    However, using the -a meant I removed the CD and DVD as well.

    Will that make any difference? I still have the install DVD....

    Ta ta.... :cool:
     
  4. Anti-Trend

    Anti-Trend Nonconformist Geek

    Likes Received:
    118
    Trophy Points:
    63
    You can re-add them if you like, but if you have broadband it's actually easier to use online media rather than the CDs/DVD. That's what I do.
     
  5. sabashuali

    sabashuali Ani Ma'amin

    Likes Received:
    6
    Trophy Points:
    38
    I think so too! Saves on inserting the friggin DVD in every time.
    I just wanted to make sure it will not effect me later or sumfink.

    My Mandriva keeps confusing me though.... :confused:
    W! as long as it works, I am happy........

    cheers, m8
     
  6. Addis

    Addis The King

    Likes Received:
    91
    Trophy Points:
    48
    Its also better because you'll have updated verisons of packages through repositories.
     
  7. Anti-Trend

    Anti-Trend Nonconformist Geek

    Likes Received:
    118
    Trophy Points:
    63
    Actually, the CDs/DVD provide the same packages as the 'main' repository, which doesn't change.
     
  8. Addis

    Addis The King

    Likes Received:
    91
    Trophy Points:
    48
    What happens though when software is updated, wouldn't it replace the previous version in the repository?
     
  9. Anti-Trend

    Anti-Trend Nonconformist Geek

    Likes Received:
    118
    Trophy Points:
    63
    No. That's what the 'update' repository is for. The newest version of a program, on any repository, supersedes the installed version.
     

Share This Page