How can I allow APT to get packages through a corporate proxy?

Problem

Debian/Ubuntu/Fink are unable to get packages because of a corporate firewall. How can we tell the APT subsystem to use our corporate proxy?

Solution

Add this to your /etc/apt/apt.conf:

APT::Default-Release "wheezy";
Acquire::http::Proxy "http://proxy.mycompany.com:3128";
Share: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Twitter
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • Reddit
  • StumbleUpon

Leave a Reply

Your email address will not be published. Required fields are marked *