[CentOS] yum is b0rked

Tue Feb 8 22:49:43 UTC 2011
Tim Dunphy <bluethundr at gmail.com>

hello centos.. my yum is b0rked...

[root at VIRTCENT03:~] #yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
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 309, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 178, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 349, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self,
self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 781, in doCommand
    base.repos.populateSack()
  File "/usr/lib/python2.4/site-packages/yum/repos.py", line 232, in
populateSack
    self.doSetup()
  File "/usr/lib/python2.4/site-packages/yum/repos.py", line 79, in doSetup
    self.ayum.plugins.run('postreposetup')
  File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 179, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File "/usr/lib/yum-plugins/fastestmirror.py", line 164, in postreposetup_hook
    read_timedhosts()
  File "/usr/lib/yum-plugins/fastestmirror.py", line 233, in read_timedhosts
    host, time = line.split()
ValueError: too many values to unpack

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

I have tried rm -rf rm -rf /var/lib/rpm/*_db.* and rebuilt my rpm
package database but that didn't move the needle on this problem


And here is the contents of timedhosts.txt

[root at VIRTCENT03:~] #cat /var/cache/yum/timedhosts.txt
<?xml version="1.0" encoding="UTF-8"?>
<repomd xmlns="http://linux.duke.edu/metadata/repo">
  <data type="other_db">
    <location href="repodata/other.sqlite.bz2"/>
    <checksum type="sha">952fa417bd3a2d464ac1e4b0a324019a9e0d6827</checksum>
    <timestamp>1297028257</timestamp>
    <open-checksum type="sha">dac0d202c11a546909943ed2f8722f29b3183a31</open-che
cksum>
    <database_version>10</database_version>
  </data>

<data type="other">
    <location href="repodata/other.xml.gz"/>
    <checksum type="sha">5993a19c31dbd33c125efe3a1355eee2bf6456ab</checksum>
    <timestamp>1297028256</timestamp>
    <open-checksum type="sha">0c9f4d594d743233b2b955102b254d0a960a3824</open-che
cksum>
  </data>
  <data type="filelists_db">
    <location href="repodata/filelists.sqlite.bz2"/>
    <checksum type="sha">5c9ff9f0ffa1b528040054940366e1a1f2e7f330</checksum>
    <timestamp>1297028257</timestamp>
    <open-checksum type="sha">427720aeb56f0b481accf6679925784214cb941a</open-che
cksum>
    <database_version>10</database_version>
  </data>
  <data type="filelists">
    <location href="repodata/filelists.xml.gz"/>
    <checksum type="sha">588ab33cce8e860a122d65a41732e0ec64211b0e</checksum>
    <timestamp>1297028256</timestamp>
    <open-checksum type="sha">9900ba15e9ee404a39f5c79667f9218d58785762</open-che
cksum>
  </data>

  <data type="primary_db">
    <location href="repodata/primary.sqlite.bz2"/>
    <checksum type="sha">28cf50779cf9980daf65c30c701c15bc273fa718</checksum>
    <timestamp>1297028258</timestamp>
    <open-checksum
type="sha">4d8ffe4996007cba9524f4921a070961c6b9f6dd</open-checksum>
    <database_version>10</database_version>
  </data>
  <data type="primary">
    <location href="repodata/primary.xml.gz"/>
    <checksum type="sha">3cfa26f5045b5f686a9c435af8f4ce76ed5c2721</checksum>
    <timestamp>1297028256</timestamp>
    <open-checksum
type="sha">c5dc522811bdcccf1262a676114f6c874ab8b2ad</open-checksum>
  </data>
  <data type="group">
    <location href="repodata/yumgroups.xml"/>
    <checksum type="sha">94bb5d121e662e57176131dfabd9db1e1b8335fa</checksum>
    <timestamp>1296125151</timestamp>
  </data>
</repomd>

thanks in advance!!


-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B