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 Responses so far.

  1. quest bars says:
    There’s certainly a lot to know about this topic. I really like all of
    the points you have made.
  2. quest bars says:
    Stunning story there. What occurred after? Take care!
  3. seo fiverr says:
    “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”
  4. Very informative blog article. Fantastic.
  5. Wow, great article.Really thank you! Great.