I want to run
debootstrap and create a distro multiple times without constantly downloading packages.
apt-cacher-ng or the
--foreign option in debootstrap doesn't work completely offline (e.g. if I am doing this on the train) because debootstrap will still try to connect to the internet to get the InRelease file from the remote repo.
It seems like squid (or some other caching proxy) should be able to be configured to cache certain urls so that when I am offline I can still run the process.
What should I install and how should I configure it to achieve this?