Skip to content

Instantly share code, notes, and snippets.

@mauriballes
Last active February 23, 2024 14:13
Show Gist options
  • Save mauriballes/34b86f84d78a08cc0ca7b0cc14352b36 to your computer and use it in GitHub Desktop.
Save mauriballes/34b86f84d78a08cc0ca7b0cc14352b36 to your computer and use it in GitHub Desktop.
Fix problem with apt-get update en Debian Jessie (8)
```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
```
@safinaskar
Copy link

Absolutely doesn't work today

@mauriballes
Copy link
Author

Thanks for the comment @safinaskar. I updated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment