Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

apt-get update' returned a non-zero code: 100 #19

Closed
dmenne opened this issue Nov 5, 2016 · 12 comments · Fixed by #23
Closed

apt-get update' returned a non-zero code: 100 #19

dmenne opened this issue Nov 5, 2016 · 12 comments · Fixed by #23

Comments

@dmenne
Copy link

dmenne commented Nov 5, 2016

I had working containers derived from rocker/shiny before, but recently I always run into an error. The simplest Dockerfile to reproduce:

FROM rocker/shiny:latest

MAINTAINER Dieter Menne "dieter.menne@menne-biomed.de"

RUN apt-get update 
Get:36 http://ftp.uni-stuttgart.de/debian sid/main amd64 Packages.diff/Index [27.9 kB]
Get:36 http://ftp.uni-stuttgart.de/debian sid/main amd64 Packages.diff/Index [27.9 kB]
Get:37 http://ftp.uni-stuttgart.de/debian sid/main amd64 Packages [9,795 kB]
Reading package lists...
E: Could not open file /var/lib/apt/lists/http.debian.net_debian_dists_sid_main_binary-amd64_Packages.diff_Index - open (2: No such file or directory)
The command '/bin/sh -c apt-get update' returned a non-zero code: 100

@eddelbuettel
Copy link
Member

That happens once in a while, also with other containers and is not under our control.

I cannot suggest anything better than re-running apt-get update. I sometimes remove the offending index file.

I suggest we close this for lack of anything actionable.

@rvernica
Copy link
Contributor

Maybe the r-base image should be based of a stable debian image like debian:jessie instead of debian:testing. This might make the repositories more reliable.

@eddelbuettel
Copy link
Member

Nope, and that has been discussed at considerable length -- see some of the the closed issue tickets (and we apologize for those being scattered over several related Rocker github repos).

We often want current software and stable does not give that. And as an aside, repository server timeouts have nothing to do with the content you request from it ...

@rvernica
Copy link
Contributor

@eddelbuettel FYI, this issue seems to arise fairly frequent...

...
Get:8 http://cdn-fastly.deb.debian.org/debian sid/main amd64 Packages [9,944 kB]
Reading package lists...
E: Could not open file /var/lib/apt/lists/deb.debian.org_debian_dists_testing_main_binary-amd64_Packages.diff_Index - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/http.debian.net_debian_dists_sid_main_binary-amd64_Packages.diff_Index - open (2: No such file or directory)
The command '/bin/sh -c apt-get update && apt-get install --assume-yes         libssl-dev' returned a non-zero code: 100

@eddelbuettel
Copy link
Member

@rvernica Thanks for blaming me personally ;-) Would appreciate a PR fixing it.

@rvernica
Copy link
Contributor

rvernica commented Feb 11, 2017 via email

@wch
Copy link
Contributor

wch commented Feb 11, 2017

@rvernica The problem was that it caused build failures. See my comment on that PR.

@eddelbuettel
Copy link
Member

@rvernica Let's just agree to disagree.

@rama-rajkumar
Copy link

I am facing the same issue for last few days, and even after trying multiple times, I am not able to build a container derived from rocker/shiny. It was working earlier.

@rvernica
Copy link
Contributor

rvernica commented Mar 2, 2017

@shanFitGit I have a PR pending, #23, which should fix this. Since it is not yet merged, you can try basing your image off rvernica/shiny https://hub.docker.com/r/rvernica/shiny/ The image is build from this repository but with my patch applied.

@krlmlr
Copy link

krlmlr commented Jun 14, 2017

FWIW, I was able to work around this problem by adding RUN apt-get update || apt-get update to my Rockerfile.

richfitz added a commit to vimc/montagu-orderly that referenced this issue Sep 4, 2017
Robbie1977 added a commit to VirtualFlyBrain/pipeline that referenced this issue Nov 27, 2017
@juskiewicz
Copy link

I use, when this problem
apt-get update; exit 0 ^_^

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants