I could not get /etc/apt/apt.conf.d/auto-apt-proxy.conf to take /usr/local/bin/auto-apt-proxy1 or pass the awk command directly.

So finalyy moved /usr/bin/auto-apt-proxy to /usr/bin/auto-apt-proxy1

and created /usr/bin/auto-apt-proxy as

#!/bin/sh
auto-apt-proxy1 echo "http://$(hostname -I |awk {'print $1'}):3142"

This seems to be working, though the original issue with apt-cacher-ng is not fixed :( (it is probably better than before)

Reply via email to