Comment 0 for bug 375852

Revision history for this message
jfding (jfding) wrote : Cannot work with actual yum repo

Binary package hint: yum

yum(3.2.21, the latest) can be installed and can even run. But after I add actual repos to its config, and run yum to cache them, it will encounter some fatal error and quit.
e.g.:
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 229, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 104, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 343, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 758, in doCommand
    base.repos.populateSack()
  File "/var/lib/python-support/python2.6/yum/repos.py", line 251, in populateSack
    sack.populate(repo, mdtype, callback, cacheonly)
  File "/var/lib/python-support/python2.6/yum/yumRepo.py", line 184, in populate
    dobj = repo_cache_function(xml, csum)
  File "/var/lib/python-support/python2.6/sqlitecachec.py", line 42, in getPrimary
    self.repoid))
TypeError: Can not create packages table: near "release": syntax error

or with other repos, 'yum makecache' can work, but when run other yum commands, it will show:
Error: malformed database schema (removals) - no such table: main.packages

I have traced this problem myself, and found it's compatibility problem of yum, python's sqlite module, sqlite, etc.