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

Re: failed to open //var/lib/rpm/packages.rpm



Try rpm -qvv apache

That should give incredibly verbose output that might help us better see
the problem.  Maybe not, but it would be a start.

-Stan

"Pascal J. Bourguignon" wrote:

> > > I have this problem:
> > >
> > >     [pascal@hermes pascal]$ su
> > >     Password:
> > >     [root@hermes pascal]# rpm -q -a
> > >     failed to open //var/lib/rpm/packages.rpm
> > [...]
> > >
> > > What would you do in my case ?
> > >
> >
> > su -
> >
> > df
> >
> > Perhaps /var is not mounted?
>
> Well, thank you for stating  the obvious (sometimes it's usefull), but
> this  will  not  work  this  time  : I  really  have  a  problem  with
> packages.rpm.
>
> [pascal@hermes pascal]$ su -
> Password:
> [root@hermes /root]# rpm -q -a
> failed to open //var/lib/rpm/packages.rpm
>
> rpmQuery: rpmdbOpen() failed
> [root@hermes /root]# df
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/sdc1             1.7G  1.3G  329M  81% /
> /dev/sdc2             1.1G  872M  286M  75% /mnt/usr1
> /dev/sdc3             1.1G  987M  171M  85% /mnt/usr2
> /dev/sdb1             2.0G  521M  1.4G  27% /mnt/usr3
> [root@hermes /root]# ls -l /var/lib/rpm
> 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@hermes /root]# ps ax|grep rpm
> 10647 pts/3    S      0:00 grep rpm
>
> So, is there any "easy" way out of this "failed to open
> //var/lib/rpm/packages.rpm" problem?
>
> Thank you for  the security related hint about su, but  this host is a
> special case  where it's better that I  use su. On my  own machines, I
> routinely use `su -`.
>
> --
> __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/
>
> _______________________________________________
> Rpm-list mailing list
> Rpm-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/rpm-list





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