Page 1 of 1

Apt-Get Error

Posted: Wed Nov 28, 2012 2:21 am
by Minor_Miner
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!

Re: Apt-Get Error

Posted: Wed Nov 28, 2012 10:08 pm
by thepiman
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.

Re: Apt-Get Error

Posted: Wed Nov 28, 2012 11:13 pm
by azeam
Can you post the output of

Code: Select all

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

Re: Apt-Get Error

Posted: Thu Nov 29, 2012 12:41 am
by Minor_Miner
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!