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.
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. user_main( sys.argv[ 1:], exit_code=True) yum-cli/ yummain. py", line 229, in user_main yum-cli/ yummain. py", line 104, in main yum-cli/ cli.py" , line 343, in doCommands cli_commands[ self.basecmd] .doCommand( self, self.basecmd, self.extcmds) yum-cli/ yumcommands. py", line 758, in doCommand repos.populateS ack() python- support/ python2. 6/yum/repos. py", line 251, in populateSack populate( repo, mdtype, callback, cacheonly) python- support/ python2. 6/yum/yumRepo. py", line 184, in populate function( xml, csum) python- support/ python2. 6/sqlitecachec. py", line 42, in getPrimary
e.g.:
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.
File "/usr/share/
errcode = main(args)
File "/usr/share/
result, resultmsgs = base.doCommands()
File "/usr/share/
return self.yum_
File "/usr/share/
base.
File "/var/lib/
sack.
File "/var/lib/
dobj = repo_cache_
File "/var/lib/
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.