[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Running rpm inside mock's chroot



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"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]