Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to connect to the internet via a Proxy server, but when I do add the lines Acquire::protocol::proxy "protocol://user:pass@hostname:port/"; etc.

It doesn't make any difference. Since I use the Ubuntu 13.10 Server edition, I only have access to a terminal. Can anyone help me??

share|improve this question
Where do you add those lines? – Braiam Oct 31 '13 at 14:51
from root dir: /etc/apt/apt.conf – Black Magic Oct 31 '13 at 14:54

First of all I am not sure if you are putting , in the line in apt.conf, It should be

Acquire::protocol::proxy "protocol://user:pass@hostname:port/";

You could try adding these into your ~/.bashrc

export protocol_proxy='protocol://user:pass@hostname:port/'

for different protocols. and then source ~/.bashrc

share|improve this answer
That sadly didn't work, is it worth mentioning I am running the server on a VMware server – Black Magic Nov 1 '13 at 8:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.