0% [Working]Ign:1 http://deb.debian.org/debian stretch InRelease
0% [Waiting for headers]Ign:2 http://deb.debian.org/debian stretch-updates InRelease
0% [Waiting for headers]Err:3 http://deb.debian.org/debian stretch Release
404 Not Found
0% [Waiting for headers]Err:4 http://deb.debian.org/debian stretch-updates Release
404 Not Found
0% [Waiting for headers]Ign:5 http://security.debian.org/debian-security stretch/updates InRelease
0% [Working] Err:6 http://security.debian.org/debian-security stretch/updates Release
404 Not Found
0% [Working]Reading package lists... Done
E: The repository 'http://deb.debian.org/debian stretch Release' does no longer 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 no longer 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://security.debian.org/debian-security stretch/updates Release' does no longer 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.
Exited with code exit status 100
CircleCI received exit code 100
Could you provide details about the environment you are running including which image you are working with as the errors are being generated within the image’s OS environment, rather than the CircleCI environment.
Working with circleci/node:12.22.7 may be causing you issues. This image was last updated by CircleCI back in Oct 2021 and from the errors you have listed debian.org may have modified the underlying repos. It may also just be that the repos are suffering an issue and waiting a while will see the issue go away.
If the issue does not clear up on its own the best answer would be for you to raise a support ticket so that your issue can be passed on to the team that maintains the image. While the image has not be built/reissued for some time, it does not mean that it is not supported.
I had a look at your config and see that you are using a legacy image: circleci/node:12.22.7.
We have deprecated the circleci images in favor of our next-gen cimg images. The error is caused by outdated references in the legacy image's apt source list because Debian has recently made updates on how their file structuring works.
We recommend that you update your image to use the equivalent convenience image:
- https://circleci.com/developer/images/image/cimg/node
I guess I’ll try to use that cimg image and hope I can get it to work with that
sudo sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list
sudo sed -i 's|security.debian.org|archive.debian.org|g' /etc/apt/sources.list
sudo sed -i '/stretch-updates/d' /etc/apt/sources.list
Thank you! My image, circleci/ruby:2.6.6-stretch-node-browsers had another sources list, so I had to do:
sudo sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list
sudo sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list.d/stretch-backports.list
sudo sed -i 's|security.debian.org|archive.debian.org|g' /etc/apt/sources.list
sudo sed -i '/stretch-updates/d' /etc/apt/sources.list