-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The Sunday 2007-09-23 at 19:51 -0300, Juan Erbes wrote:
> > rpm --rebuilddb [as root]
> >
>
> Yes, I make it many times a day, but it not resolves the problem. The
> rebuilddb does not remove the references to the old packages do'nt
> present in the system (upgraded many times).
> For example now I has rebuilding the rpmdb, and it terminated with:
>
> rpmdb: page 851: illegal page type or format
> rpmdb: PANIC: Argumento inválido
> error: db4 error(-30977) from dbcursor->c_get: DB_RUNRECOVERY: Fatal
> error, run database recovery
> rpmdb: PANIC: fatal region error detected; run recovery
> error: db4 error(-30977) from db->close: DB_RUNRECOVERY: Fatal error,
> run database recovery
> rpmdb: PANIC: fatal region error detected; run recovery
> error: db4 error(-30977) from dbenv->close: DB_RUNRECOVERY: Fatal
> error, run database recovery
I had a similar problem time ago, reported in bugzilla 225630. There was a
database problem upstream, outside of the rpm code, which I don't know if
was even investigated or solved.
What I did in the end was finding at what package the rpm command crashed,
then I forced removal of the package which install made rpm crash and
reinstalled it again, to force the database to clear.
- --
Cheers,
Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Made with pgp4pine 1.76
iD8DBQFG9vNdtTMYHG2NR9URAgq0AJsHuG8R/UiVWQcJSyawri+DaUdShgCfSJO/
jg5I+F/IBmOazitEMCQMcyg=
=DcvH
-----END PGP SIGNATURE-----