In my test, apt doesn't respect "all_proxy" env variable.
It respect http_proxy variable.
And accroding to this ref, apt doesnt even respect http_proxy if you use "sudo apt".
Damn proxy.
According to this ref you can modify sudo config to change this feature.
评论区