As there may be the need to define how to find the proxy, this is for just defining it, the check would proof that it works. maybe something like: /etc/apt-proxy-detect.conf with PROXY_RESOLVE=set,avahi,.... PROXY_SET=<proxy1>,<proxy2>...