CI fails due to missing Release file in debian stretch repository
The CI appears to be failing due to a missing Release file in debian stretch repositories.
Running with gitlab-runner 15.9.0~beta.115.g598a7c91 (598a7c91)
on blue-3.shared.runners-manager.gitlab.com/default zxwgkjAP, system ID: s_284de3abf026
feature flags: FF_USE_IMPROVED_URL_MASKING:true
Resolving secrets 00:00
Preparing the "docker+machine" executor 00:10
Using Docker executor with image debian:stretch ...
Pulling docker image debian:stretch ...
Using docker image sha256:662c05203bab4c59568d24689fa5c3955439360a35c483178598d226b9a5ad10 for debian:stretch with digest debian@sha256:c5c5200ff1e9c73ffbf188b4a67eb1c91531b644856b4aefe86a58d2f0cb05be ...
Preparing environment 00:02
Running on runner-zxwgkjap-project-9622379-concurrent-0 via runner-zxwgkjap-shared-1682326495-28411c14...
Getting source from Git repository 00:01
$ eval "$CI_PRE_CLONE_SCRIPT"
Fetching changes...
Initialized empty Git repository in /builds/fdroid/planet/.git/
Created fresh repository.
Checking out 01a9dbb4 as detached HEAD (ref is master)...
Skipping Git submodules setup
Executing "step_script" stage of the job script 00:02
Using docker image sha256:662c05203bab4c59568d24689fa5c3955439360a35c483178598d226b9a5ad10 for debian:stretch with digest debian@sha256:c5c5200ff1e9c73ffbf188b4a67eb1c91531b644856b4aefe86a58d2f0cb05be ...
$ apt-get update
Ign:1 http://deb.debian.org/debian stretch InRelease
Ign:2 http://security.debian.org/debian-security stretch/updates InRelease
Ign:3 http://deb.debian.org/debian stretch-updates InRelease
Ign:4 http://security.debian.org/debian-security stretch/updates Release
Ign:5 http://deb.debian.org/debian stretch Release
Ign:6 http://deb.debian.org/debian stretch-updates Release
Ign:7 http://deb.debian.org/debian stretch/main all Packages
Ign:8 http://deb.debian.org/debian stretch/main amd64 Packages
Ign:9 http://deb.debian.org/debian stretch-updates/main amd64 Packages
Ign:10 http://deb.debian.org/debian stretch-updates/main all Packages
Ign:7 http://deb.debian.org/debian stretch/main all Packages
Ign:8 http://deb.debian.org/debian stretch/main amd64 Packages
Ign:9 http://deb.debian.org/debian stretch-updates/main amd64 Packages
Ign:11 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
Ign:10 http://deb.debian.org/debian stretch-updates/main all Packages
Ign:7 http://deb.debian.org/debian stretch/main all Packages
Ign:8 http://deb.debian.org/debian stretch/main amd64 Packages
Ign:9 http://deb.debian.org/debian stretch-updates/main amd64 Packages
Ign:10 http://deb.debian.org/debian stretch-updates/main all Packages
Ign:7 http://deb.debian.org/debian stretch/main all Packages
Ign:8 http://deb.debian.org/debian stretch/main amd64 Packages
Ign:9 http://deb.debian.org/debian stretch-updates/main amd64 Packages
Ign:12 http://security.debian.org/debian-security stretch/updates/main all Packages
Ign:10 http://deb.debian.org/debian stretch-updates/main all Packages
Ign:7 http://deb.debian.org/debian stretch/main all Packages
Ign:8 http://deb.debian.org/debian stretch/main amd64 Packages
Ign:9 http://deb.debian.org/debian stretch-updates/main amd64 Packages
Ign:10 http://deb.debian.org/debian stretch-updates/main all Packages
Ign:7 http://deb.debian.org/debian stretch/main all Packages
Err:8 http://deb.debian.org/debian stretch/main amd64 Packages
404 Not Found [IP: 146.75.34.132 80]
Err:9 http://deb.debian.org/debian stretch-updates/main amd64 Packages
404 Not Found [IP: 146.75.34.132 80]
Ign:11 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
Ign:10 http://deb.debian.org/debian stretch-updates/main all Packages
Ign:12 http://security.debian.org/debian-security stretch/updates/main all Packages
Ign:11 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
Ign:12 http://security.debian.org/debian-security stretch/updates/main all Packages
Ign:11 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
Ign:12 http://security.debian.org/debian-security stretch/updates/main all Packages
Ign:11 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
Ign:12 http://security.debian.org/debian-security stretch/updates/main all Packages
Err:11 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
404 Not Found [IP: 151.101.194.132 80]
Ign:12 http://security.debian.org/debian-security stretch/updates/main all Packages
Reading package lists...
W: The repository 'http://security.debian.org/debian-security stretch/updates Release' does not have a Release file.
W: The repository 'http://deb.debian.org/debian stretch Release' does not have a Release file.
W: The repository 'http://deb.debian.org/debian stretch-updates Release' does not have a Release file.
E: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/main/binary-amd64/Packages 404 Not Found [IP: 151.101.194.132 80]
E: Failed to fetch http://deb.debian.org/debian/dists/stretch/main/binary-amd64/Packages 404 Not Found [IP: 146.75.34.132 80]
E: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/main/binary-amd64/Packages 404 Not Found [IP: 146.75.34.132 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
Uploading artifacts for failed job 00:01
Uploading artifacts...
WARNING: public: no matching files. Ensure that the artifact path is relative to the working directory (/builds/fdroid/planet)
ERROR: No files to upload
Cleaning up project directory and file based variables 00:01
ERROR: Job failed: exit code 1
I guess this is because stretch is EOL? I quickly tried to fix the issue by bumping the CI image to bullseye, but that resulted in some dependencies not resolving, so a fix requires some more changes to the CI script.