rpm database corrupted after fedeup from 20 to 21

Adam Williamson adamwill at fedoraproject.org
Tue Dec 23 20:13:12 UTC 2014


On Tue, 2014-12-23 at 08:06 -0800, Mick wrote:
> Hi;
>   I was running FC20 fully updated.
> [root at localhost ~]#  fedup --network 21 --product=nonproduct
> 
> Which worked.
> Now when I try to 'yum update'
> [root at localhost ~]# yum update
> error: rpmdb: BDB0641 __db_meta_setup: /var/lib/rpm/Packages: 
> unexpected file type or format
> error: cannot open Packages index using db5 - Invalid argument (22) 
> error: cannot open Packages database in /var/lib/rpm
> CRITICAL:yum.main:
> 
> Error: rpmdb open failed
> [root at localhost ~]#
> 
> Or rpm--rebuilddb
> [root at localhost ~]# rpm --rebuilddb
> error: rpmdb: BDB0641 __db_meta_setup: /var/lib/rpm/Packages: 
> unexpected file type or format
> error: cannot open Packages index using db5 - Invalid argument (22) [
> root at localhost ~]#
> 
> Any ideas?
> Apart from this the system is working fine.
> 

Try:

mv /var/lib/rpm/__db* /tmp
rpm --rebuilddb

if it doesn't help, move the __db* files back, you may want to keep 
them in case some RPM guru can help you debug. Hope this helps!
-- 
Adam Williamson
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | XMPP: adamw AT happyassassin . net
http://www.happyassassin.net



More information about the test mailing list