after upgrading to rpm-2.5.7-1, # rpm -q rpm cannot open file //var/lib/rpm/nameindex.rpm: rpmQuery: rpmdbOpen() failed # ls -l /var/lib/rpm total 13490 -rw-r--r-- 1 root root 16384 Dec 28 10:43 conflictsindex.rpm -rw-r--r-- 1 root root 5259264 Dec 28 10:43 fileindex.rpm -rw-r--r-- 1 root root 16384 Dec 28 10:43 groupindex.rpm -rw-r--r-- 1 root root 28672 Dec 28 10:43 nameindex.rpm -rw-r--r-- 1 root root 9449608 Dec 28 10:43 packages.rpm -rw-r--r-- 1 root root 24576 Dec 28 10:43 providesindex.rpm drwxr-xr-x 2 root root 1024 Dec 28 10:46 rebuilddb.20258 drwxr-xr-x 2 root root 1024 Dec 28 10:46 rebuilddb.20259 drwxr-xr-x 2 root root 1024 Nov 30 15:12 rebuilddb.8 -rw-r--r-- 1 root root 53248 Dec 28 10:43 requiredby.rpm -rw-r--r-- 1 root root 16384 Dec 28 10:43 triggerindex.rpm # rpm --rebuilddb cannot open file //var/lib/rpm/nameindex.rpm: #
Try rpm --rebuilddb and reopen this bug if there is still a problem.
# rpm --rebuilddb cannot open file //var/lib/rpm/nameindex.rpm: # ls -l /var/lib/rpm/ total 13538 1 drwxr-xr-x 3 root root 1024 Dec 28 16:13 ./ 1 drwxr-xr-x 7 root root 1024 Aug 2 10:30 ../ 14 -rw-r--r-- 1 root root 16384 Dec 28 14:57 conflictsindex.rpm 4084 -rw-r--r-- 1 root root 5259264 Dec 28 14:57 fileindex.rpm 14 -rw-r--r-- 1 root root 16384 Dec 28 14:57 groupindex.rpm 22 -rw-r--r-- 1 root root 28672 Dec 28 14:57 nameindex.rpm 9315 -rw-r--r-- 1 root root 9499208 Dec 28 14:57 packages.rpm 22 -rw-r--r-- 1 root root 24576 Dec 28 14:57 providesindex.rpm 1 drwxr-xr-x 2 root root 1024 Dec 28 16:13 rebuilddb.23848/ 50 -rw-r--r-- 1 root root 53248 Dec 28 14:57 requiredby.rpm 14 -rw-r--r-- 1 root root 16384 Dec 28 14:57 triggerindex.rpm
rpm-2.5.7 now looks for (and uses) the "original db-1.85" rather than attemptimg to use the (apparently broken) db_185.h retrofit. Fixed in rpm-2.5.7-2.