Bug#1109132: sbuild: document how to use an apt proxy
Quoting Chris Hofstaedtler (2025-07-12 12:12:13) > On Sat, Jul 12, 2025 at 09:08:28AM +0200, Lucas Nussbaum wrote: > > While refreshing my sbuild setup, I failed to find documentation on how > > to use an APT proxy together with unshare+mmdebstrap. > > > > Ideally there would be doc about: > > - specifying an APT proxy by URL > > - using auto-apt-proxy to auto-detect the proxy > > > > And it should be documented how to do that using command-line options, > > and in .config/sbuild/config.pl > > I think there is agreement that these common usecases should be > documented in the manual pages, but it has not happened yet. That is correct. I'm working on it. Sorry for the delay. I'm not at DebConf because these weeks it's exam season so I'm very busy... :( Thanks! cheers, josch signature.asc Description: signature
Bug#1109132: sbuild: document how to use an apt proxy
Hi Lucas,
On Sat, Jul 12, 2025 at 09:08:28AM +0200, Lucas Nussbaum wrote:
> While refreshing my sbuild setup, I failed to find documentation on how
> to use an APT proxy together with unshare+mmdebstrap.
>
> Ideally there would be doc about:
> - specifying an APT proxy by URL
> - using auto-apt-proxy to auto-detect the proxy
>
> And it should be documented how to do that using command-line options,
> and in .config/sbuild/config.pl
I think there is agreement that these common usecases should be
documented in the manual pages, but it has not happened yet.
For "APT proxy by URL", the config.pl fragment that currently gets advertised
is:
push @{$unshare_mmdebstrap_extra_args}, "*",
['--aptopt=Acquire::http { Proxy "http://127.0.0.1:3142";; }'];
Hope this helps,
Chris
Bug#1109132: sbuild: document how to use an apt proxy
Package: sbuild Version: 0.89.3 Severity: wishlist Hi, While refreshing my sbuild setup, I failed to find documentation on how to use an APT proxy together with unshare+mmdebstrap. Ideally there would be doc about: - specifying an APT proxy by URL - using auto-apt-proxy to auto-detect the proxy And it should be documented how to do that using command-line options, and in .config/sbuild/config.pl Regarding config.pl, maybe it can be solved by improving the example config.pl It looks like the following does what I need: $piuparts_opts = ['--bootstrapcmd=mmdebstrap --skip=check/empty --variant=minbase --include=auto-apt-proxy', '--no-eatmydata', '--distribution=%r', '--fake-essential-packages=systemd-sysv']; $unshare_mmdebstrap_extra_args = [ "*" => ['--include=auto-apt-proxy'] ]; Best, Lucas

