# Fixing yum cache errors

Sometime you will come across error14, where yum local cache is corrupted on CentOS and Redhat instances.

**Causes**

1- No connectivity to sources where repos are hosted
2- Package or content doesn't exist on repository source
3- Local Mirror issue (shouldn't be the case with our centos templates)

**Fix**

To fix this error, follow below steps
1- Make sure that the server has connectivity to repo source
2- Make sure local cache is not corrupted, regenerate the local cache by running below

```
yum clean all rm -rf /var/cache/yum/*
yum clean all
yum makecache
```

