PDA

View Full Version : rpm --initdb error: cannot open Packages index using db3



powah
22nd April 2008, 09:37 PM
# rpm --initdb
error: cannot open Packages index using db3 - No such file or directory (2)

# rpm --rebuilddb
error: cannot open Packages index

How to fix this problem?

leigh123linux
22nd April 2008, 09:41 PM
Try



su
rm -rf /var/lib/rpm/__db*
rpm --rebuilddb

powah
23rd April 2008, 02:14 PM
Try



su
rm -rf /var/lib/rpm/__db*
rpm --rebuilddb


The old problem is solved but another problem appeared.
# make
...
error: cannot open Providename index using db3 - No such file or directory (2)
error: cannot open Name index using db3 - No such file or directory (2)
error: cannot open Basenames index using db3 - No such file or directory (2)
error: cannot open Conflictname index using db3 - No such file or directory (2)
error: failed build dependencies:
perl is needed by app_server-4.9.9-9
openssl-devel is needed by app_server-4.9.9-9
sharutils is needed by app_server-4.9.9-9
tcp_wrappers is needed by app_server-4.9.9-9
/bin/login is needed by app_server-4.9.9-9
glibc-devel is needed by app_server-4.9.9-9
pam is needed by app_server-4.9.9-9
make: *** [linux_rpm_server] Error 1