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.
junkiest said,
September 23, 2008 @ 2:51 am
how to solve this problem….
while i update the yum, this is happen
[root@reseboy icecast]# yum update
Loading “installonlyn” plugin
Setting up Update Process
Setting up repositories
centosplus 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 41 kB 00:00
centosplus: ################################################## 74/74
Excluding Packages in global exclude list
Finished
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 94, in main
result, resultmsgs = base.doCommands()
File “/usr/share/yum-cli/cli.py”, line 381, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
File “/usr/share/yum-cli/yumcommands.py”, line 150, in doCommand
return base.updatePkgs(extcmds)
File “/usr/share/yum-cli/cli.py”, line 695, in updatePkgs
updating_pkg = self.getPackageObject(new)
File “/usr/lib/python2.4/site-packages/yum/__init__.py”, line 1473, in getPackageObject
pkgs = self.pkgSack.searchPkgTuple(pkgtup)
File “/usr/lib/python2.4/site-packages/yum/packageSack.py”, line 66, in searchPkgTuple
return self.searchNevra(name=n, arch=a, epoch=e, ver=v, rel=r)
File “/usr/lib/python2.4/site-packages/yum/packageSack.py”, line 232, in searchNevra
return self._computeAggregateListResult(”searchNevra”, name, epoch, ver, rel, arch)
File “/usr/lib/python2.4/site-packages/yum/packageSack.py”, line 369, in _computeAggregateListResult
sackResult = apply(method, args)
File “/usr/lib/python2.4/site-packages/yum/sqlitesack.py”, line 574, in searchNevra
returnList.append(self.pc(rep,self.db2class(x)))
File “/usr/lib/python2.4/site-packages/yum/sqlitesack.py”, line 431, in db2class
y.checksum = {’pkgid’: ‘YES’,'type’: db.checksum_type,
File “/usr/lib/python2.4/site-packages/sqlite/main.py”, line 97, in __getattr__
raise AttributeError, key
could you help me?
admin said,
September 25, 2008 @ 9:35 am
I don’t have any quick solutions for you.
If you are running Redhat or another distribution that provided yum for you, the best bet would be to file a bug in their bugzilla.