Fedora Linux Support Community & Resources Center
Old 5th August 2005, 08:38 PM
zhouxjgester Offline
Registered User
Join Date: Aug 2005
Posts: 1
rpm install failed if specified --dbpath

I try to install something on a SuSe 8 box, the rpm version is 3.0.6.

However, if I run following command:

rpm -ivh --dbpath /home/mydir/tmp xxx.rpm

It always failed with following error msg:

cannot get exclusive lock on database
error: cannot open /home/mydir/tmp/packages.rpm

Even if I use root, it still fails if I specified --dbpath.

But if I do not specify --dbpath and run the rpm as root, it works.

/home/mydir/tmp is an empty directory I created for the this test. So it's not due to write permission.

Can any one shed a light for me?
Reply With Quote
Old 6th August 2005, 06:00 AM
markkuk Offline
Registered User
Join Date: Apr 2005
Location: Finland
Posts: 5,072
You don't have a valid RPM database in /home/mydir/tmp. Try creating one by "rpm --rebuilddb --dbpath /home/mydir/tmp".
Reply With Quote

dbpath, failed, install, rpm

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
'Local install failed' when install LAM/MPI ? help hondacodonbk Using Fedora 0 10th May 2009 08:46 PM
yum install failed lesliewind Using Fedora 2 24th November 2006 10:52 PM
Install GCC failed. sOnIc Using Fedora 2 24th September 2004 08:00 PM

Current GMT-time: 02:09 (Saturday, 23-09-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat