my problem solved alredy, i did bellow:
while installing programs with urpmi you sometimes get an 'error' which says:
"URPMI DATABASE LOCKED"
This is normal while you're using the database (installing, removing using urpmi)
there are 2 simple lines that solve this problem:
# rm -f "/var/lib/urpmi/.LOCK"
# rm -f "/var/lib/urpmi/.RPMLOCK"
Those rules will remove the 'locks' from the RPM database. Only use it when URPMI is NOT installing or removing a program.
To make things easy, and we like things easy, i wrote myself a little script. Open your text editor as root and save the little script as 'urpmi.unlock' in '/usr/bin/'
$ su
password
# kwrite
past the following text in a new file and save it in:
/usr/bin
"http://www.linuxquestions.org/questions/answers.php?action="">"
"URPMI DATABASE LOCKED"
This is normal while you're using the database (installing, removing using urpmi)
there are 2 simple lines that solve this problem:
# rm -f "/var/lib/urpmi/.LOCK"
# rm -f "/var/lib/urpmi/.RPMLOCK"
Those rules will remove the 'locks' from the RPM database. Only use it when URPMI is NOT installing or removing a program.
To make things easy, and we like things easy, i wrote myself a little script. Open your text editor as root and save the little script as 'urpmi.unlock' in '/usr/bin/'
$ su
password
# kwrite
past the following text in a new file and save it in:
/usr/bin
code:note:#!/bin/bash
echo "";
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 ""
"http://www.linuxquestions.org/questions/answers.php?action="">"
There's some helpful stuff here about urpmi, and somewhere includes the
command to unlock the database.
http://mandrake.vmlinuz.ca/bin/view/Main/UsingUrpmi#Quicklist_of_common_tasks
I am not sure - but if the command fails a reboot does the trick.
Others will correct me I hope ...
--
Rosemary
~ ~ ~ ~
Registered Linux User #386597
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
"In matrimony, to hesitate is sometimes to be saved."
-- Butler
____________________________________________________
Want to buy your Pack or Services from Mandriva?
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________
--
Regard,
Azhar
