How to manually unlock the urpmi in mandriva

, , 3 comments

It can be annoying when you try to use the software installer in Mandriva and it acts weird,  and so you close it and try to run it again ad then it prompts you that the URPMI is locked.
An easy way to unlocking it is forcefully removing the /var/lib/urpmi/.LOCK file by switching to root and runing the following command
rm -f /var/lib/urpmi/.LOCK

I saw the following script on a forum (can't remember the forum) and have been using it (you can save the script in a new file and run it in the bash terminal):

#!/bin/bash

echo "Only root can unlock the URPMI database.";
echo "Starting with the removal of URPMI locks:";

rm -f "/var/lib/urpmi/.LOCK";
echo " rm -f '/var/lib/urpmi/.LOCK'...";
rm -f "/var/lib/urpmi/.RPMLOCK";
echo " rm -f '/var/lib/urpmi/.RPMLOCK'..."

echo "URPMI DATABASE UNLOCKED!";
echo "Happy installing!"
echo ""

3 comments:

  1. Thanks for Your information.I know only about mobile unlock from the site unlockfree.From Yours i learned different information.ThankU.

    ReplyDelete
  2. I got the information about the mobile unlocking from the site mobileunlockguide
    From Yours i learned about the unlock urpmi unlock.Thanks for the information.

    ReplyDelete
  3. You are welcome. I got to learn of this method from a forum when I was sick of get the complaint that the urpmi is locked by another application. Besides, I don't know this other mobile unlock. i will find out about it.

    ReplyDelete

You can be sure of a response, a very relevant one too!

Click on Subscribe by Email just down below the comment box so you'll be notified of my response.

Thanks!