RPM Community Forums

Mailing List Message of <rpm-users>

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

From: <spam.spam.spam.spam@free.fr>
Date: Thu 28 May 2009 - 10:35:22 CEST
Message-ID: <1243499722.4a1e4ccad6680@imp.free.fr>
Selon Jeff Johnson <n3npq@mac.com>:

>
> On May 27, 2009, at 6:34 PM, spam.spam.spam.spam@free.fr wrote:
> >
> > And now If I do :
> >
> > # rpm --macros /lib/rpm/macros --rebuilddb
> > Freeing read locks for locker 0x1: 27931/3079952080
> > Freeing read locks for locker 0x3: 27931/3079952080
> > Freeing read locks for locker 0x4: 27931/3079952080
> > Freeing read locks for locker 0x5: 27931/3079952080
> >
>
> You will see this every time rpm exits abnormally,
> in this case a segfault.
>
> Good. That largely confirms that Berkeley DB is functional.
>
>
> > It works !
> > I see files into /var/lib/rpm :
> > Basenames  Packages  Providename  Pubkeys  __db.001  __db.002  __db.
> > 003
> > __db.004
> >
> > But I can't install a package :
> > rpm --macros /lib/rpm/macros -i 8Kingdoms-1.1.0-6.fc9.i386.rpm
> > warning: 8Kingdoms-1.1.0-6.fc9.i386.rpm: Header V3 DSA signature:
> > NOKEY, key ID
> > 4ebfc273
> > error: ^(?:([^:-]+):)?([^:-]+)(?:-([^:-]+))?(?::([^:-]+))?$: regcomp
> > failed:
> > Invalid preceding regular expression
>
> All package dependencies are parsed using libpcre.
>
> You are failing to compile the pattern used to parse
> dependency E:V-R into pieces for comparison. The segfault
> is derivative from the failure to compile the PCRE pattern.
>
> Which likely means that rpm is misbuilt.
>
> What platform are you using? RPM needs either a patched
> regex emulation if the external "system" library was
> used for -lpcre, or needs to be built with the internal
> PCRE libraray (which has the patch applied).
>
> The patch renames regex(3) emulation symbols, is commonly used
> on Debian and PLD, is not used with RHEL/Fedora derived systems.
>
> Likely easiest fix is to configure the RPM build using
> 	--with-pcre=internal
>
> But you can also add --nodeps to disable dependency checking
> if you just want to see some package install.
>
> Again add -vv to see what is happening, or where an install is failing.
>
> 73 de Jeff
> ______________________________________________________________________
> RPM Package Manager                                    http://rpm5.org
> User Communication List                             rpm-users@rpm5.org
>

Ok... So I need libpcre or I can use --nodeps (read the dependances is very
important! Maybe I should install libpcre).
I am on Slackware 12.2 and pcre-7.7 in installed. But I said to the configure
script : --without-pcre.
Hum, It's strange... I say "--without-pcre" and it try to use it during the
install of a RPM package.

Now watch what rpm say when I try with --nodeps :

#rpm --nodeps --macros /lib/rpm/macros -i 8Kingdoms-1.1.0-6.fc9.i386.rpm
warning: 8Kingdoms-1.1.0-6.fc9.i386.rpm: Header V3 DSA signature: NOKEY, key ID
4ebfc273
error: unpacking of archive failed: cpio: Bad magic

I am sure I need to install CPIO now...
Oh my god, so much dependencies for RPM, my chroot system will be big...

Well, If I understand, I need these two :
http://www.pcre.org/
http://www.gnu.org/software/cpio/

Isn't it?
Received on Thu May 28 10:35:46 2009
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.