"Unable to download packages from repository" error during an install or upgrade
Error: Unable to download packages from repository. System is not modified.
This could come up because the existing yum cache isn't cleaned it. To fix this, first run:
yum clean all
Clear Yum’s XML metadata by running the following command:
yum clean metadata
Run following command to clear the cached files for database.
yum clean dbcache
Then update the yum metadata again: