PrestaShop / PrestaShop/docker
End of support for debian stretch - Failed to fetch stretch* 404 Not Found - Need to rebuild old images to use debian strech in archive repo
Nobody has claimed this yet.
- Dominant language
- Dockerfile
- Stars
- 281
- Forks
- 190
- PR merge metrics
- No merged PRs in 30d
Description
We have the following error when using PrestaShop images using bebian strech, after running apt update:
#0 7.742 E: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/main/binary-amd64/Packages 404 Not Found [IP: 151.101.66.132 80]
#0 7.742 E: Failed to fetch http://deb.debian.org/debian/dists/stretch/main/binary-amd64/Packages 404 Not Found
#0 7.742 E: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/main/binary-amd64/Packages 404 Not Found
#0 7.742 E: Some index files failed to download. They have been ignored, or old ones used instead.
The issue is related to debian repos that removed the stretch support (which is still accessible in the archive repos).
To fix this issue, you may try rebuilding the PrestaShop Docker images should automatically update the repo to archive (as the base image is from PHP FROM php:7.1-apache, it should automatically be using the archive repo in the source list)
I was able to reproduce the issue with PS 1.5 / 1.6 / 1.7.5.5
As a workaround, we are detecting the debian version and changing the repo list:
ARG VERSION_PRESTA
FROM prestashop/prestashop:$VERSION_PRESTA
# Update apt source list (for debian stretch on old PS images using debian 9)
RUN if [ $(awk -F. '{print $1}' /etc/debian_version) -eq 9 ]; then \
printf 'deb http://archive.debian.org/debian/ stretch main contrib non-free deb http://archive.debian.org/debian-security/ stretch/updates main contrib non-free deb http://archive.debian.org/debian/ stretch-backports main contrib non-free' > /etc/apt/sources.list; \
fi
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect the Docker image definitions for PrestaShop 1.5, 1.6, and 1.7.5.5, including the PHP 7.1 Apache base image and its Debian sources. Rebuild the affected images and verify that apt update succeeds for Debian Stretch using the archive repositories.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- debian, docker, php
- Domain
- devops, infrastructure, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100