[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: failed to open //var/lib/rpm/packages.rpm
- From: "Pascal J. Bourguignon" <pjb imaginet fr>
- To: satan fastdial net
- Cc: rpm-list redhat com
- Subject: Re: failed to open //var/lib/rpm/packages.rpm
- Date: Thu, 14 Sep 2000 22:21:14 +0200 (CEST)
> Date: Thu, 14 Sep 2000 12:34:33 -0400
> From: Stan Bubrouski <satan@fastdial.net>
>
> How about typing: file /var/lib/rpm/* this will tell us if your database is
> ok or screwed
> beyond repair. Here's the output from my healthy rpm (v4) database:
> [root@king aolserver3_1]# file /var/lib/rpm/*
> /var/lib/rpm/Basenames: Berkeley DB 2.X Hash/Little Endian (Version
> 7, Logical sequence number: file - 0, offset - 0, Bucket Size 4096, Overflow
> Point 2048, Last Freed 605, Max Bucket 0, High Mask 0x0, Low Mask 0x0, Fill
> Factor 0, Number of Keys 0)
> [...]
A good point. I already looked at this result, but since it's not
specific, I did not include it to my previous messages.
[pascal@hermes tmp]$ file /var/lib/rpm/*
/var/lib/rpm/conflictsindex.rpm: data
/var/lib/rpm/fileindex.rpm: data
/var/lib/rpm/groupindex.rpm: MP32, 44.1 kHz, Stereo
/var/lib/rpm/nameindex.rpm: data
/var/lib/rpm/packages.rpm: data
/var/lib/rpm/providesindex.rpm: data
/var/lib/rpm/requiredby.rpm: data
/var/lib/rpm/triggerindex.rpm: data
But on another installation (same rpm-3.0.3), it looks like:
[root@triton /root]# file /var/lib/rpm/* |head -2
/var/lib/rpm/conflictsindex.rpm: Berkeley DB 1.85 Hash/Little Endian (Version 2, Bucket Size 4096, Bucket Shift 12, Directory Size 256, Segment Size 256, Segment Shift 8, Overflow Point 1, Last Freed 2, Max Bucket 1, High Mask 0x3, Low Mask 0x1, Fill Factor 65536, Number of Keys 22)
/var/lib/rpm/fileindex.rpm: Berkeley DB 1.85 Hash/Little Endian (Version 2, Bucket Size 4096, Bucket Shift 12, Directory Size 256, Segment Size 256, Segment Shift 8, Overflow Point 10, Last Freed 192, Max Bucket 581, High Mask 0x3ff, Low Mask 0x1ff, Fill Factor 176, Number of Keys 60653)
Shall I forget all hope? Is there any tool to recover Berkely DB 1.85
databases? Or gdbm-1.85? since it seems it is this implementation I
have.
[pascal@hermes rpm]$ ls -l
total 22217
-rw-r--r-- 1 root root 16384 Nov 28 1999 conflictsindex.rpm
-rw-r--r-- 1 root root 4861952 Nov 28 1999 fileindex.rpm
-rw-r--r-- 1 root root 24576 Nov 28 1999 groupindex.rpm
-rw-r--r-- 1 root root 49152 Nov 28 1999 nameindex.rpm
-rw-r--r-- 1 root root 14906824 Nov 28 1999 packages.rpm
-rw-r--r-- 1 root root 49152 Nov 28 1999 providesindex.rpm
-rw-r--r-- 1 root root 2727936 Nov 28 1999 requiredby.rpm
-rw-r--r-- 1 root root 16384 Nov 28 1999 triggerindex.rpm
[root@triton rpm]# ls -l
total 24177
drwxr-xr-x 2 root root 1024 Feb 14 1996 ./
drwxr-xr-x 15 root root 1024 Nov 7 1999 ../
-rw-r--r-- 1 root root 16384 Sep 2 08:26 conflictsindex.rpm
-rw-r--r-- 1 root root 4988928 Sep 2 08:26 fileindex.rpm
-rw-r--r-- 1 root root 24576 Sep 2 08:26 groupindex.rpm
-rw-r--r-- 1 root root 49152 Sep 2 08:26 nameindex.rpm
-rw-r--r-- 1 root root 16309192 Sep 2 08:21 packages.rpm
-rw-r--r-- 1 root root 49152 Sep 2 08:26 providesindex.rpm
-rw-r--r-- 1 root root 4923392 Sep 2 08:26 requiredby.rpm
-rw-r--r-- 1 root root 16384 Sep 2 08:26 triggerindex.rpm
> Mate Wierdl wrote:
>
> > On Thu, Sep 14, 2000 at 01:23:49AM +0200, Pascal J. Bourguignon wrote:
> >
> > > Well, thank you, I did not thought of using -vv. Here are the results:
> > >
> > > [root@hermes /root]# rpm -qvv apache
> > > D: opening database mode 0x0 in //var/lib/rpm/
> > > failed to open //var/lib/rpm/packages.rpm
> > >
> > > rpmQuery: rpmdbOpen() failed
> > >
> > > [root@hermes /root]# rpm -q -a -vv
> > > D: opening database mode 0x0 in //var/lib/rpm/
> > > failed to open //var/lib/rpm/packages.rpm
> > >
> > > rpmQuery: rpmdbOpen() failed
> > >
> > > Not much more helpful...
> >
> > So what did you get when you tried
> >
> > rpm --rebuilddb
> >
> > and how are the permissons on /var and /var/lib ?
> >
> > Mate
> >
> > _______________________________________________
> > Rpm-list mailing list
> > Rpm-list@redhat.com
> > https://listman.redhat.com/mailman/listinfo/rpm-list
>
>
--
__Pascal Bourguignon__ PGP Key ID: 0xEF5E9966
mailto:pjb@imaginet.fr PGP fingerprint: 00 F5 7B DB CA 51 8A AD 04 5B
http://www.imaginet.fr/~pjb/ 6C DE 32 60 16 8E EF 5E 99 66
() Join the ASCII ribbon campaign against html email and Microsoft attachments.
/\ Rejoignez la campagne du ruban ASCII, contre les couriels html
et les pièces jointes Microsoft.
Software patents are endangering the computer industry in the US and around
the world. Join the LPF and help the cause. http://lpf.ai.mit.edu/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]