To fix this error you will need to edit some of the repo files located in /etc/yum.repos.d/ heres how:
In here you are going to want to remove the comments ‘#’ from the lines beginning with baseurl and then comment out the lines beginning with mirrorlist. Now do the same for the file fedora-updates.repo in the same directory.
Finally you want to add two lines to /etc/hosts file:
add these two lines to the bottom of this file:
yum update if the error doesn’t show it worked! :)