From John Cartwright, 11 Years ago, written in Plain Text.
Embed
  1. Use the sudo touch /etc/apt/apt.conf command to create the apt configuration file and then add this line to it and edit it with your proxy details. Then the apt-get command will work perfectly.
  2.  
  3. Acquire::http::proxy "http://Myusername:Mypassword@proxy.det.nsw.edu.au:8080/";
  4.