Am Donnerstag, dem 28.10.2021 um 11:58 +0300 schrieb Uladzimir Bely: > > I need to cache outside of schroot these .deb files that were downloaded by > apt. They are supposed to be used for creaing a local partial debian > repository, so that the second build will use this local repo instead of > internet one.
I use a caching proxy for that (squid-deb-proxy). There is also various tools (e.g. apt-auto-proxy, squid-deb-proxy-client) to detect proxies automatically, which might require some special network setups in the chroot/container/VM though. Otherwise just set the proxy via Acquire::http::Proxy (/etc/sbuild/chroot/<chroot>/etc/apt/apt.conf.d/30proxy) or something similar. I use that for sbuild chroots, autopkgtest containers and VMs, and even when testing custom installer CDs. HTH and regards, Daniel -- Regards, Daniel Leidert <dleid...@debian.org> | https://www.wgdd.de/ GPG-Key RSA4096 / BEED4DED5544A4C03E283DC74BCD0567C296D05D GPG-Key ED25519 / BD3C132D8B3805D1808123AB7ACE00941E338C78 https://www.fiverr.com/dleidert https://www.patreon.com/join/dleidert
signature.asc
Description: This is a digitally signed message part