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

This question already has an answer here:

I got the following error after configuring proxy in /etc/apt/apt.conf as Acquire::http::proxy

e: syntax error /etc/apt/apt.conf:2: extra junk at end of file.

and I don't have the proxy authentication. How do I fix this?

share|improve this question

marked as duplicate by Braiam, minerz029, karel, falconer, BuZZ-dEE Jan 6 '14 at 12:40

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Please post the contents of /etc/apt/apt.conf – Jorge Castro Feb 20 '12 at 23:21

It looks like you forget ; at the end of line.

Try this:

share|improve this answer

I have experienced that after removing the "http://" after the proxy in the above string has helped.

So the revised line would be:

share|improve this answer

you much change to Acquire::http::proxy ""; The ";" must place end of the line

share|improve this answer

I had the same error and had to put the address and port part in quotation marks. Likes so:

Acquire::http::proxy ";"
share|improve this answer

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