[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>
> Date: Tue, 12 Sep 2000 20:27:00 +0200 (CEST)
>
> Hello!
> 
> I have this problem:
> 
>     [pascal@hermes pascal]$ su
>     Password: 
>     [root@hermes pascal]# rpm -q -a
>     failed to open //var/lib/rpm/packages.rpm
> 
>     rpmQuery: rpmdbOpen() failed
>     [root@hermes pascal]# rpm --rebuilddb
>     failed to open //var/lib/rpm/packages.rpm
> 
>     [root@hermes pascal]# rpm --initdb
>     [root@hermes pascal]# rpm -q -a
>     failed to open //var/lib/rpm/packages.rpm
> 
>     rpmQuery: rpmdbOpen() failed
>     [root@hermes pascal]# rpm --version
>     RPM version 3.0.3
> 
> What would you do in my case ?
> 
> I'm  going  to  `find  /  -print`  to  find  out  on  another  similar
> installation what  packages were installed,  then remove /var/lib/rpm,
> then  rebuild a  new  rpm  db, and  re-install  every packages,  being
> carefull of  saving current configuration files. Would  this be right?
> Note that this is on a  production machine that should not be restared
> if possible. We need to upgrade some packages for security patches.


Well, thank you  for the help. Not much, but at  least, it showed that
there wasn't already anything to help me, so I helped myself :-)

I finally took the steps needed  to rebuild really a RPM database.  In
the  process, I  learned  that --rebuilddb  is  REALLY AND  COMPLETELY
USELESS. May  be the authors and  contributors to rpm  could take some
idea from this email to actually implement a true --rebuilddb option.

The main idea is to use:

    rm -f /var/lib/rpm/* ; rpm --initdb

and:

    rpm -i -v --nodeps --noscripts --notriggers --excludepath / packages...

to  fill a package  database without  really installing  anything (not
overriding installed files, not running any script, ...). This is done
in the  seventh step; everything  before I made  to recover a  list of
installed packages.

This is not  perfect, since some packages I  have upgraded or modified
the source and upgraded. I  should have checked for /usr/src/RPMS too;
I'll  update the database  later by  hand to  synchronize it  with the
handfull of packages I touched after the initial installation.


This  email could  be  edited and  added  to a  HOW-TO  about RPM.   I
herefore relinquish  all copyright and  put it into the  public domain
(excepting the source of a tool included that is GPLed).

Here you are:

+------------------------------------------------------------------+
| COOKBOOK PROCEDURE TO REBUILD A RPM DATABASE DAMAGED BEYOND HOPE |
+------------------------------------------------------------------+          

####
#### BEWARE, THIS IS NOT AN AUTOMATIC SCRIPT!
####
#### Use this only as a guideline to rebuild your rpm database.
####


#####
# 1 # Find the files currently installed.
#   # ON THE HOST WHO LOST ITS RPM DATABASE.
#####

find / -print | sort > /tmp/dsk-contents



#####
# 2 # Find all the files installed by the installation RPMs, 
#   # with their corresponding RPM.
#####

losetup /dev/loop0  /mnt/usr3/mandrake/mandrake61-1.iso 
mount -o ro -t iso9660 /dev/loop0 /mnt/cdrom

cd /mnt/cdrom/Mandrake/RPMS
rm -f /tmp/rpm-contents
for f in *.rpm ; do 
    rpm -q -l -p $f \
    | awk -v pn=$f '{printf "%s:%s\n",pn,$0;}' >> /tmp/rpm-contents
done
sort -t: +1 -o /tmp/rpm-contents /tmp/rpm-contents



#####
# 3 # Obtain the actually installed RPMs.
#####

cat << EOF | uudecode
begin 644 lgetvalue-src.tar.gz
M'XL(`,_DPCD"`^W40W<E`).`X=BV;;MCFQW;1L?6C9V.;71LV[9MVTG'=[Z9
M,^OY`]//XCVG=G5J4<31,""S1P,\(.!7^CXNFRT-M[TGI<+725JRXAE+@XK%
M8RX8JS/*EVM$0AM96>YL31`R78G2^HD-ARZ)'^NW@GVE-.OV=JTY<.R19F!:
M#.[8T<18$!Q$8WL3>+/%-S[;U;=$E+B2TVOEJ_N++!X7D@_L\KNX?"<MRKLU
M:A4_9ZI$WQ67B,-S7#/?`H]A[[>7'CI7/)UXE)`L3"=]X%)SV6)5WXDW?S]-
M;D/;#[(@FG9JZ!8#=9H;JI\,=VNN^UP:6W[=^%+'0)^0__B:?NY]/A!)<I_C
MV7*H$E$I*29LB=O1;]J='WR9UY;:79P1S,ZY[2U5H1ZUS`$N,,V\*#W/S+]]
MGXOX(,L]'!*_S+XH\E&?YAR2*PCSNE"K>-XP""^0.0[/.7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.tar.gz | tar xf -
cd lgetvalue-src
make all test


./lgetvalue    --field-separator=: \
               --key-position=2 \
               --value-position=1 \
               /tmp/rpm-contents /tmp/dsk-contents \
| sort -u > /tmp/rpm-installed



#####
# 4 # Reinitialize a new rpm database.
#####

mv /var/lib/rpm /var/lib/rpm-damaged-beyond-hope
mkdir /var/lib/rpm
rpm --initdb



#####
# 5 # Let rpm say what problems there may be 
#   # (trying to do a pseudo-installation.
#####

cd /mnt/cdrom/Mandrake/RPMS
rpm -i -v --noscripts --notriggers --excludepath /  `cat /tmp/rpm-installed`



#####
# 6 # Correct the list of installed RPMs.
#####

emacs /tmp/rpm-installed


#####
# 7 # Rebuild the rpm data base, without installing any file 
#   # nor running any script.
#####

rpm -i -v --nodeps --noscripts --notriggers --excludepath /  \
    `cat /tmp/rpm-installed `


#####
# 8 # Check you have a valid rpm database.
#####

rpm -q -a 



-- 
__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.
/\ Software patents are endangering the computer industry all around the world.
   Join the LPF:     http://lpf.ai.mit.edu/      http://petition.eurolinux.org/





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