Support Questions

Find answers, ask questions, and share your expertise

Error: "Cannot retrieve repository metadata (repomd.xml) for repository: HDP-2.3. Please verify its path and try again"

Rising Star

when I try to use yum to update or install some packages, I get this error. .

" [Errno 14] PYCURL ERROR 7 - "couldn't connect to host" Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: HDP-2.3. Please verify its path and try again"

I am working on HDP 2.3.4 Sandbox deployed on a CentOS 6 server which is behind the proxy. The server has internet access. I can ping , for example.

the contents of /etc/yum.repos.d looks like this:


Any workaround regarding this issue would be highly appreciated!


Rising Star

@Neeraj Sabharwal

Resolved: The problem was related to proxy Authentication. So, I installed and configured CNTLM to access ISA Proxy Server on Centos 6.

Look at the article :

1.Install and configure cntlm

2. configure yum to use through ISA Proxy

  • vi /etc/yum.conf

add a line:


  • vi .bash_profile

add :

export http_proxy=http://localhost:3128/

export https_proxy=${http_proxy}

export ftp_proxy=${http_proxy}

  • logoff root and login again
  • yum clean all
  • yum install XXXX

yum update, yum repolist or yum install now works fine

View solution in original post


@Kibrom Gebrehiwot

Verify the content of repo files. I am able to run the repolist. It looks like that you have changed the repo files. In case you have not changed it then retry the operation

[root@sandbox ~]# yum repolist

Loaded plugins: fastestmirror, priorities

Loading mirror speeds from cached hostfile

* base:

* epel:

* extras:

* updates:

repo id repo name status

HDP-2.3 HDP-2.3 175


Updates-ambari-2.1.2 ambari-2.1.2 - Updates 6

base CentOS-6 - Base 6,575

epel Extra Packages for Enterprise Linux 6 - x86_64 11,992

epel-apache-maven maven from apache foundation. 2

extras CentOS-6 - Extras 50

puppetlabs-deps Puppet Labs Dependencies El 6 - x86_64 77

puppetlabs-products Puppet Labs Products El 6 - x86_64 544

sandbox Sandbox repository (tutorials) 2

updates CentOS-6 - Updates 1,063

repolist: 20,529

[root@sandbox ~]#

Rising Star

@Neeraj Sabharwal

Thanks for your prompt response:

out put of the command yum repolist looks like this: "Network is unreachable"


Is there anything that I should configure on the proxy?

N.B. I can resolve global IP addresses

$ ping

PING ( 56(84) bytes of data.

then it stacks here.

@Kibrom Gebrehiwot Did you modify the repo files? It should not be talking to

cd /etc/yum.repo.d

See this


Rising Star

I didn't modify any of the repo files. All the outputs are the same as yours.


Expert Contributor
Did you get anything on running grep -ir dev2 /etc/yum.repos.d ?

@Kibrom Gebrehiwot


mv sandbox.repo sandbox.repo.1

This should resolve the issue

@Kibrom Gebrehiwot Looking at errors....Looks like you are having trouble getting to any of those repo. I see your ping works fine

try to run


See if it works or not


@Kibron Gebrehiwot

could you rename your current HDP.repo to eg mv HDP.repo XXXHDP.repo.BCK

the run these 2 commands as root

# yum clean metadata

# yum clean all

Then recreate the HDP.repo with the attached contents don't change anything and then run

# yum repolist

Then retry

Rising Star

@Geoffrey Shelton Okot

I did all what you suggested me. But no luck yet.

Please, Have a look at the output of your suggested workaround: it seems the issue is related to network or proxy configuration. Any suggestion on the necessary network/proxy configurations?


@Kibrom Gebrehiwot

[root@sandbox yum.repos.d]# cat /etc/resolv.conf


[root@sandbox yum.repos.d]#

What do you have in that file?

Rising Star

@Neeraj Sabharwal

/etc/resolve.conf contains the IP address for the Global DNS server and nameservers of my LAN.

Rising Star

@Neeraj Sabharwal

Output looks like this:

[root@svhqhad01 ~]# wget --2016-02-09 15:37:44-- Resolving, Connecting to||:443... failed: Connection refused. Connecting to||:443... failed: Connection refused.

@Kibrom Gebrehiwot So...You don't have access to internet as you can see that your connection is refused. Can you take a backup of /etc/resolve.conf and add that entry which I shared?

Are you on corporate vpn? Firewall blocking outbound traffic in your laptop?

Rising Star

@Neeraj Sabharwal nameserver already exists in /etc/resolv.conf

The sandbox is installed on Centos 6.7 and I am remotely accessing it with PuTTY.

I can access the Web UIs from the browser. There is corporate firewall too.

@Kibrom Gebrehiwot send me your file and I will try to reproduce

Please see those redhat links

Can you remove other entries from that file ?

Are you on vpn?

Do you have firewall on ?

Is iptable off in sandbox?

Rising Star

@Neeraj Sabharwal

This is content of /etc/resolv.conf



  • I am not on VPN
  • firewall is on
  • iptables is ON in Sandbox

@Kibrom Gebrehiwot

Please turn off iptables 🙂

New Contributor

@Neeraj Sabharwal

I did a fresh install of Hortonworks sandbox (HDP 2.3.2, Windows 7) and get the same errors as @Kibrom Gebrehiwot.

I do not have firewall on (service iptables status says Firewall is not running). ipconfig has no errors.

My resolv.config reads


Every setting is identical to yours (from your attachments on previous comments).

Can there be another source of error?

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.