Cannot retrieve repository metadata (repomd.xml) for repository: sandbox. Please verify its path and try again

佐手、 提交于 2019-12-06 02:38:11

I fixed this by:

cd /etc/yum.repos.d mv sandbox.repo /tmp

If you look in that file you see it refers to the http://dev2.hortonworks.com.s3.amazonaws.com as baseurl.

Then the yum install python-pip worked but just in case I need that sandbox repo again I moved it back mv /tmp/sandbox.repo .

EDIT - I am on the docker image but I guess would be the same for the VM. A

You can set the enabled flag as 0 inside sandbox.repo. You will need to perform the operation as root.

# su root 
# vi /etc/yum.repos.d/sandbox.repo

Go to INSERT mode and modify the line enabled=1 to enabled=0. Save and Exit. Finally, run a yum clean and try the installations again.

# yum clean all
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!