for the record here my solution

$unshare_mmdebstrap_extra_args = [
    "*" => [ '--aptopt=Acquire::http { Proxy "http://...";; }',
             '--aptopt=Acquire::https { Proxy "http://...";; }',
'--customize-hook=echo "export http_proxy=http://..."; > "$1"/etc/environment', '--customize-hook=echo "export https_proxy=http://..."; > "$1"/etc/environment',
    ]
    ];

Reply via email to