#1126808 apt-cacher-ng: Support pool sharing for snapshot.debian.org

Package:
apt-cacher-ng
Source:
apt-cacher-ng
Description:
caching proxy server for software repositories
Submitter:
Roland Clobus
Date:
2026-02-01 20:59:02 UTC
Severity:
normal
#1126808#5
Date:
2026-02-01 20:57:01 UTC
From:
To:
Hello Eduard,

I've been using apt-cacher-ng extensively for building the live images for Debian.
Thank you for this tool! It has saved me from downloading many gigabytes of data.

Recently I've experimented with snapshot.debian.org to build images from a specific timestamp.

I've been able to save some downloads by having the pool of snapshot.debian.org and deb.debian.org overlapping with the following Remap (in acng.conf above the Remap-debrep line):

Remap-debrepppool: snapshot.debian.org/archive/debian/20260111T142729Z/pool snapshot.debian.org/archive/debian/20251011T083425Z/pool deb.debian.org/debian/pool

This places all shareable files in the debreppool directory and the dists subdirectories stay separate.

However, it is rather inconvenient to specify every single timestamp individually, if I would like to use another timestamp.

Would it be possible to have a wild card for the timestamp in the remap line?

With kind regards,
Roland Clobus
Maintainer of the live images for Debian

A mini test case:
# The same files from 3 sources
http_proxy=http://localhost:3142 wcurl http://deb.debian.org/debian/pool/main/c/cdebconf-entropy/cdebconf-text-entropy_0.59_amd64.udeb
http_proxy=http://localhost:3142 wcurl http://snapshot.debian.org/archive/debian/20260111T142729Z/pool/main/c/cdebconf-entropy/cdebconf-text-entropy_0.59_amd64.udeb
http_proxy=http://localhost:3142 wcurl http://snapshot.debian.org/archive/debian/20251011T083425Z/pool/main/c/cdebconf-entropy/cdebconf-text-entropy_0.59_amd64.udeb

# Different versions were available at the different timestamps
http_proxy=http://localhost:3142 wcurl http://deb.debian.org/debian/pool/main/b/base-files/base-files_13.8+deb13u3_amd64.deb
http_proxy=http://localhost:3142 wcurl http://snapshot.debian.org/archive/debian/20260111T142729Z/pool/main/b/base-files/base-files_13.8+deb13u2_amd64.deb
http_proxy=http://localhost:3142 wcurl http://snapshot.debian.org/archive/debian/20251011T083425Z/pool/main/b/base-files/base-files_13.8+deb13u1_amd64.deb