首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Docker build:无法获取存档

Docker build:无法获取存档
EN

Stack Overflow用户
提问于 2016-09-16 02:52:14
回答 1查看 3.3K关注 0票数 0

我在我的Windows机器上使用docker工具箱。我正在尝试从github https://github.com/pyannote/pyannote-video构建这个项目。当我通过运行docker build -t pyannote/video .构建镜像时,我得到以下错误:

代码语言:javascript
复制
Get:17 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python-setuptools all 3.3-1ubuntu2 [230 kB]
Err http://archive.ubuntu.com/ubuntu/ trusty-updates/universe python-pip all 1.5.4-1ubuntu3
  404  Not Found [IP: 91.189.88.149 80]
Fetched 1658 kB in 21s (78.5 kB/s)
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/p/python-pip/python-pip-whl_1.5.4-1ubuntu3_all.deb  404  Not Found [IP: 91.189.88.1
9 80]

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/p/python-pip/python-pip_1.5.4-1ubuntu3_all.deb  404  Not Found [IP: 91.189.88.149 8
]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
The command '/bin/sh -c DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends     python     python-dev     python-pip' returned
a non-zero code: 100

我查过http://archive.ubuntu.com/ubuntu/pool/universe/p/python-pip/了。存在python-pip_1.5.4-1ubuntu4_all.deb而不是python-pip_1.5.4-1ubuntu3_all.deb。

输出要求我运行apt-get update或try with --fix-missing,但我在Windows上运行docker。运行apt-get将返回未找到命令。我应该怎么做才能解决这个问题?

EN

回答 1

Stack Overflow用户

发布于 2016-09-16 02:57:27

编辑Dockerfile并将第5行从以下位置更改:

代码语言:javascript
复制
RUN DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \

要这样做:

代码语言:javascript
复制
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -yq --no-install-recommends \
                                   ^ Add this part ^

然后告诉写文档文件的人去读this

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39518377

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档