[ILUG] wierd rpm problem
John P. Looney
john at antefacto.com
Wed Jan 9 15:42:56 GMT 2002
I have an installed RPM database (in a chrooted environment) which seems
to work. I can do stuff like;
rpm -i package.rpm --root /tmp/chroot
all lovely.
rpm -qa --root /tmp/chroot
lists it back for me. However, when I do
# chroot /tmp/chroot
bash-2.04# rpm -qa
error: unrecognized db option: "db3" ignored.
error: cannot open Packages index using db1 - No such file or directory (2)
bash-2.04# rpm --rebuilddb
error: unrecognized db option: "db3" ignored.
error: unrecognized db option: "db3" ignored.
error: unrecognized db option: "db3" ignored.
error: cannot open Name index using db1 - Invalid argument (22)
error: unrecognized db option: "db3" ignored.
error: cannot open Basenames index using db1 - Invalid argument (22)
error: unrecognized db option: "db3" ignored.
error: cannot open Group index using db1 - Invalid argument (22)
error: unrecognized db option: "db3" ignored.
error: cannot open Requirename index using db1 - Invalid argument (22)
error: unrecognized db option: "db3" ignored.
error: cannot open Providename index using db1 - Invalid argument (22)
error: unrecognized db option: "db3" ignored.
error: cannot open Dirnames index using db1 - Invalid argument (22)
error: unrecognized db option: "db3" ignored.
error: cannot open Requireversion index using db1 - Invalid argument (22)
error: unrecognized db option: "db3" ignored.
error: cannot open Provideversion index using db1 - Invalid argument (22)
error: unrecognized db option: "db3" ignored.
error: cannot open Installtid index using db1 - Invalid argument (22)
error: unrecognized db option: "db3" ignored.
error: unrecognized db option: "db3" ignored.
[ repeat hundreds of times ]
# rpm -qa
[ nice pretty output ]
However, the --rebuilddb seems to make up a /var/lib/rpm/packages.rpm -
which is the old "rpm dbv1" format. Bah. Any idea why this would be ?
John
--
_______________________________________
John Looney Chief Scientist
a n t e f a c t o t: +353 1 8586004
www.antefacto.com f: +353 1 8586014
More information about the ILUG
mailing list