The yum command failed with Error: malformed database schema (pkgsupplements) - no such table: main.supplements
Issue
- The
yum
command failed with the following error.
Error: malformed database schema (pkgsupplements) - no such table: main.supplements
- The
yum -C repolist
command failed with the following error.
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
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 298, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 146, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 440, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
File "/usr/share/yum-cli/yumcommands.py", line 923, in doCommand
num = len(repo.sack.simplePkgList())
File "/usr/lib/python2.6/site-packages/yum/sqlitesack.py", line 1695, in simplePkgList
ignore_case):
File "/usr/lib/python2.6/site-packages/yum/sqlitesack.py", line 1596, in _yieldSQLDataList
executeSQL(cur, qsql, pat_data)
File "/usr/lib/python2.6/site-packages/yum/sqlutils.py", line 168, in executeSQLQmark
return cursor.execute(query, params)
sqlite3.OperationalError: near "release": syntax error
Environment
Red Hat Enterprise Linux 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.