Following the instructions in Best way to cache apt downloads on a LAN?, I've set up a caching proxy in my local network. Since that machine is not always up, I'd like to be able to refresh the sources list and install packages without using that proxy if unavailable.
I've already read the Acquire group section in the manual page of apt.conf(5)
, but I couldn't find an option like "Silent-Fail".
At the moment, sudo apt-get update
and related commands fail because no connection could be established. So how do I configure the client so that the proxy is ignored if it's not available?