【问题标题】:Cannot retrieve repository metadata (repomd.xml) for repository: sandbox. Please verify its path and try again无法检索存储库的存储库元数据 (repomd.xml):沙箱。请验证其路径并重试
【发布时间】:2017-09-18 18:54:57
【问题描述】:

我在 VirtualBox 上安装了 HDP 2.6.1 并正在尝试运行

yum install python-pip

但是,出现以下错误:

http://dev2.hortonworks.com.s3.amazonaws.com/repo/dev/master/utils/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 403 Forbidden"
Trying other mirror.
To address this issue please refer to the below knowledge base article

https://access.redhat.com/solutions/69319

If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.

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

由于我需要 pip 来安装 MRJob,我怎样才能成功安装 pip?

【问题讨论】:

    标签: python hadoop pip hortonworks-data-platform


    【解决方案1】:

    我通过以下方式解决了这个问题:

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

    如果您查看该文件,您会发现它引用 http://dev2.hortonworks.com.s3.amazonaws.com 作为 baseurl。

    然后yum install python-pip 工作了,但为了以防我再次需要那个沙盒存储库,我把它移回了mv /tmp/sandbox.repo .

    编辑 - 我在 docker 映像上,但我想对于 VM 来说是一样的。 一个

    【讨论】:

    • 感谢分享!
    【解决方案2】:

    您可以在 sandbox.repo 中将启用标志设置为 0。您需要以 root 身份执行操作。

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

    进入 INSERT 模式并将行 enable=1 修改为 enabled=0。保存并退出。 最后,运行 yum clean 并再次尝试安装。

    # yum clean all
    

    【讨论】:

      猜你喜欢
      • 2019-05-02
      • 1970-01-01
      • 1970-01-01
      • 2014-12-31
      • 1970-01-01
      • 2013-10-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多