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: centos.aol.in
 * epel: epel.mirror.net.in
 * extras: centos.aol.in
 * remi: mirror.smartmedia.net.id
 * remi-php55: mirror.smartmedia.net.id
 * rpmforge: mirrors.ispros.com.bd
 * rpmfusion-free-updates: mirror.smartmedia.net.id
 * rpmfusion-nonfree-updates: mirror.smartmedia.net.id
 * updates: centos.aol.in
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

 

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s