yum Error

Erro

Loaded plugins: refresh-packagekit
rpmdb: Thread/process 4382/139834733430512 failed: Thread died in Berkeley DB library
erro: erro do db4 (-30975) do dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
erro: não consigo abrir o índice de Packages usando o db3 - (-30975)
erro: não consigo abrir a base de dados Packages em /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 82, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 146, in getOptionsConfig
errorlevel=opts.errorlevel)
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



Para erros como este a usar o um yum basta efectuar o comando

rm -rf /var/lib/rpm/__db.*


Após este comando o Yum fica a funcionar a 100% novamente

Comentários

Mensagens populares