Please add into the question the lines shown when you do a tail /etc/apt/apt.conf (there seems to be something invalid in this file). Btw this file does not exist on my machine :P I do have a directory /etc/apt/apt.conf.d. What Ubuntu release are you using? – RinzwindFeb 13 at 21:52
In this question a user have the same problem. He solve editing the file, but didn't tell exactly what was wrong. @RickPorter Please, upload the content of the file in paste.ubuntu.com and link it in your question. – LucioFeb 13 at 22:25
1
The error is saying the junk is at line 229 of /etc/apt/apt.conf
Could you paste your whole /etc/apt/apt.conf file into pastebin or some such for us? – StephanFeb 13 at 23:09
tail /etc/apt/apt.conf(there seems to be something invalid in this file). Btw this file does not exist on my machine :P I do have a directory/etc/apt/apt.conf.d. What Ubuntu release are you using? – Rinzwind Feb 13 at 21:52