LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 01-19-2007, 11:11 PM   #1
Kristoffer G
Member
 
Registered: Jan 2007
Location: In central Umeå.
Distribution: Mageia
Posts: 79

Rep: Reputation: 25
Urpmi-database locked


When I try to change the location for my updates to be downloaded to, MCC says that the URPMI-database is locked. Why and how can I unlock it?
 
Old 01-20-2007, 06:17 AM   #2
Paul_md
LQ Newbie
 
Registered: Jan 2007
Location: Lithuania
Distribution: Mandriva 2007 free
Posts: 22

Rep: Reputation: 15
rm -f "/var/lib/urpmi/.LOCK"
rm -f "/var/lib/urpmi/.RPMLOCK"
 
Old 01-20-2007, 07:28 AM   #3
el amigo*
Member
 
Registered: Dec 2006
Location: República Dominicana
Distribution: CentOS, Scientific Linux
Posts: 122

Rep: Reputation: 15
A simple reboot of the PC is usually enough for me...
 
Old 01-21-2007, 03:04 AM   #4
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
I did those two things mentioned in the two posts above, still had the lock thing coming up, eventually I found that it was caused by having a terminal on one desktop that I previously ran a urpmi command, then from another desktop I had another terminal open and was running urpmi commands from it, just had to end the session in the first terminal to avoid the lock error.
Many people in other posts kept telling others it was caused by the same user on a network having two instances of urpmi going at the same time on two computers and just had to end one. Basically that's what I was doing on one computer.
Also happened when I once had the GUI rpmdrake (Mandrake 10.2) open and tried running urpmi commands from terminal.

Last edited by Junior Hacker; 01-21-2007 at 03:07 AM.
 
Old 04-18-2012, 10:41 PM   #5
jhazz
LQ Newbie
 
Registered: Aug 2011
Location: Davao City, Philippines
Posts: 25

Rep: Reputation: 0
Unhappy

Oh my, I have the same problem. If I hadn't found this thread I would post a new thread. I hope this will get enough attention and I hope this will be given an apt solution. Coz just like Kristoffer, I did the same two things too. And nothing happens, indeed. Still it is locked. What exactly must I do?
 
Old 04-25-2012, 05:06 AM   #6
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
It probably won't unlock because it was disrupted during a download or install of a package you instigated(rarely not).

I usually use this easy script,
(You may need to be root to do this....)
Code:
#!/bin/sh
   if [ -f /var/lib/urpmi/.LOCK ]; then
      sudo rm -f /var/lib/urpmi/.LOCK
   fi
   if [ -f /var/lib/urpmi/.RPMLOCK ]; then
      sudo rm -f /var/lib/urpmi/.RPMLOCK
   fi
Then, gui way, go to mmc, install and remove software,

If your using "urpmi" try the "--resume" switch to save some bandwidth.

HTH

Glenn

Last edited by GlennsPref; 04-25-2012 at 05:14 AM. Reason: You may need to be root to do this....
 
Old 04-25-2012, 04:20 PM   #7
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Rep: Reputation: 53
In konsole
$ su -
urpmi.update -av

if still locked, in another konsole type
ps -eaf | grep rpm

Post all these info and somebody should be able to diagnose the prob

Regards
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
urpmi database locked.... againstms Linux - Newbie 2 05-18-2006 04:05 PM
URPMI Database Locked Dooley Mandriva 6 02-07-2006 02:17 AM
urpmi database locked? otto k Mandriva 9 05-17-2005 11:37 AM
urpmi database locked? KiLLaWaBBiT Linux - Software 2 09-06-2004 01:56 AM
urpmi.update --all / urpmi database locked thepoint Mandriva 5 11-05-2003 06:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 11:00 PM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration