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
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!"