#1109132 sbuild: document how to use an apt proxy

#1109132#5
Date:
2025-07-12 07:08:28 UTC
From:
To:
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

#1109132#10
Date:
2025-07-12 10:12:13 UTC
From:
To:
Hi Lucas,

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

#1109132#13
Date:
2025-07-12 10:20:40 UTC
From:
To:
Quoting Chris Hofstaedtler (2025-07-12 12:12:13)

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