Yum Error
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 105, in main
result, resultmsgs = base.doCommands()
File “/usr/share/yum-cli/cli.py”, line 287, in doCommands
self._getTs()
File “/usr/lib/python2.4/site-packages/yum/depsolve.py”, line 85, in _getTs
self._getTsInfo()
File “/usr/lib/python2.4/site-packages/yum/depsolve.py”, line 91, in _getTsInfo
self._tsInfo.setDatabases(self.rpmdb, self.pkgSack)
File “/usr/lib/python2.4/site-packages/yum/__init__.py”, line 529, in
pkgSack = property(fget=lambda self: self._getSacks(),
File “/usr/lib/python2.4/site-packages/yum/__init__.py”, line 384, in _getSacks
self.repos.populateSack(which=repos)
File “/usr/lib/python2.4/site-packages/yum/repos.py”, line 242, in populateSack
sack.populate(repo, mdtype, callback, cacheonly)
File “/usr/lib/python2.4/site-packages/yum/yumRepo.py”, line 167, in populate
dobj = repo_cache_function(xml, csum)
File “/usr/lib/python2.4/site-packages/sqlitecachec.py”, line 46, in getPrimary
self.repoid)
TypeError: Parsing primary.xml error: Start tag expected, ‘< ' not found
For future reference and Google searches, this is caused by libxml2 being compiled without zlib support. >:-|
Stelios said,
April 30, 2008 @ 3:03 am
How did you solve this?
Did you compile libxml2?
Thanks
admin said,
May 9, 2008 @ 7:45 am
Yes, I had to recompile libxml2 with zlib support.
Ie when you run ./configure, use the –with-zlib= option, pointing to where the zlib build directory is.
This is only if you are building libxml2 yourself… if it doesn’t work on a prepackaged distro like RedHat or Debian, then you should file a bug with them.