title: Ubuntu Setting Environment variables for proxy
body: <p>Ubuntu version: 18.04</p>
  
  <p>For using web proxy, I set environments about proxy in bashrc and it works!</p>
  
  <p><code>export http_proxy=""
  export https_proxy=""
  export no_proxy="127.0.0.1, localhost</code></p>
  
  <p>However it doesn't work in sudo command.</p>
  
  <p><code>sudo -E apt-get update</code></p>
  
  <p><code>sudo bash
  apt-get update</code></p>
  
  <p>These two works fine but <code>sudo apt-get update</code> doesn't work.
  I think there is some problem related to environment setting under sudo command.</p>
  
  <p>So when i try to download gnome software with Ubuntu Software, it doesn't connect to web proxy, so it fails to download.</p>
  
  <p>How should I set environment for sudo command?</p>