title: Ubuntu 16.04 apt-get not working through proxy
body: <p>In Ubuntu 14.04, in order to use some commands in terminal (like apt-get) trough the company proxy, I need to do the following changes, beyond System Settings > Network > Network proxy > "Apply system wide" (shame on you, Ubuntu)</p>
  
  <pre><code>/etc/environment (actually this is the only file modified by System Settings)
  http_proxy="http://[webproxy]:[port]/"
  https_proxy="https://[webproxy]:[port]/"
  ftp_proxy="ftp://[webproxy]:[port]/"
  socks_proxy="socks://[webproxy]:[port]/"
  
  /etc/profile
  export http_proxy=http://[username]:[password]@[webproxy]:[port]
  export https_proxy=http://[username]:[password]@[webproxy]:[port]
  export ftp_proxy=http://[username]:[password]@[webproxy]:[port]
  
  sudo visudo
  Defaults        env_reset
  Defaults        env_keep = "http_proxy https_proxy ftp_proxy DISPLAY XAUTHORITY"
  
  /etc/apt/apt.conf
  Acquire::http::proxy "http://[username]:[password]@[webproxy]:[port]/";
  Acquire::https::proxy "https://[username]:[password]@[webproxy]:[port]/";
  Acquire::ftp::proxy "ftp://[username]:[password]@[webproxy]:[port]/";
  Acquire::socks::proxy "socks://[username]:[password]@[webproxy]:[port]/";
  
  or the same changes in
  /etc/apt/apt.conf.d/95proxies
  </code></pre>
  
  <p>I think that at least the following command (from <a href="https://askubuntu.com/a/89453/416671">here</a>)</p>
  
  <pre><code>sudo http_proxy='http://[username]:[password]@[webproxy]:[port]' apt-get update
  </code></pre>
  
  <p>should work, right?</p>
  
  <p>That's what I remember right now. Not even sure if all of them are really necessary. I did all these changes in Ubuntu 16.04, though, but still can't make <code>sudo apt-get update</code> work through the same proxy (another computer in the same room). Got</p>
  
  <pre><code>Temporary failure resolving '[webproxy]'
  </code></pre>
  
  <p>What am I missing?</p>