I have several machine running CentOS I upgraded all of them from 5.3 to 5.4 One machine has a yum problem after upgrading
# yum update Loaded plugins: fastestmirror Determining fastest mirrors * addons: mirror.trouble-free.net * base: mirror.team-cymru.org * extras: mirror.team-cymru.org * updates: mirror.raystedman.net addons | 951 B 00:00 addons/primary | 201 B 00:00 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 345, in doCommands self._getTs(needTsRemove) File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 101, in _getTs self._getTsInfo(remove_only) File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 112, in _getTsInfo pkgSack = self.pkgSack File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 661, in <lambda> pkgSack = property(fget=lambda self: self._getSacks(), File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 501, in _getSacks self.repos.populateSack(which=repos) File "/usr/lib/python2.4/site-packages/yum/repos.py", line 260, in populateSack sack.populate(repo, mdtype, callback, cacheonly) File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 190, in populate dobj = repo_cache_function(xml, csum) File "/usr/lib/python2.4/site-packages/sqlitecachec.py", line 42, in getPrimary self.repoid)) TypeError: Parsing primary.xml error: Start tag expected, '<' not found
I have tried 'yum clean all', 'yum --noplugins', 'rm -r /var/cache/yum/*', deleting all yum packages and reinstalling, and nothing helps If I copy /var/cache/yum/* from a working machine all is well I have used md5sum to check the downloaded files and they match the files on a working machine If I disable the addons repo the other repos load ok Also rpmforge repo breaks yum What else might I try
Thanks Richard
On 05/13/2010 02:27 PM, rray_1@comcast.net wrote:
self.repoid))
TypeError: Parsing primary.xml error: Start tag expected, '<' not found
one of the mirrors you are hitting has bad repodata, or you have misconfigured a baseurl / mirrorlist line. I wont be surprised if one of the machines is actually returning a 404 for the primary.xml in one of the repos.
run yum with -d7 and you should be able to work out which one that is and against what repo.
- KB
On Thu, 13 May 2010, Karanbir Singh wrote:
On 05/13/2010 02:27 PM, rray_1@comcast.net wrote:
self.repoid))
TypeError: Parsing primary.xml error: Start tag expected, '<' not found
one of the mirrors you are hitting has bad repodata, or you have misconfigured a baseurl / mirrorlist line. I wont be surprised if one of the machines is actually returning a 404 for the primary.xml in one of the repos.
run yum with -d7 and you should be able to work out which one that is and against what repo.
- KB
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
I am a bit lost The addons repo is the first one failing If I run 'yum clean all' and then 'yum update' I get '* addons: mirror.trouble-free.net' and yum fails If I run 'yum clean all' again and 'yum update' I get '* addons: ftp.usf.edu' and yum fails Both times I ran 'md5sum md5sum /var/cache/yum/addons/primary.xml.gz' for the machine that failed and a machine that works and they match It does not seem to matter which server the repo file comes from
On 05/13/2010 02:51 PM, rray_1@comcast.net wrote:
Both times I ran 'md5sum md5sum /var/cache/yum/addons/primary.xml.gz' for the machine that failed and a machine that works and they match It does not seem to matter which server the repo file comes from
is your machine running out of RAM ?
You can try dropping into #yum on irc.freenode.net and see if you can work through your issue there. irc is a better means of doing these kind of interactive problem hunting.
- KB