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

I keep getting the next message when I try to update or install a package:

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

I can't use synaptic or the download manager or the terminal. I'm using Ubuntu 10.04.

share|improve this question
2  
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? – Rinzwind Feb 13 at 21:52
also: askubuntu.com/questions/104047/… – Rinzwind Feb 13 at 21:53
#### UNetbootin (Source) - unetbootin.sourceforge.net ## Run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FC91AE7E deb-src ppa.launchpad.net/gezakovacs/ppa/ubuntu lucid main #### Wine (Source) - launchpad.net/~ubuntu-wine/+archive/ppa ## Run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F9CB8DB0 deb-src ppa.launchpad.net/ubuntu-wine/ppa/ubuntu lucid main I am using Lucid 10.04 Thanks – Rick Porter Feb 13 at 21:58
1  
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. – Lucio Feb 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? – Stephan Feb 13 at 23:09
show 2 more comments

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.