LinuxQuestions.org
Share your knowledge at the LQ Wiki.

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 access 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.

Are you new to LinuxQuestions.org? Visit the following links:
Site Howto | Site FAQ | Sitemap | Register Now

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.

Go Back   LinuxQuestions.org > Linux Answers > Applications / GUI / Multimedia
User Name
Password

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 ""
5 comments

read full thread



Add LQ To Your Yahoo Add LQ To Your Google Add LQ To Your MSN Add LQ To Your Blog
All times are GMT -5. The time now is 07:49 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Open Source Consulting | Domain Registration