From 279532cbe96a55ddcfcab8d719b61012b72891e0 Mon Sep 17 00:00:00 2001 From: Matias Fernandez Date: Wed, 31 Jul 2024 00:32:47 -0700 Subject: [PATCH] Fix Jessie problem When building the image, I was getting two errors: 1. Step #0 - "Build": W: Failed to fetch http://security.debian.org/dists/jessie/updates/main/binary-amd64/Packages 404 Not Found [IP: 151.101.66.132 80] 2. Step #0 - "Build": W: Failed to fetch http://http.debian.net/debian/dists/jessie/main/binary-amd64/Packages 404 Not Found Sources: 1. deb jessie https://stackoverflow.com/questions/75836790/docker-packages-404-not-found-from-node8-jessie 2. [trusted=yes] https://unix.stackexchange.com/questions/598344/debian-8-jessie-keyexpired-1587841717 --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9fd3f6d..88551dd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,9 @@ FROM ruby:1.9.3 # # W: Failed to fetch http://http.debian.net/debian/dists/jessie-updates/InRelease # -RUN sed -i '/jessie-updates/d' /etc/apt/sources.list +RUN rm /etc/apt/sources.list +RUN echo "deb [trusted=yes] http://archive.debian.org/debian/ jessie main" >> /etc/apt/sources.list.d/jessie.list +RUN echo "deb [trusted=yes] http://archive.debian.org/debian-security jessie/updates main" >> /etc/apt/sources.list.d/jessie.list # Install the build essentials for building gems and the updated certificates # to prevent "certificate verify failed" errors.