suchja / x11client

Base docker image for running X11 Applications connected to suchja/x11server
Creative Commons Zero v1.0 Universal
24 stars 21 forks source link

Needs to update base container #1

Closed amake closed 5 years ago

amake commented 5 years ago

This container's base is debian:jessie; Jessie is no longer receiving updates, so the jessie-updates apt source has been taken down. This makes running apt-get update fail in a container with an old source list. For instance trying to build suchja/wine:

$ docker build .
Sending build context to Docker daemon    105kB
Step 1/14 : FROM suchja/x11client:latest
 ---> d4f58686e2f0
Step 2/14 : MAINTAINER Jan Suchotzki <jan@suchotzki.de>
 ---> Using cache
 ---> 204f1a1218e5
Step 3/14 : ENV WINE_MONO_VERSION 0.0.8
 ---> Using cache
 ---> 82814851d73f
Step 4/14 : USER root
 ---> Using cache
 ---> 6851a2410449
Step 5/14 : RUN apt-get update  && apt-get install -y --no-install-recommends   curl        unzip       ca-certificates
 ---> Running in b87dc45cdb7b
Get:1 http://security.debian.org jessie/updates InRelease [44.9 kB]
Ign http://httpredir.debian.org jessie InRelease
Get:2 http://httpredir.debian.org jessie-updates InRelease [7340 B]
Get:3 http://httpredir.debian.org jessie Release.gpg [2420 B]
Get:4 http://httpredir.debian.org jessie Release [148 kB]
Get:5 http://security.debian.org jessie/updates/main amd64 Packages [824 kB]
Get:6 http://httpredir.debian.org jessie/main amd64 Packages [9098 kB]
Fetched 10.1 MB in 15s (659 kB/s)
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/InRelease  Unable to find expected entry 'main/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.
The command '/bin/sh -c apt-get update  && apt-get install -y --no-install-recommends       curl        unzip       ca-certificates' returned a non-zero code: 100

Here are the apt sources for your container:

$ docker run --rm -it --entrypoint /bin/bash suchja/wine -c 'cat /etc/apt/sources.list'
deb http://httpredir.debian.org/debian jessie main
deb http://httpredir.debian.org/debian jessie-updates main
deb http://security.debian.org jessie/updates main

Here are the sources in the latest debian:jessie (7cd9fb1ee74f):

$ docker run --rm -it debian:jessie /bin/bash -c 'cat /etc/apt/sources.list'
# deb http://snapshot.debian.org/archive/debian/20190326T120000Z jessie main
deb http://deb.debian.org/debian jessie main
# deb http://snapshot.debian.org/archive/debian-security/20190326T120000Z jessie/updates main
deb http://security.debian.org/debian-security jessie/updates main

I have a container downstream of suchja/wine that currently can't build due to this issue; if you could simply trigger a new build of this project and suchja/wine, thus updating the sources list, that would be great.

amake commented 5 years ago

I should note that downstream containers can work around this issue by running the following before calling apt-get update:

RUN echo 'deb http://deb.debian.org/debian jessie main' > /etc/apt/sources.list \
    && echo 'deb http://security.debian.org/debian-security jessie/updates main' >> /etc/apt/sources.list
suchja commented 5 years ago

Triggered build. Hope this works and does not break anything. I'm currently not using those images. Thus if there are any issue it would be great, if you could come back to me.

Thanks for bringing this up!