Error: Yum reported “Error: database disk image is malformed”

Posted on

While update server packages I faced issue with yum, it show the below error

Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base:
 * epel:
 * extras:
 * remi:
 * remi-php55:
 * rpmforge:
 * rpmfusion-free-updates:
 * rpmfusion-nonfree-updates:
 * updates:
Error: database disk image is malformed

Which is because of the issue with the epel repo url, which I added in the server. once after removing it shows the error, by clearing the cahedb I fixed the issue. Steps below

# yum clean dbcache

Then I tried to update  again

# yum update



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s