Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
By bglnelissen at 2005-03-03 19:57
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
Code:
#!/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 ""
we seem to be having problems.we did what you suggested, but we don't know where to go from there. after entering the first line of code:
# rm -f "/var/lib/urpmi/.LOCK"
The rpm still will not install and prints: urpmi database locked
in an error message
Any help would be appreciated. We know nothing aout Unix code, but have dabbled some in envelop
Thank you.
by LinuxBlackBox on Sat, 2006-11-25 20:45
Try the command without the quotations, i.e.
rm -f /var/lib/urpmi/.LOCK
and
# rm -f /var/lib/urpmi/.RPMLOCK
Hope that helps
by the crazy cow on Sun, 2007-02-04 18:20
Quote:
Originally Posted by LinuxBlackBox
Try the command without the quotations, i.e.
rm -f /var/lib/urpmi/.LOCK
and
# rm -f /var/lib/urpmi/.RPMLOCK
Hope that helps
try the simply aditional"--nolock"
don't lock rpm db
before runing urpmi just read help "urpmi -h"very simple"
or another simpli kill proces:main panel--->clik run comand->[here write-->ksysguard--before run comand clik-->option--->click "run as diferent user :root
tape root pasword:******
then run comand.-->kill proces:can be-urpmi
-gurpmi
-rpmdarke
-gurpmi
-urpmi.addmedia ...etc
very easy for kde.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
# rm -f "/var/lib/urpmi/.LOCK"
The rpm still will not install and prints: urpmi database locked
in an error message
Any help would be appreciated. We know nothing aout Unix code, but have dabbled some in envelop
Thank you.
rm -f /var/lib/urpmi/.LOCK
and
# rm -f /var/lib/urpmi/.RPMLOCK
Hope that helps
rm -f /var/lib/urpmi/.LOCK
and
# rm -f /var/lib/urpmi/.RPMLOCK
Hope that helps
try the simply aditional"--nolock"
don't lock rpm db
before runing urpmi just read help "urpmi -h"very simple"
or another simpli kill proces:main panel--->clik run comand->[here write-->ksysguard--before run comand clik-->option--->click "run as diferent user :root
tape root pasword:******
then run comand.-->kill proces:can be-urpmi
-gurpmi
-rpmdarke
-gurpmi
-urpmi.addmedia ...etc
very easy for kde.
It made solving this problem a snap