Minor_Miner
Posts: 7
Joined: Sat Jul 07, 2012 7:41 pm

Apt-Get Error

Wed Nov 28, 2012 2:21 am

Whenever I try anything related to sudo apt get, I get a weird error. Here's an example:

pi@raspberrypi ~ $ sudo apt-get update
E: Syntax error /etc/apt/apt.conf.d/01autoremove:2: Extra junk after value

This also happens with any other apt-get command that I try.

If anybody knows how to fix this, your help would be greatly appreciated.

Thanks!

thepiman
Posts: 42
Joined: Mon Nov 19, 2012 5:06 pm

Re: Apt-Get Error

Wed Nov 28, 2012 10:08 pm

I would recommend reformatting your SD card. The first time I created an SD card with Wheezy it gave me loads of issues. I re-imaged the card (formatted and used the available tool to write the .img to the SD Card). After that it worked perfectly.
ThePiMan - "Oh Yeah"

User avatar
azeam
Posts: 194
Joined: Fri Oct 26, 2012 11:13 pm
Contact: Website

Re: Apt-Get Error

Wed Nov 28, 2012 11:13 pm

Can you post the output of

Code: Select all

cat /etc/apt/apt.conf.d/01autoremove

Minor_Miner
Posts: 7
Joined: Sat Jul 07, 2012 7:41 pm

Re: Apt-Get Error

Thu Nov 29, 2012 12:41 am

It's too big to post here, but most of it was in something that looked like Arabic for some reason. :?

I'll just redo the SD card.

Thanks for the help!

Return to “Troubleshooting”