RPM Community Forums

Mailing List Message of <rpm-devel>

Re: Error when installing a new system with HEAD from a couple of days ago

From: Jeff Johnson <n3npq@mac.com>
Date: Tue 26 Jan 2010 - 05:42:37 CET
Message-id: <7D5B6FB5-014C-4896-B92A-0FB2D79B3AF8@mac.com>

On Jan 25, 2010, at 3:22 PM, Bernhard Rosenkränzer wrote:

> Hi,
> trying to install a new system into a chroot jail currently fails:
> 
> # rpm -r /mnt/dest -ivh /RPMS/*.rpm
> rpm: rpmdb.c:254:dbiOpen: Assertion `__dbapi == 3 || __dbapi == 4' failed.
> 
> (The same thing works if I run the command from a proper system rather
> than a stripped down system that doesn't have an rpmdb by itself, so
> without looking into it deeply, I think it's trying to open the system
> rpmdb for some reason instead of creating the one in /mnt/dest).
> 

The path to the macros file is usually the cause of the failure.

(aside)
This assert bites me every other week or so, particularly on new installs.

hth

73 de Jeff


> ttyl
> bero
> ______________________________________________________________________
> RPM Package Manager                                    http://rpm5.org
> Developer Communication List                        rpm-devel@rpm5.org
Received on Tue Jan 26 05:42:58 2010
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.