centos提示database disk image is malformed解决方法

在执行yum更新,即运行 yum update 命令时,提示以下错误:

Error:database disk image is malformed

估计是由于yum的原数据损坏导致的,与rpm的数据库损坏类似,前者会导致更新不能正常执行,后者会导致安装失败并出现乱码,前者的解决参见yum更新和rpm安装包问题(rpmdb: PANIC: Invalid argument),后者的错误可以通过一下方法解决:
终端,依次输入:
1.) yum clean metadata
2.) yum clean dbcache
3.) yum makecache
即先删除原数据和数据库缓存,然后重建之,问题即可解决

5 thoughts on “centos提示database disk image is malformed解决方法

  1. “Undeniably believe that which you said. Your favorite justification seemed to be on the web the easiest thing to be aware of. I say to you, I certainly get irked while people think about worries that they plainly don’t know about. You managed to hit the nail upon the top and also defined out the whole thing without having side-effects , people could take a signal. Will probably be back to get more. Thanks”

Leave a Reply

Your email address will not be published. Required fields are marked *