I managed to reproduce this in an environment where there is no default gateway at all and package downloads are only doable via a proxy server. I do not recall the same happening when a default gateway was configured.
ubuntu@juju-6d9aac-3-lxd-1:~$ apt policy python-pip
N: Unable to locate package python-pip
I managed to reproduce this in an environment where there is no default gateway at all and package downloads are only doable via a proxy server. I do not recall the same happening when a default gateway was configured.
ubuntu@ juju-6d9aac- 3-lxd-1: ~$ apt policy python-pip
N: Unable to locate package python-pip
cat /etc/apt/ apt.conf. d/95-juju- proxy-settings :http:: Proxy "http:// 10.232. 0.1:3128"; :https: :Proxy "http:// 10.232. 0.1:3128"; :http:: Proxy:: "127.0. 0.1" "DIRECT"; :https: :Proxy: :"127.0. 0.1" "DIRECT"; :ftp::Proxy: :"127.0. 0.1" "DIRECT"; :http:: Proxy:: "::1" "DIRECT"; :https: :Proxy: :"::1" "DIRECT"; :ftp::Proxy: :"::1" "DIRECT"; :http:: Proxy:: "localhost" "DIRECT"; :https: :Proxy: :"localhost" "DIRECT"; :ftp::Proxy: :"localhost" "DIRECT";
Acquire:
Acquire:
Acquire:
Acquire:
Acquire:
Acquire:
Acquire:
Acquire:
Acquire:
Acquire:
Acquire:
Doing `apt update` allows the installation to go forward.