问题
今天使用 yum install 时使用Ctrl+C 后,再用yum安装其他软件的时候收到:Yum database disk image is malformed。
$sudo yum install t-xxxx-0.9.7.9 Loaded plugins: branch, fastestmirror, security Loading mirror speeds from cached hostfile Error: database disk image is malformed
解决方法
从网上看到有些文章,说 执行 yum clean dbcache可以解决问题。但是,我尝试后,问题依旧。最后不得不clean all。问题解决。
$sudo yum clean all Loaded plugins: branch, fastestmirror, security Cleaning up Everything Cleaning up list of fastest mirrors
另外,看到一篇文章说,通过 rpm --rebuilddb
命令解决。我没尝试。
建议使用这种方式时,先把 /var/lib/rpm/__db*
文件备份下。
原文链接: YUM更新安装软件出现DATABASE DISK IMAGE IS MALFORMED错误的解决办法 ,转载请注明来源!