How to fix yum error: database disk image is malformed

Posted by

Yum-and-RPM---Red-Hat,-Centosถ้าหากเจอ error “Error: database disk image is malformed” ในขณะที่รันคำสั่ง yum เพื่อทำการ install หรือ update package ดังตัวอย่างด้านล่าง

[[email protected] ~]# yum install ruby
Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit
Loading mirror speeds from cached hostfile
* base:
* epel:
* extras:
* updates:
Error: database disk image is malformed


[[email protected] ~]# yum clean dbcache

[[email protected] ~]# yum clean all

Leave a Reply

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