debuerreotype / docker-debian-eol-artifacts

Official builds of debuerreotype-generated Debian EOL tarballs for use in Docker (archive.debian.org)
https://hub.docker.com/r/debian/eol
Apache License 2.0
6 stars 1 forks source link

apt update failed for Debian Stretch due to outdated image on Docker Hub #10

Open haiyamading opened 1 year ago

haiyamading commented 1 year ago

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.

mh@DEV1-AP-04:~/workspace_bsp/mil-bsp$ sudo docker run -it debian/eol:stretch /bin/bash
Unable to find image 'debian/eol:stretch' locally
stretch: Pulling from debian/eol
486b8a22ffc2: Pull complete 
Digest: sha256:37926e7ba5138271a9e1e1902c520e03bce104c057741a7f82f35a4ff364d8c2
Status: Downloaded newer image for debian/eol:stretch
root@86151979b12b:/# apt update
Ign:1 http://deb.debian.org/debian stretch InRelease
Ign:2 http://deb.debian.org/debian-security stretch/updates InRelease
Ign:3 http://deb.debian.org/debian stretch-updates InRelease
Err:4 http://deb.debian.org/debian stretch Release
  404  Not Found
Err:5 http://deb.debian.org/debian-security stretch/updates Release
  404  Not Found
Err:6 http://deb.debian.org/debian stretch-updates Release
  404  Not Found
Reading package lists... Done
E: The repository 'http://deb.debian.org/debian stretch Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://deb.debian.org/debian-security stretch/updates Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://deb.debian.org/debian stretch-updates Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
haiyamading commented 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] 

[...]
QuickJack commented 1 year ago

I also need Strech to build some legacy embedded root filesystems. Please update the images on docker hub.

QuickJack commented 1 year ago

This issue also affects debian/eol:stretch-slim.

EngineeringOV commented 1 week ago

Brother you're a legend for sharing the solution.