Error: Cannot retrieve repository metadata (repomd.xml) for repository: “repo-name”. Please verify its path and try again

I have come across the problem while trying to install new packages.

Problem
ftp://ftp.***.com/pub/redhat/linux/***/6Server/en/os/SRPMS/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 – “couldn’t connect to host”
Error: Cannot retrieve repository metadata (repomd.xml) for repository: “repo-name”. Please verify its path and try again

The issue is that OS cannot access the repository

Solution
edit the file /etc/yum.repos.d/”repo-name”.repo
e.x.
vim /etc/yum.repos.d/rhel-source.repo

and disable causing problems repository by setting
enable=0

Save and exit the file.

Done!

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