这是3天没有答案后的重新发布。
我有一个自带 (BYON) Docker 云的工作版本,并且几个月以来一直在它上面成功构建。当我今天尝试重建时,它返回了一个非零代码apt-get update
....
Removing intermediate container db00ef7ced82
The command '/bin/sh -c apt-get update' returned a non-zero code: 100
我已经单独apt-get update
进行了调试以隔离错误。我知道它应该与&& apt-get upgrade
下面的日志文件中所示相结合。
当我省略时update
,以下所有upgrade
工作都正常,所以我认为这是更新列表的一些锁定,而不是防火墙问题。我还尝试在更新之前删除 docker 文件中的列表而不做任何更改。我还在这个项目的 Docker Hub 仪表板中禁用了缓存。
使用 Docker 的内部构建并在我自己的计算机上,该错误不会出现。
由于这是在我由 docker 安装的服务器上的多容器应用程序中运行的,因此我不知道如何 bash 来检查详细信息。
Building in User Node '0b9e8b1e-aa38-4099-b35c-96129f0f7238.node.dockerapp.io'...
Cloning into '.'...
Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hosts.
Reset branch 'master'
Your branch is up-to-date with 'origin/master'.
KernelVersion: 4.4.0-89-generic
Arch: amd64
BuildTime: 2017-03-28T19:10:44.739403725+00:00
ApiVersion: 1.27
Version: 17.03.1-ee-2
MinAPIVersion: 1.12
GitCommit: ad495cb
Os: linux
GoVersion: go1.7.5
Starting build of index.docker.io/dmenne/gastro-docker:latest...
Step 1/17 : FROM rocker/tidyverse:latest
---> 9daf220f0831
Step 2/17 : MAINTAINER Dieter Menne "dieter.menne@menne-biomed.de"
---> Running in 63c20055e4f6
---> d5f1d1bd8710
Removing intermediate container 63c20055e4f6
Step 3/17 : RUN apt-get update && apt-get install -y libssl-dev sudo gdebi-core pandoc pandoc-citeproc libcurl4-gnutls-dev libcairo2-dev libgl1-mesa-dev libglu1-mesa-dev libxt-dev
---> Running in 421fbe386f3b
Ign:1 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Ign:2 http://cdn-fastly.debian.org/debian-security stretch/updates InRelease
Get:3 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease [88.5 kB]
Ign:4 http://cdn-fastly.debian.org/debian-security stretch/updates Release
Ign:5 http://cdn-fastly.debian.org/debian-security stretch/updates/main all Packages
Ign:6 http://cdn-fastly.debian.org/debian-security stretch/updates/main amd64 Packages
Ign:5 http://cdn-fastly.debian.org/debian-security stretch/updates/main all Packages
Ign:6 http://cdn-fastly.debian.org/debian-security stretch/updates/main amd64 Packages
Ign:5 http://cdn-fastly.debian.org/debian-security stretch/updates/main all Packages
Ign:6 http://cdn-fastly.debian.org/debian-security stretch/updates/main amd64 Packages
Ign:5 http://cdn-fastly.debian.org/debian-security stretch/updates/main all Packages
Ign:6 http://cdn-fastly.debian.org/debian-security stretch/updates/main amd64 Packages
Hit:7 http://cdn-fastly.deb.debian.org/debian stretch Release
Ign:5 http://cdn-fastly.debian.org/debian-security stretch/updates/main all Packages
Ign:6 http://cdn-fastly.debian.org/debian-security stretch/updates/main amd64 Packages
Ign:5 http://cdn-fastly.debian.org/debian-security stretch/updates/main all Packages
Err:6 http://cdn-fastly.debian.org/debian-security stretch/updates/main amd64 Packages
404 Not Found
Fetched 88.5 kB in 0s (236 kB/s)
Reading package lists...
W:
The repository 'http://cdn-fastly.debian.org/debian-security stretch/updates Release' does not have a Release file.
E: Failed to fetch http://cdn-fastly.debian.org/debian-security/dists/stretch/updates/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
Removing intermediate container 421fbe386f3b
The command '/bin/sh -c apt-get update && apt-get install -y libssl-dev sudo gdebi-core pandoc pandoc-citeproc libcurl4-gnutls-dev libcairo2-dev libgl1-mesa-dev libglu1-mesa-dev libxt-dev' returned a non-zero code: 100
ERROR: Build failed: The command '/bin/sh -c apt-get update && apt-get install -y libssl-dev sudo gdebi-core pandoc pandoc-citeproc libcurl4-gnutls-dev libcairo2-dev libgl1-mesa-dev libglu1-mesa-dev libxt-dev' returned a non-zero code: 100
ERROR: Build failed with exit code 2
ERROR: Build in 'master' (55fd6a09) failed in 0:01:49