サーバーの修復が何とか出来たところでyumが動作しないことに気がつきます。
[root@oooo]#yum update Traceback (most recent call last): File "/usr/bin/yum", line 29, in 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 227, in main return_code = base.doTransaction() File "/usr/share/yum-cli/cli.py", line 588, in doTransaction resultobject = self.runTransaction(cb=cb) File "/usr/lib/python2.6/site-packages/yum/init.py", line 1537, in runTransaction self.skipped_packages, rpmdb_problems, cmdline) File "/usr/lib/python2.6/site-packages/yum/history.py", line 943, in beg pid = self.pkg2pid(txmbr.po) File "/usr/lib/python2.6/site-packages/yum/history.py", line 802, in pkg2pid return self._apkg2pid(po, create) File "/usr/lib/python2.6/site-packages/yum/history.py", line 788, in _apkg2pid return self._pkgtup2pid(po.pkgtup, csum, create) File "/usr/lib/python2.6/site-packages/yum/history.py", line 777, in _pkgtup2pid checksum)) File "/usr/lib/python2.6/site-packages/yum/sqlutils.py", line 168, in executeSQLQmark return cursor.execute(query, params) sqlite3.DatabaseError: database disk image is malformed (sqliteデータベースが不良の様です)
[root@oooo]#yum clean all (これでは治りませんでした)
rpmデータベースを作り直します。
[root@oooo]#mv /var/lib/rpm/__db.00? /tmp [root@oooo]#rpm --rebuilddb
sqliteデータベースを新たに作ります。
[root@oooo]#yum history new [root@oooo]#yum clean all
再度挑戦デス。
[root@oooo]#yum update
これで解決動作しました。