1

I am trying to update my Ubuntu desktop "Ubuntu 16.04.7 LTS" via APT behind corporate proxy but getting the following issue:

E: Syntax error /etc/apt/apt.conf:3: Extra junk at end of file

and here is my /etc/apt/apt.conf file:

$ cat /etc/apt/apt.conf
Acquire::http::proxy “http://usr:[email protected]:8080/”;
Acquire::https::proxy “http://usr:[email protected]:8080/”;

I have tried to search the same on Ask Ubuntu and found How to solve "Extra junk at end of file" when using apt? but this doesn't resolve the issue as I am already using the ; and still facing the same issue.

What should I do to fix the issue?

1 Answer 1

1

Ok this issue was with 'double quotations mark' I was using i.e instead of 'quotation mark' i.e ".

Changing from to " resolved my issue.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .