Techcrunch – Working with Ubuntu Server behind a proxy

Quite often you will be working on Ubuntu behind a proxy, this makes apt-get very difficult to use, the way round this is to configure a 10proxy file that directs the apt-get how to work through the proxy

First create a file called ’10proxy’ in /etc/apt/apt.conf.d/

sudo vim /etc/apt/apt.conf.d/10proxy

In this file add the following contents

Acquire {
Retries "0";
Proxy "http://[address]:[port]";

Replacing [address] and [port] with the address and port of your proxy server

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