Open haiyamading opened 1 year ago
Until the image is updated the following Dockerfile can be used as a workaround:
mh@DEV1-AP-04:~/workspace_bsp/mil-bsp$ cat Dockerfile
FROM debian/eol:stretch
# Workaround for issue 10: https://github.com/debuerreotype/docker-debian-eol-artifacts/issues/10
RUN echo "deb http://archive.debian.org/debian/ stretch main contrib non-free\ndeb http://archive.debian.org/debian/ stretch-backports main contrib non-free\ndeb http://archive.debian.org/debian-security/ stretch/updates main contrib non-free" > /etc/apt/sources.list && apt-get update
mh@DEV1-AP-04:~/workspace_bsp/mil-bsp$ sudo docker build -t debian-stretch-eol-fix -f Dockerfile .
Sending build context to Docker daemon 394MB
Step 1/2 : FROM debian/eol:stretch
---> cc00c4dfa40c
Step 2/2 : RUN echo "deb http://archive.debian.org/debian/ stretch main contrib non-free\ndeb http://archive.debian.org/debian/ stretch-backports main contrib non-free\ndeb http://archive.debian.org/debian-security/ stretch/updates main contrib non-free" > /etc/apt/sources.list && apt-get update
---> Running in 86a200596903
Ign:1 http://archive.debian.org/debian stretch InRelease
Get:2 http://archive.debian.org/debian stretch-backports InRelease [78.5 kB]
Get:3 http://archive.debian.org/debian-security stretch/updates InRelease [59.1 kB]
Get:4 http://archive.debian.org/debian stretch Release [118 kB]
Get:5 http://archive.debian.org/debian stretch-backports/contrib amd64 Packages [10.9 kB]
Get:6 http://archive.debian.org/debian stretch-backports/non-free amd64 Packages [33.2 kB]
Get:7 http://archive.debian.org/debian stretch-backports/main amd64 Packages [612 kB]
Get:8 http://archive.debian.org/debian-security stretch/updates/contrib amd64 Packages [1760 B]
Get:9 http://archive.debian.org/debian-security stretch/updates/main amd64 Packages [782 kB]
Get:10 http://archive.debian.org/debian-security stretch/updates/non-free amd64 Packages [14.1 kB]
Get:11 http://archive.debian.org/debian stretch Release.gpg [3177 B]
Get:12 http://archive.debian.org/debian stretch/non-free amd64 Packages [78.3 kB]
Get:13 http://archive.debian.org/debian stretch/main amd64 Packages [7080 kB]
Get:14 http://archive.debian.org/debian stretch/contrib amd64 Packages [50.7 kB]
Fetched 8921 kB in 4s (1885 kB/s)
Reading package lists...
Removing intermediate container 86a200596903
---> b636b9f4ad3d
Successfully built b636b9f4ad3d
Successfully tagged debian-stretch-eol-fix:latest
mh@DEV1-AP-04:~/workspace_bsp/mil-bsp$ sudo docker run -it debian-stretch-eol-fix /bin/bash
root@9c04d952f4d5:/# apt install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
ca-certificates git-man krb5-locales less libbsd0 libcurl3-gnutls libedit2 liberror-perl libexpat1 libffi6 libgdbm3 libgmp10 libgnutls30 libgpm2 libgssapi-krb5-2 libhogweed4 libidn2-0
libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.4-2 libldap-common libncurses5 libnghttp2-14 libp11-kit0 libperl5.24 libpopt0 libpsl5 librtmp1 libsasl2-2 libsasl2-modules
libsasl2-modules-db libssh2-1 libssl1.0.2 libssl1.1 libtasn1-6 libunistring0 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxmuu1 netbase openssh-client openssl patch perl
perl-modules-5.24 publicsuffix rename rsync xauth
Suggested packages:
gettext-base git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-arch git-cvs git-mediawiki git-svn gnutls-bin gpm krb5-doc krb5-user libsasl2-modules-gssapi-mit
| libsasl2-modules-gssapi-heimdal libsasl2-modules-ldap libsasl2-modules-otp libsasl2-modules-sql keychain libpam-ssh monkeysphere ssh-askpass ed diffutils-doc perl-doc libterm-readline-gnu-perl
| libterm-readline-perl-perl make openssh-server
The following NEW packages will be installed:
ca-certificates git git-man krb5-locales less libbsd0 libcurl3-gnutls libedit2 liberror-perl libexpat1 libffi6 libgdbm3 libgmp10 libgnutls30 libgpm2 libgssapi-krb5-2 libhogweed4 libidn2-0
libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.4-2 libldap-common libncurses5 libnghttp2-14 libp11-kit0 libperl5.24 libpopt0 libpsl5 librtmp1 libsasl2-2 libsasl2-modules
libsasl2-modules-db libssh2-1 libssl1.0.2 libssl1.1 libtasn1-6 libunistring0 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxmuu1 netbase openssh-client openssl patch perl
perl-modules-5.24 publicsuffix rename rsync xauth
0 upgraded, 56 newly installed, 0 to remove and 0 not upgraded.
Need to get 22.8 MB of archives.
After this operation, 102 MB of additional disk space will be used.
Do you want to continue? [Y/n]
[...]
I also need Strech to build some legacy embedded root filesystems. Please update the images on docker hub.
This issue also affects debian/eol:stretch-slim.
Brother you're a legend for sharing the solution.
This seems to be the same issue as with Issue 8 but for Stretch. All sources have been moved to archive.debian.org but the image does not reflect this change yet.