[CentOS] error from yum from 5.3

Sun Apr 5 21:09:12 UTC 2009
Craig White <craigwhite at azapple.com>

On Sun, 2009-04-05 at 17:01 -0400, Jerry Geis wrote:
> I am getting the the following error on 5.3 x86_64
> 
>  yum provides "*/identify"
> 
> Loaded plugins: fastestmirror
> Loading mirror speeds from cached hostfile
>  * base: mirror.steadfast.net
>  * updates: ftp.lug.udel.edu
>  * addons: centos.cs.wisc.edu
>  * extras: centos.cs.wisc.edu
> Traceback (most recent call last):
>   File "/usr/bin/yum", line 29, in ?
>     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 104, in main
>     result, resultmsgs = base.doCommands()
>   File "/usr/share/yum-cli/cli.py", line 343, in doCommands
>     return self.yum_cli_commands[self.basecmd].doCommand(self, 
> self.basecmd, self.extcmds)
>   File "/usr/share/yum-cli/yumcommands.py", line 511, in doCommand
>     return base.provides(extcmds)
>   File "/usr/share/yum-cli/cli.py", line 737, in provides
>     callback_has_matchfor=True)
>   File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 1685, in 
> searchPackageProvides
>     where = self.pkgSack.searchAll(arg, False)
>   File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 420, 
> in searchAll
>     return self._computeAggregateListResult("searchAll", arg, query_type)
>   File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 455, 
> in _computeAggregateListResult
>     sackResult = apply(method, args)
>   File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 459, 
> in searchAll
>     return self.searchPrco(name, 'provides')
>   File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 43, in 
> newFunc
>     return func(*args, **kwargs)
>   File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 931, 
> in searchPrco
>     results.extend(self.searchFiles(name))
>   File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 43, in 
> newFunc
>     return func(*args, **kwargs)
>   File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 586, 
> in searchFiles
>     self._sql_pkgKey2po(rep, cur, pkgs)
>   File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 470, 
> in _sql_pkgKey2po
>     pkg = self._packageByKey(repo, ob['pkgKey'])
>   File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 413, 
> in _packageByKey
>     po = self.pc(repo, cur.fetchone())
>   File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 68, in 
> __init__
>     self._read_db_obj(db_obj)
>   File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 94, in 
> _read_db_obj
>     setattr(self, item, _share_data(db_obj[item]))
> TypeError: unsubscriptable object
> 
> Any ideas?
----
after you upgrade rpm from 5.3 upgrade, it seems that you need to clean
something in yum and I am lazy so I tell it 'yum clean all' and then it
just seems to work.

Craig


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.