... I broke RPM.
Whilst attempting to upgrade RedHat 7.1 to 7.2 manually without
taking the system down (as I did successfully from 7.0->7.2 and
6.2->7.1 on two different boxes) I managed to break RPM somehow.
# rpm -qf /bin/bash
error: cannot open Basenames index using db1 - Invalid argument (22)
file /bin/bash is not owned by any package
# ls -l /var/lib/rpm/
total 21212
-rw-r--r-- 1 rpm rpm 16384 Apr 20 10:08 conflictsindex.rpm
-rw-r--r-- 1 rpm rpm 6004736 Apr 20 10:08 fileindex.rpm
-rw-r--r-- 1 rpm rpm 16384 Apr 20 10:08 groupindex.rpm
-rw-r--r-- 1 rpm rpm 16384 Apr 20 10:08 nameindex.rpm
-rw-r--r-- 1 rpm rpm 15488136 Apr 20 10:08 packages.rpm
-rw-r--r-- 1 rpm rpm 61440 Apr 20 10:08 providesindex.rpm
-rw-r--r-- 1 rpm rpm 57344 Apr 20 10:08 requiredby.rpm
-rw-r--r-- 1 rpm rpm 16384 Apr 20 10:08 triggerindex.rpm
Judging from what I can see in the install script for 'rpm' these files
should have been renamed or converted to db3 format.
Any idea how I can fix this without reinstalling the system? It would
be a shame as querying the installation date for all the packages
show that two of them are left from Dec 6, 1998.
-- Simon Amor simon@shoe.bocks.com ICQ:529466 http://shoe.bocks.com/ -------------------------------------------------------------------- http://www.lug.org.uk http://www.linuxportal.co.uk http://www.linuxjob.co.uk http://www.linuxshop.co.uk --------------------------------------------------------------------
This archive was generated by hypermail 2.1.3 : Sun 21 Apr 2002 - 20:36:22 BST