LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 07-15-2004, 03:38 PM   #1
Dooley
Member
 
Registered: Jun 2004
Location: Lighting Capitol Of The World
Distribution: Debian
Posts: 56

Rep: Reputation: 15
URPMI Database Locked


Hello everyone,
Seems as though I am stuck again.
I have tried for a couple of days now to get easy urpmi to work with no avail.
I thought I might have done something wrong the first time I tried to use easy
urpmi so I go back to the easy urpmi site and go thru the process again, everything
seemed to go fine with that part but when I try to get any rpm files I get a error which
says" urpmi database locked".

Help! what did I do wrong.

I know it has got to be something I did wrong as no one else seems to have
any problems with easy urpmi.

Thanks in advance.
Dooley
 
Old 07-15-2004, 03:46 PM   #2
courtrrb
Member
 
Registered: Sep 2003
Location: Iowa, US
Distribution: MDK Since V6.5
Posts: 570

Rep: Reputation: 30
Two lock files are created in '/var/lib/urpmi' - .LOCK and .RPMLOCK. If either of these exist, delete them. Then rerun rpm or urpmi.
 
Old 07-15-2004, 05:02 PM   #3
otish1000c
Member
 
Registered: May 2004
Location: Pennsylvania, USA
Distribution: dual boot.... Mandrake 10.0OE/10.xcooker
Posts: 611

Rep: Reputation: 30
2 methods to overcome the dreaded "locked" urpmi database...........

easiest, no fail method.............. reboot!

or...........

open a terminal, su to root, type............ ps -aux (hit enter)

look for any processes called urpmi &/or curl, not the PID number associated with them in the second from left column, then type............. kill (PID number goes here) (hit enter)

example: kill 8949

otis
 
Old 07-15-2004, 05:05 PM   #4
Dooley
Member
 
Registered: Jun 2004
Location: Lighting Capitol Of The World
Distribution: Debian
Posts: 56

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by courtrrb
Two lock files are created in '/var/lib/urpmi' - .LOCK and .RPMLOCK. If either of these exist, delete them. Then rerun rpm or urpmi.
Thank you very much courtrrb. I found the two files you mentioned and deleted them.

You say to rerun uprmi, do I need to go back to the easy urpmi site and start over, or do I just continue with urpmi as is.

Thanks again.
Dooley
 
Old 07-15-2004, 05:20 PM   #5
courtrrb
Member
 
Registered: Sep 2003
Location: Iowa, US
Distribution: MDK Since V6.5
Posts: 570

Rep: Reputation: 30
I'am not at right now I believe thats it. nope just run urpmi (filename.rpm)
 
Old 01-13-2005, 11:30 PM   #6
djabbot
Member
 
Registered: Jan 2005
Location: Normal, IL
Distribution: Ubuntu
Posts: 88

Rep: Reputation: 15
Ive noticed that a lot of people are having this problem. I was too when i was trying to update my Urpmi FTP Source from their website (http://easyurpmi.zarb.org). I tried deleting the .LOCK & .RPMLOCK files but it wouldnt allow me to. this is what i did to get past it and update my FTP sources. (BTW- Im on Mandrake 10.0)

I created a new user just called "rootuser" and gave it access to the root group. logged in with that user and ran the FTP addy updates in console using Super User as my rootuser and it worked fine without having to delete those .lock / .rpmlock files. now the new sources are listed in my RPMDrake list so i can use the GUI update program to get all the new files rather than having to use urpmi from console. I imagine the update will still work from another distro.

-------------edit-------------

after trying again to do this from my regular user account i realized this. it didnt matter that i made a root account. its just that i restarted my computer. so thats all i had to do. if your urpmi is locked, just try restarting your computer.

Last edited by djabbot; 01-15-2005 at 02:54 AM.
 
Old 02-07-2006, 03:17 AM   #7
debabrata
LQ Newbie
 
Registered: Feb 2006
Distribution: mandrake 10.0
Posts: 1

Rep: Reputation: 0
If a particular instance of uprmi.addmedia is running, does a query uprmq .... throw the message of "uprmi database locked" ???
 
  


Reply


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
urpmi database locked.... againstms Linux - Newbie 2 05-18-2006 05:05 PM
urpmi database locked? otto k Mandriva 9 05-17-2005 12:37 PM
urpmi database locked? KiLLaWaBBiT Linux - Software 2 09-06-2004 02:56 AM
urpmi database locked! /home/kyle Mandriva 3 03-09-2004 07:05 AM
urpmi.update --all / urpmi database locked thepoint Mandriva 5 11-05-2003 07:03 PM


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

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration