ระบบ Linux

How to fix yum error: database disk image is malformed

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: 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

การแก้ไขสามารถทำได้โดยรันคำสั่ง


[[email protected] ~]# yum clean dbcache

หรือ


[[email protected] ~]# yum clean all
EOF.← กลับไปอ่านบทความอื่น