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
Read More:
- C programming interface of SQLite database (6) result codes and error codes
- Unknown error (SQLite code 14): could not open database (How to Fix)
- Disk BLK_ update_ request: I/O error
- yum install Transaction Check Error
- android.database.sqlite.SQLiteException: near “where”: syntax error (code 1): ,
- In SQLite database, set the default value for the field as the current time
- U disk installation Linux system could not boot, / dev / root does not exist and the identified hard disk space is not available
- Non system disk or disk error
- [docker] error in deleting image: image is referenced in multiple repositories
- Error 945 Database cannot be opened due to inaccessible files or insufficient memory or disk space
- Disk read error solution for new hard disk installation
- CentOS uses Yum install to report errors
- Solve the problem of non system disk or disk error, replace and strike any key when ready
- Completely solve install_ FAILED_ UPDATE_ Incompatible installation error, the installation package is not consistent with the previous installation package signature on the device
- An error is reported when kettle connects Oracle database and MySQL database
- error C2471: cannot update program database vc90.pdb
- openssl TXT_DB error number 2 failed to update database
- Insert into / delete / update / select of SQL Server database table
- Migration admin.0001_initial is applied before its dependency xxx.0001_initial on database ‘default‘
- Win32 Disk Imager Error 5: Access is Denied solution