0

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?

Braiam
  • 67,791
  • 32
  • 179
  • 269

4 Answers4

2

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

Try this:

Acquire::http::proxy http://192.168.96.0:808;
A.B.
  • 90,397
xor90h
  • 21
1

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;

RolandiXor
  • 51,541
amit
  • 11
1

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

0

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;"