How to fix yum error: database disk image is malformed
ถ้าหากเจอ error “Error: database disk image is malformed” ในขณะที่รันคำสั่ง yum เพื่อทำการ install หรือ update package ดังตัวอย่างด้านล่าง
1 2 3 4 5 6 7 8 9 10 |
[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 |
การแก้ไขสามารถทำได้โดยรันคำสั่ง
1 2 3 |
[root@Ezylinux.com ~]# yum clean dbcache |
หรือ
1 2 3 |
[root@Ezylinux.com ~]# yum clean all |