Re: Upgrade attempt hosed yum

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

 



On Wed, 10 Jun 2009 11:28:21 -0700, Amy wrote:

> I was trying the pregrade install of F11 from F10 on my test box and
> somewhere along the line, yum managed to hose itself completely.
> Googling what seemed to me to be the most likely error got something
> from FC6 that didn't quite work to fix this problem, I'm curious if
> anyone else had this issue?
> 
> [root@toshiko ~]# yum clean all
> Loaded plugins: refresh-packagekit
> rpmdb: PANIC: fatal region error detected; run recovery
> error: db4 error(-30975) from dbenv->open: DB_RUNRECOVERY: Fatal
> error, run database recovery
> error: cannot open Packages index using db3 -  (-30975)
> error: cannot open Packages database in /var/lib/rpm
> Traceback (most recent call last):
>   File "/usr/bin/yum", line 29, in <module>
>     yummain.user_main(sys.argv[1:], exit_code=True)
>   File "/usr/share/yum-cli/yummain.py", line 229, in user_main
>     errcode = main(args)
>   File "/usr/share/yum-cli/yummain.py", line 84, in main
>     base.getOptionsConfig(args)
>   File "/usr/share/yum-cli/cli.py", line 184, in getOptionsConfig
>     enabled_plugins=self.optparser._splitArg(opts.enableplugins))
>   File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 192,
> in _getConfig
>     self._conf = config.readMainConfig(startupconf)
>   File "/usr/lib/python2.5/site-packages/yum/config.py", line 774, in
> readMainConfig
>     yumvars['releasever'] = _getsysver(startupconf.installroot,
> startupconf.distroverpkg)
>   File "/usr/lib/python2.5/site-packages/yum/config.py", line 844, in _getsysver
>     idx = ts.dbMatch('provides', distroverpkg)
> TypeError: rpmdb open failed

Try:

su -
cp -a /var/lib/rpm /var/lib/rpm.BAK
rm -f /var/lib/rpm/__db*
rpm -vv --rebuilddb

Also note the "yum-complete-transaction" command.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

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

  Powered by Linux