I am using ubuntu 14.04, my juju environment is MaaS, however seems like my MaaS server doesn't have direct internet connection, for example:
If I do apt-get update it shows connection.
But if I do juju deploy mysql, he asks me if I'm connected to the internet, this happens after bootstrap.
This is my ~/.bashrc file and the end:

In my /etc/environment file:

~/.juju/environments.yaml file:

Some other commands I did:
juju set-env http-proxy=http://172.16.1.160
juju set-env http-proxy=http://172.16.1.160:80
juju set-env http-proxy=http://172.16.1.160:8080
None seemed to work.

The error from juju debug-log --replay:

Some other stuff, I don't know if it's important:


This is from the MaaS server VM:

How do I solve this? Thanks in advance!