The error on the original post was caused by a different repo file that the
link couldn’t be reached. You should be able to find the unwanted repo
configs in /etc/yum.repos.d/*.repo or occasionally at the end of
/etc/yum.conf. If the unwanted repo config file is in /etc/yum.repos.d/ it
can be removed from visibility to yum by deleting or renaming it to
something other than .repo.