PDA

View Full Version : [ubuntu] dpkg: parse error



jmetric
December 28th, 2008, 01:26 AM
I've finished installing Intrepid Ibex. About half of the updates downloaded and installed successfully, but the others failed. Now, when I retry to download them I get the message:

E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
E: _cache->open() failed, please report.

When I run 'dpkg --configure -a' I get the message:

dpkg: parse error, in file `/var/lib/dpkg/updates/0143' near line 1:
newline in field name `#padding'


Any suggestions as to what I should do?

Thanks for any help!

hansdown
December 28th, 2008, 01:36 AM
Hi jmetric.
You may find a good solution here.

https://answers.launchpad.net/ubuntu/+question/10265

jmetric
December 28th, 2008, 06:18 AM
Thanks, hansdown.

I tried all the suggestions that you directed me to, but none of them have solved the problem.

First I get this error message:

E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.

Then, when I run 'dpkg --configure -a' I get the original error message:

dpkg: parse error, in file `/var/lib/dpkg/updates/0143' near line 1:
newline in field name `#padding'

Kind of an infinite loop problem.

Anyone else have some idea as to what I can do?

howefield
December 28th, 2008, 06:21 AM
Have you run the command with sudo ?



sudo dpkg --configure -a

jmetric
December 28th, 2008, 07:42 AM
Yes, I used sudo, but got the same results.

Partyboi2
December 28th, 2008, 09:05 AM
Have you tried moving the file out of the way?

sudo mv var/lib/dpkg/updates/0143 var/lib/dpkg/updates/0143.old
then

sudo dpkg --configure -a