[BUG] failed to solve: process "/bin/sh -c apt-get -y update --fix-missing" did not complete successfully: exit code: 100
gmaccario opened this issue · 2 comments
Describe the bug
I run docker-compose up -d on PHPVERSION=php71 (but also 7.2, 7.3) and I get these errors:
==> ERROR [webserver 2/29] RUN apt-get -y update --fix-missing 1.9s
[webserver 2/29] RUN apt-get -y update --fix-missing:
1.015 Ign http://security.debian.org jessie/updates InRelease
1.065 Ign http://deb.debian.org jessie InRelease
1.071 Ign http://security.debian.org jessie/updates Release.gpg
1.116 Ign http://security.debian.org jessie/updates Release
1.123 Ign http://deb.debian.org jessie Release.gpg
1.160 Ign http://deb.debian.org jessie Release
1.169 Err http://security.debian.org jessie/updates/main amd64 Packages
1.169
1.205 Err http://deb.debian.org jessie/main amd64 Packages
1.205
1.218 Err http://security.debian.org jessie/updates/main amd64 Packages
1.218
1.250 Err http://deb.debian.org jessie/main amd64 Packages
1.250
1.262 Err http://security.debian.org jessie/updates/main amd64 Packages
1.262
1.290 Err http://deb.debian.org jessie/main amd64 Packages
1.290
1.310 Err http://security.debian.org jessie/updates/main amd64 Packages
1.310
1.333 Err http://deb.debian.org jessie/main amd64 Packages
1.333
1.370 Err http://security.debian.org jessie/updates/main amd64 Packages
1.370 404 Not Found [IP: 151.101.194.132 80]
1.376 Err http://deb.debian.org jessie/main amd64 Packages
1.376 404 Not Found [IP: 199.232.150.132 80]
1.377 W: Failed to fetch http://security.debian.org/debian-security/dists/jessie/updates/main/binary-amd64/Packages 404 Not Found [IP: 151.101.194.132 80]
1.377
1.377 W: Failed to fetch http://deb.debian.org/debian/dists/jessie/main/binary-amd64/Packages 404 Not Found [IP: 199.232.150.132 80]
1.377
1.377 E: Some index files failed to download. They have been ignored, or old ones used instead.
failed to solve: process "/bin/sh -c apt-get -y update --fix-missing" did not complete successfully: exit code: 100
which Branch / PHP Version are you using ?
php71, php72, php73
Steps to reproduce
Steps to reproduce the behavior:
- Create a .env file
- Change the PHP version to php71
- Run docker-compose up -d
- See errors
Expected behavior
I am expecting to run the containers, as per php8
Desktop (please complete the following information):
- Docker version 24.0.7, build afdd53b
Additional context
Working correctly for PHP8 though.
I had the same issue with the 5.6 branch. I fixed it by adding:
RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list
before
RUN apt-get -y update....
The reason is that stretch (and jessie, not sure which you're on because the log you pasted and your screenshot seem to show both) has been archived, so you need to update the sources list to use the archive location. Hope this helps, I guess the repo should be updated to make sure the archive locations are added to the appropriate Dockerfiles.
Hey everyone,
i just pushed a fix for that. Thanks for reporting.
8140d5b