Docker构建:无法抓取存档 [英] Docker build: unable to fetch archives

查看:478
本文介绍了Docker构建:无法抓取存档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

  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全部1.5.4-1ubuntu3
404未找到[IP:91.189.88.149 80]
在21s中提取了1658 kB(78.5 kB / s )
E:无法提取http://archive.ubuntu.com/ubuntu/pool/universe/p/python-pip/python-pip-whl_1.5.4-1ubuntu3_all.deb 404未找到[IP:91.189 .88.1
9 80]

E:无法提取http://archive.ubuntu.com/ubuntu/pool/universe/p/python-pip/python-pip_1.5.4- 1ubuntu3_all.deb 404未找到[IP:91.189.88.149 8
]

E:无法获取某些档案,也许运行apt-get更新或尝试--fix-missing?
命令'/ bin / sh -c DEBIAN_FRONTEND = noninteractive apt-get install -yq --no-install-recommendations python python-dev python-pip'返回
a非零代码: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更新或尝试使用--fix-missing,但我在Windows上运行docker。运行apt-get将返回没有找到命令。我该如何解决这个问题?

解决方案

编辑Docker文件并从中更改第5行:

 运行DEBIAN_FRONTEND =非交互式apt-get install -yq --no-install-recommendations \ 

 运行DEBIAN_FRONTEND =非交互式apt-get更新&& apt-get install -yq --no-install-recommendations \ 
^添加此部分^

然后告诉谁写那个Docker文件来阅读这个


I'm using docker toolbox on my Windows machine. I'm trying to build this project from github https://github.com/pyannote/pyannote-video. When I build an image by running docker build -t pyannote/video ., I get the following error:

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

I checked on http://archive.ubuntu.com/ubuntu/pool/universe/p/python-pip/. There is python-pip_1.5.4-1ubuntu4_all.deb instead of python-pip_1.5.4-1ubuntu3_all.deb.

The output is asking me to run apt-get update or try with --fix-missing, but I'm running docker on Windows. Run apt-get will return command not found. What should I do to fix this?

解决方案

Edit the Dockerfile and change line 5 from this:

RUN DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \

to this:

RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -yq --no-install-recommends \
                                   ^ Add this part ^

Then tell whoever wrote that Dockerfile to read this.

这篇关于Docker构建:无法抓取存档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆