Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

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
1  
Please post the contents of /etc/apt/apt.conf – Jorge Castro Feb 20 '12 at 23:21

3 Answers

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

Try this:

Acquire::http::proxy http://192.168.96.0:808;

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:
Acquire::http::proxy 192.168.96.0:80;

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 "192.168.96.0:80;"
share|improve this answer

Your Answer

 
discard

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.