RPM Community Forums

Mailing List Message of <rpm-users>

Re: error: cannot open Packages database in /var/lib/rpm

From: Jeff Johnson <n3npq@mac.com>
Date: Thu 26 Jul 2007 - 21:59:25 CEST
Message-Id: <81995F45-86B0-42A7-AA2B-7530FE7CBFD0@mac.com>

On Jul 26, 2007, at 3:51 PM, Robert Scheck wrote:

> Ideas? I was using rpm 4.5-0.3 switched to -0.4 and switched back  
> to -0.3
> after that I've this or very similar errors for every rpmdb action.
>
> # rpm -vvv -qa
> D: dbiOpen: _dbiapi failed
> error: cannot open Packages database in /var/lib/rpm
> #
>

You've lost macro configuration, likely because -0.3 was
around the time I was adding /usr/lib/rpm/@VERSION@/macros.

Check rpm --showrc, I suspect most everything has gone AWOL.

Check rpm --showrc | grep dbi with a functioning rpm
to see what should be there.

73 de Jeff
Received on Thu Jul 26 21:59:26 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.