Error message:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
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 375, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 281, in main
return_code = base.doTransaction()
File "/usr/share/yum-cli/cli.py", line 817, in doTransaction
resultobject = self.runTransaction(cb=cb)
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1852, in runTransaction
self.skipped_packages, rpmdb_problems, cmdline)
File "/usr/lib/python2.7/site-packages/yum/history.py", line 943, in beg
pid = self._ipkg2pid(pkg)
File "/usr/lib/python2.7/site-packages/yum/history.py", line 798, in _ipkg2pid
return self._pkgtup2pid(po.pkgtup, csum, create)
File "/usr/lib/python2.7/site-packages/yum/history.py", line 759, in _pkgtup2pid
epoch=?AND version=?AND release=?""", pkgtup)
File "/usr/lib/python2.7/site-packages/yum/sqlutils.py", line 168, in executeSQLQmark
return cursor.execute(query, params)
sqlite3.DatabaseError: database disk image is malformed
Sqlite3.DatabaseError: database disk image is malformed
net clean yum cache: yum clean all…
then find a question: https://www.linuxquestions.org/questions/fedora-35/sqlite3-databaseerror-database-disk-image-is-malformed-4175623256/
a line command perfectly solves the problem!
sudo yum history new