Re: yum has lost it, rpms db is now corrupted.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2007-01-19 at 20:47 -0700, Jim Cromie wrote:
> a recent large update has gone badly wrong,
> (the screen went into graphics mode, fixed by 'reset' cmd)
> and now I get this on a re-invoke sanity test.
> 
> 
> [jimc@harpo ~]$ sudo yum shell
> Password:
> Loading "installonlyn" plugin
> rpmdb: PANIC: fatal region error detected; run recovery
> error: db4 error(-30977) from dbenv->open: DB_RUNRECOVERY: Fatal error, 
> run database recovery
> error: cannot open Packages index using db3 -  (-30977)
> error: cannot open Packages database in /var/lib/rpm
> Traceback (most recent call last):
>   File "/usr/bin/yum", line 29, in ?
>     yummain.main(sys.argv[1:])
>   File "/usr/share/yum-cli/yummain.py", line 85, in main
>     base.getOptionsConfig(args)
>   File "/usr/share/yum-cli/cli.py", line 199, in getOptionsConfig
>     errorlevel=opts.errorlevel)
>   File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 125, in 
> doConfigSetup
>     self.conf = config.readMainConfig(startupconf)
>   File "/usr/lib/python2.4/site-packages/yum/config.py", line 597, in 
> readMainConfig
>     yumvars['releasever'] = _getsysver(startupconf.installroot, 
> startupconf.distroverpkg)
>   File "/usr/lib/python2.4/site-packages/yum/config.py", line 656, in 
> _getsysver
>     idx = ts.dbMatch('provides', distroverpkg)
> TypeError: rpmdb open failed
> [jimc@harpo ~]$ man rpm
> 
> rebuilding the db didnt help..
> 
> [jimc@harpo ~]$ sudo rpm --rebuilddb
> rpmdb: PANIC: fatal region error detected; run recovery
> error: db4 error(-30977) from dbenv->open: DB_RUNRECOVERY: Fatal error, 
> run database recovery
> error: cannot open Packages index using db3 -  (-30977)
> [jimc@harpo ~]$
> 
> using --initdb didnt work either.
> 
> Oddly, basic rpm querying works..
> 
> [jimc@harpo ~]$ rpm -q yum
> yum-3.0.1-2.fc6
> 
> 
> Any suggestions ?
----
sudo rm -fr /var/lib/rpm/__*
sudo rpm --rebuild

Craig


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux