FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 02-08-2011, 09:49 PM
Tim Dunphy
 
Default yum is b0rked

hello centos.. my yum is b0rked...

[root@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@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">952fa417bd3a2d464ac1e4b0a324019a9e0d682 7</checksum>
<timestamp>1297028257</timestamp>
<open-checksum type="sha">dac0d202c11a546909943ed2f8722f29b3183a3 1</open-che
cksum>
<database_version>10</database_version>
</data>

<data type="other">
<location href="repodata/other.xml.gz"/>
<checksum type="sha">5993a19c31dbd33c125efe3a1355eee2bf6456a b</checksum>
<timestamp>1297028256</timestamp>
<open-checksum type="sha">0c9f4d594d743233b2b955102b254d0a960a382 4</open-che
cksum>
</data>
<data type="filelists_db">
<location href="repodata/filelists.sqlite.bz2"/>
<checksum type="sha">5c9ff9f0ffa1b528040054940366e1a1f2e7f33 0</checksum>
<timestamp>1297028257</timestamp>
<open-checksum type="sha">427720aeb56f0b481accf6679925784214cb941 a</open-che
cksum>
<database_version>10</database_version>
</data>
<data type="filelists">
<location href="repodata/filelists.xml.gz"/>
<checksum type="sha">588ab33cce8e860a122d65a41732e0ec64211b0 e</checksum>
<timestamp>1297028256</timestamp>
<open-checksum type="sha">9900ba15e9ee404a39f5c79667f9218d5878576 2</open-che
cksum>
</data>

<data type="primary_db">
<location href="repodata/primary.sqlite.bz2"/>
<checksum type="sha">28cf50779cf9980daf65c30c701c15bc273fa71 8</checksum>
<timestamp>1297028258</timestamp>
<open-checksum
type="sha">4d8ffe4996007cba9524f4921a070961c6b9f6d d</open-checksum>
<database_version>10</database_version>
</data>
<data type="primary">
<location href="repodata/primary.xml.gz"/>
<checksum type="sha">3cfa26f5045b5f686a9c435af8f4ce76ed5c272 1</checksum>
<timestamp>1297028256</timestamp>
<open-checksum
type="sha">c5dc522811bdcccf1262a676114f6c874ab8b2a d</open-checksum>
</data>
<data type="group">
<location href="repodata/yumgroups.xml"/>
<checksum type="sha">94bb5d121e662e57176131dfabd9db1e1b8335f a</checksum>
<timestamp>1296125151</timestamp>
</data>
</repomd>

thanks in advance!!


--
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 02-08-2011, 10:47 PM
Kwan Lowe
 
Default yum is b0rked

On Tue, Feb 8, 2011 at 5:49 PM, Tim Dunphy <bluethundr@gmail.com> wrote:

>
> 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
>


That actually won't do anything for yum. Try:

yum clean headers

If that doesn't resolve, try:

yum clean all


Also, verify that your /var filesystem is writable and has a few gig
of free space.
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 02:49 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org