Skip to content

Instantly share code, notes, and snippets.

@lmlsna
lmlsna / 02proxy
Last active August 29, 2021 04:44
Using apt-cacher proxies with fallback to direct
## /etc/apt/apt.conf.d/02proxy
# You can add this line for faster failover
Acquire::Retries 0;
# Make sure you use the full path
Acquire::http::Proxy-Auto-Detect "/usr/bin/apt-proxy-detect.sh";