2016/11/05
Como solucionar: DB_RUNRECOVERY Fatal error, run database recovery
Al tratar de actualizar, en mageia se mostraba este error:
rpmdb: page 18816: illegal page type or format
rpmdb: PANIC: Invalid argument
rpmdb: Packages: pgin failed for page 18816
error: db4 error(-30974) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30974) from dbcursor->c_close: DB_RUNRECOVERY: Fatal error, run database recovery
No Packages marked for Update
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30974) from db->close: DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30974) from db->close: DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: File handles still open at environment close
rpmdb: Open file handle: /var/lib/rpm/Packages
rpmdb: Open file handle: /var/lib/rpm/Name
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30974) from dbenv->close: DB_RUNRECOVERY: Fatal error, run database recovery
La solución es mover o borrar los siguientes archivos:
Mover:
# mv /var/lib/rpm/__db* /tmp/
# rpm -rebuilddb
Borrar:
# rm /var/lib/rpm/__db*
# rpm -rebuilddb
Suscribirse a:
Enviar comentarios (Atom)
No hay comentarios:
Publicar un comentario