Skip to content

Instantly share code, notes, and snippets.

@kevin-cantwell
Created March 26, 2019 14:12
Show Gist options
  • Save kevin-cantwell/90d8d5b645cb1475d6d79c7084805b03 to your computer and use it in GitHub Desktop.
Save kevin-cantwell/90d8d5b645cb1475d6d79c7084805b03 to your computer and use it in GitHub Desktop.
Dockerfile example for migrating Debian to archive sources
# https://lists.debian.org/debian-devel-announce/2019/03/msg00006.html
RUN echo "deb http://archive.debian.org/debian jessie main" | tee /etc/apt/sources.list
RUN echo "deb http://archive.debian.org/debian/ jessie-backports main" | tee -a /etc/apt/sources.list
RUN echo "deb http://security.debian.org jessie/updates main" | tee -a /etc/apt/sources.list
RUN echo "Acquire::Check-Valid-Until false;" | tee -a /etc/apt/apt.conf.d/10-nocheckvalid
RUN echo 'Package: *\nPin: origin "archive.debian.org"\nPin-Priority: 500' | tee -a /etc/apt/preferences.d/10-archive-pin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment