How to fix yum error: database disk image is malformed
ถ้าหากเจอ error “Error: database disk image is malformed” ในขณะที่รันคำสั่ง yum เพื่อทำการ install หรือ update package ดังตัวอย่างด้านล่าง
[root@Ezylinux.com ~]# yum install ruby
Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: mirror1.ku.ac.th
* epel: mirror1.ku.ac.th
* extras: mirror1.ku.ac.th
* updates: mirror1.ku.ac.th
Error: database disk image is malformed
การแก้ไขสามารถทำได้โดยรันคำสั่ง
[root@Ezylinux.com ~]# yum clean dbcache
หรือ
[root@Ezylinux.com ~]# yum clean all