E:某些索引文件无法下载。它们被忽略了,或者使用了旧的。
命令' /bin/sh -c apt-get update
'返回non-zero code: 100
"
RUN rm /var/lib/apt/lists/* -vf
"之前" RUN apt-get update
"在Dockerfile
文件中。但仍然没有运气。我仍然遇到同样的错误。有谁能告诉我如何修复它来运行这个回购?非常感谢你。
更新1 :
嗨,我找到了这个问题的原因。这是因为我的互联网提供商禁止了一些下载网址。我切换到另一个互联网提供商并成功运行了第3步:bin / dev构建,尽管此步骤还有另一个问题"设置ca-certificates-java"我使用" overlay"机器归功于这个主题:https://github.com/docker/docker/issues/18180 - >但现在我在第4步提出了另一个问题:bin / dev up - >错误如下: " 创建unisubs20160121_cache_1 创建unisubs20160121_queue_1 创建unisubs20160121_db_1 创建unisubs20160121_worker_1 创建unisubs20160121_app_1 附加到unisubs20160121_worker_1,unisubs20160121_app_1 worker_1 | / usr / bin / python:无法打开文件' manage.py':[Errno 2]没有这样的文件或目录 unisubs20160121_worker_1退出代码2 app_1 | / usr / bin / python:无法打开文件' manage.py':[Errno 2]没有这样的文件或目录 unisubs20160121_app_1退出代码2 "
我接受命令:" bin / dev up"想要执行文件夹bin / dev中不存在的文件manage.py。我注意到的另一个奇怪的事情是在运行第3步之后:" bin / dev build"成功地,文件夹bin / dev中没有生成新文件。有人可以帮我解决这个问题吗?提前谢谢。
答案 0 :(得分:0)
编辑:这可能是错误的......
我认为问题是Dockerfile结构不正确。
best practices中记录了任何apt-get install
作为同一apt-get update
指令的一部分RUN
之前应该有update
。
正如您所发现的,原因在于,如果您不这样做,最终会导致--no-cache
被缓存,但上游软件包已更改,因此当您尝试安装时,构建失败。
临时解决方案是与docker build --no-cache ...
SELECT d.id, d.name FROM director d INNER JOIN studios s ON d.id = s.director_id INNER JOIN movie m ON s.id = m.studio_id WHERE m.name = "awakening";
一起运行。
真正的解决方案是修复Dockerfile。
答案 1 :(得分:0)
问题解决了......切换到SubtitleEdit。不再使用Unisubs(Amara)项目,因为运行它有很多问题。谢谢大家的回答:)。