Java Mailing List Archive

http://www.redhatconfig.com/

Home » Red Hat Enterprise Linux 5 »

RE: [rhelv5-list] yum errors

Zavodsky, Daniel (GE Money)

2008-01-22

Replies:

Author LoginPost Reply
Maybe there are some incomplete RPM files in your cache... try clearing
it:

rm -f /var/cache/yum/{channel-name}/packages/*


 I had some problems with this.

Daniel


-----Original Message-----
From: rhelv5-list-bounces@(protected)
[mailto:rhelv5-list-bounces@(protected)
Sent: Tuesday, January 22, 2008 2:44 PM
To: rhelv5-list@(protected)
Subject: [rhelv5-list] yum errors

yum's suddenly started throwing errors...

# uname -a
Linux s31e066 2.6.18-53.1.4.el5 #1 SMP Wed Nov 14 10:37:33 EST 2007 i686
i686 i386 GNU/Linux

# yum list updates
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
Setting up repositories
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 102, in main
  result, resultmsgs = do()
File "/usr/share/yum-cli/cli.py", line 359, in doCommands
  return self.yum_cli_commands[self.basecmd].doCommand(self,
self.basecmd, sel f.extcmds)
File "/usr/share/yum-cli/yumcommands.py", line 160, in doCommand
  ypl = base.returnPkgLists(extcmds)
File "/usr/share/yum-cli/cli.py", line 863, in returnPkgLists
  ypl = self.doPackageLists(pkgnarrow=pkgnarrow)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 988, in
doPackag eLists
  self.doRepoSetup()
File "/usr/share/yum-cli/cli.py", line 102, in doRepoSetup
  yum.YumBase.doRepoSetup(self, thisrepo=thisrepo)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 299, in
doRepoSe tup
  repo.setup(self.conf.cache)
File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 503, in
setup
  self._loadRepoXML(text=self)
File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 530, in
_loadRepo XML
  cache=self.http_caching == 'all')
File "/usr/lib/yum-plugins/rhnplugin.py", line 209, in _getFile
  start, end, copy_local, checkfunc, text, reget, cache)
File "/usr/lib/yum-plugins/rhnplugin.py", line 298, in
_noExceptionWrappingGet
  return result
UnboundLocalError: local variable 'result' referenced before assignment

Anyone know what's wrong? Thanks.

--
Tim Evans, TKEvans.com, Inc.   |  5 Chestnut Court
UNIX System Admin Consulting   |  Owings Mills, MD 21117
http://www.tkevans.com/      |  443-394-3864
http://www.come-here.com/News/ |  tkevans@(protected)

_______________________________________________
rhelv5-list mailing list
rhelv5-list@(protected)
https://www.redhat.com/mailman/listinfo/rhelv5-list



_______________________________________________
rhelv5-list mailing list
rhelv5-list@(protected)
https://www.redhat.com/mailman/listinfo/rhelv5-list
©2008 redhatconfig.com - Jax Systems, LLC, U.S.A.