LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-08-2003, 11:38 AM   #1
timberwolf
Member
 
Registered: Dec 2003
Location: Singapore
Distribution: Mandrake 9.2
Posts: 128

Rep: Reputation: 15
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
 
Old 12-08-2003, 12:51 PM   #2
salparadise
Senior Member
 
Registered: Nov 2002
Location: Birmingham UK
Distribution: Various
Posts: 1,736

Rep: Reputation: 146Reputation: 146
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)
 
Old 12-19-2003, 06:45 AM   #3
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
check out this url

http://mandrake.vmlinuz.ca/bin/view/Main/UsingUrpmi
 
Old 04-19-2012, 03:04 AM   #4
jhazz
LQ Newbie
 
Registered: Aug 2011
Location: Davao City, Philippines
Posts: 25

Rep: Reputation: 0
i WONDER IF THIS STEP WORKED OUT... ????
 
Old 04-20-2012, 05:03 AM   #5
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: pclinuxos
Posts: 3,392
Blog Entries: 33

Rep: Reputation: 218Reputation: 218Reputation: 218
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.
 
Old 09-09-2015, 05:07 PM   #6
dedanna1029
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Rep: Reputation: 2
Works for me too, although I just run the command(s) from root, I don't use a shell script.
 
1 members found this post helpful.
Old 11-20-2016, 11:48 PM   #7
Millydelev
LQ Newbie
 
Registered: Nov 2016
Location: Ahmedabad
Posts: 1

Rep: Reputation: Disabled
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
 
Old 11-21-2016, 09:14 PM   #8
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 14,616
Blog Entries: 24

Rep: Reputation: 4054Reputation: 4054Reputation: 4054Reputation: 4054Reputation: 4054Reputation: 4054Reputation: 4054Reputation: 4054Reputation: 4054Reputation: 4054Reputation: 4054
You all do realize that, when this thread started, I was still using Windows 2000.
 
2 members found this post helpful.
  


Reply

Tags
urpmi


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
DISCUSSION: unlock rpmdatabase when: RPM DATABASE LOCKED bglnelissen LinuxAnswers Discussion 5 03-01-2008 06:46 AM
urpmi database locked.... againstms Linux - Newbie 2 05-18-2006 04:05 PM
How to unlock urpmi? akihandyman Mandriva 2 05-31-2004 12:45 AM
urpmi.update --all / urpmi database locked thepoint Mandriva 5 11-05-2003 06:03 PM
Urpmi database oldrelac Linux - Newbie 2 08-08-2003 01:04 PM

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

All times are GMT -5. The time now is 06:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration