LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-13-2004, 01:02 AM   #1
liljhand
Member
 
Registered: May 2004
Location: Brampton, ONT.
Distribution: Ubuntu Hoary the Hedgehog
Posts: 90

Rep: Reputation: 15
rpm installs


i cannot install any rpm files in mandrake it always gives the same error

error: cannot open lock file ///var/lib/rpm/RPMLOCK in exclusive mode
error: cannot open Packages database in /var/lib/rpm

i cd to the directory where the file is and then i use

: rpm -Uvh filename.i386.rpm
any suggestions
 
Old 05-13-2004, 01:08 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
try it as root

have looked at info rpm and man rpm for the keywords "exclusive mode"?
Simon
 
Old 05-13-2004, 01:16 AM   #3
liljhand
Member
 
Registered: May 2004
Location: Brampton, ONT.
Distribution: Ubuntu Hoary the Hedgehog
Posts: 90

Original Poster
Rep: Reputation: 15
im
logged in as root
 
Old 05-14-2004, 05:54 PM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Can you give a specific example - show everything you type in and paste the exact output.

for eg. to install the synce files I would do something like:

rpm -ivh synce*.rpm

from the directory with all the rpm's in it.

the -i says install (-U is "update" but I didn't have any version of synce at the time)

the -v says "verbose" (you could try -vv for "very verbose") which prints the error messages and tells you where it is up to.

the -h means "print hashes" and it is used with -v to show a "######..." style status bar.

all the packages start with "synce" and end in ".rpm" but are identified by whatever is in between. Using the "*" wildcard here saved typing though sometimes the files get unpacked in the wrong order.

Now, I've looked at the texinfo on rpm and the list of modes here does not include one called "exclusive mode" which is why I want to see the exact output, so I get more contextual info.

Simon
 
Old 05-14-2004, 06:01 PM   #5
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Seth Vidal, in the python-rpm mailing list, writes (in reply to Tor Hveem):

---------------------------------------
On Sun, 2004-03-21 at 21:42 +0100, Tor Hveem wrote:

> Sundag 21. mars 2004 21:33 skreiv seth vidal:
> > On Sun, 2004-03-21 at 21:30 +0100, Tor Hveem wrote:
> > > I believe this lock "feature" was introduced in RPM4.1. I am currently
> > > using RPM4.2. (Mandrake Cooker)
> >
> > I've never seen RPMLOCK in 4.1 or 4.2 at all.
>
> Silly me, Mandrake actually patches their RPM to include this lock
> functionality. But I'm still wondering how to free it from python. But maybe
> I should bug Mdk about that.
>

yah, you probably should, I've never heard of this RPMLOCK thing before
and since it is a MDK-specific thing you're best off bugging them.
--------------------------------------------

This would suggest that your version of rpm does not include the lock feature. You could try upgrading rpm to the latest version or get the patch (implied above) offa Mandrake folk.

Simon
 
Old 05-14-2004, 06:08 PM   #6
liljhand
Member
 
Registered: May 2004
Location: Brampton, ONT.
Distribution: Ubuntu Hoary the Hedgehog
Posts: 90

Original Poster
Rep: Reputation: 15
thx
it worked
 
Old 05-14-2004, 06:21 PM   #7
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Wink

Wunderbar!

And the lesson in this is ... try google. That's how I found that ms.
TTFN
Simon
 
  


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
Common Problem with all RPM installs Airhead315 Linux - Newbie 6 09-28-2005 05:37 AM
Using RPM Libraries for Source Installs RemusX2 Linux - Software 0 07-08-2004 02:21 AM
rpm installs, *.so.* files? Computergirl24 Mandriva 25 01-16-2004 11:37 AM
RPM installs, but doesn't keegan Linux - Software 6 01-06-2004 12:49 PM
RPM Installs... but what do you do afters? jimdaworm Linux - Newbie 3 08-21-2003 07:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:43 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