LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   How to unlock urpmi database? (https://www.linuxquestions.org/questions/mandriva-30/how-to-unlock-urpmi-database-123884/)

timberwolf 12-08-2003 11:38 AM

How to unlock urpmi database?
 
I just tried to update my Mandrake 9.2 using the update software but there was an error that said "urpmi databased locked". How do i unlock the urpmi database?

-Aquila

salparadise 12-08-2003 12:51 PM

you can try "urpmi.update -a" from the command line
as root if it doesn't work as user

(rebooting has always sorted this one for me)

LinuxLala 12-19-2003 06:45 AM

check out this url

http://mandrake.vmlinuz.ca/bin/view/Main/UsingUrpmi

jhazz 04-19-2012 03:04 AM

i WONDER IF THIS STEP WORKED OUT... ????

GlennsPref 04-20-2012 05:03 AM

This works for me, as a shell script,
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

Make it executable, and your going without a reboot.

dedanna1029 09-09-2015 05:07 PM

Works for me too, although I just run the command(s) from root, I don't use a shell script.

Millydelev 11-20-2016 11:48 PM

Either reboot
 
Either reboot, or delete by hand the lock file. If I can recall well (not using Mandriva anymore) it's named urpmi.lock and its placed in /etc

frankbell 11-21-2016 09:14 PM

You all do realize that, when this thread started, I was still using Windows 2000.


All times are GMT -5. The time now is 04:26 AM.