Running rpm inside mock's chroot

Ville Skyttä ville.skytta at iki.fi
Tue Jun 6 21:20:14 UTC 2006


On Tue, 2006-06-06 at 15:10 -0600, Orion Poplawski wrote:

> bash-3.1# rpm -qa
> rpmdb: Program version 4.3 doesn't match environment version
> error: db4 error(-30974) from dbenv->open: DB_VERSION_MISMATCH: Database 
> environment version mismatch
> error: cannot open Packages index using db3 -  (-30974)
> error: cannot open Packages database in /var/lib/rpm
> 
> Any ideas why?

The db was probably generated from outside of the chroot with the host's
rpm, not the one in the chroot, and the two aren't compatible.  You
should be able to use the host one for querying, like "rpm
--root /var/lib/mock/$dist/root -qa"




More information about the fedora-extras-list mailing list