Issue: 'yum' does not work properly and reports an error on every single run. Full error message:
# yum update (process:364942): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory. This indicates a bug in someone's code. You must ensure an error is NULL before it's set. The overwriting error message was: Parsing primary.xml error: Premature end of data in tag format line 93382 (process:364942): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory. This indicates a bug in someone's code. You must ensure an error is NULL before it's set. The overwriting error message was: Parsing primary.xml error: Premature end of data in tag package line 93377 (process:364942): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory. This indicates a bug in someone's code. You must ensure an error is NULL before it's set. The overwriting error message was: Parsing primary.xml error: Premature end of data in tag metadata line 2 Traceback (most recent call last): File "/usr/bin/yum", line 29, in <module> yummain.user_main(sys.argv[1:], exit_code=True) File "/usr/share/yum-cli/yummain.py", line 276, in user_main errcode = main(args) File "/usr/share/yum-cli/yummain.py", line 129, in main result, resultmsgs = base.doCommands() File "/usr/share/yum-cli/cli.py", line 434, in doCommands self._getTs(needTsRemove) File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 99, in _getTs self._getTsInfo(remove_only) File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 110, in _getTsInfo pkgSack = self.pkgSack File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 883, in <lambda> pkgSack = property(fget=lambda self: self._getSacks(), File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 668, in _getSacks self.repos.populateSack(which=repos) File "/usr/lib/python2.6/site-packages/yum/repos.py", line 294, in populateSack sack.populate(repo, mdtype, callback, cacheonly) File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 186, in populate dobj = repo_cache_function(xml, csum) File "/usr/lib64/python2.6/site-packages/sqlitecachec.py", line 46, in getPrimary self.repoid)) TypeError: Parsing primary.xml error: Premature end of data in tag file line 93382
Reason: You have an outdated alt-libxml2 package which actually has broken system libxml2 library functionality.
Solution: Update alt-libxml2 after removing broken ldconfig path:
rm -f /etc/ld.so.conf.d/alt-libxml2.conf ldconfig yum update alt-libxml2
Comments
0 comments
Please sign in to leave a comment.