Last active
February 23, 2024 14:13
-
-
Save mauriballes/34b86f84d78a08cc0ca7b0cc14352b36 to your computer and use it in GitHub Desktop.
Fix problem with apt-get update en Debian Jessie (8)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```docker | |
# debian jessie or debian 8 | |
FROM debian:jessie | |
# Fix Repositories from Debian Jessie | |
RUN echo "deb [check-valid-until=no] http://archive.debian.org/debian jessie main" > /etc/apt/sources.list.d/jessie.list && \ | |
echo "deb [check-valid-until=no] http://archive.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list && \ | |
sed -i '/deb http:\/\/deb.debian.org\/debian jessie-updates main/d' /etc/apt/sources.list && \ | |
sed -i '/deb http:\/\/deb.debian.org\/debian jessie main/d' /etc/apt/sources.list && \ | |
sed -i '/deb http:\/\/security.debian.org\/debian-security jessie\/updates main/d' /etc/apt/sources.list && \ | |
echo 'Acquire::Check-Valid-Until false;' > /etc/apt/apt.conf.d/archive | |
RUN apt-get update # Run with out any problem | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Absolutely doesn't work today