ubuntu@ubuntu:~$ sudo dpkg --configure -a dpkg: parse error, in file `/var/lib/dpkg/updates/0056' near line 1: newline in field name `#padding'

Asked by almostder

once i type my password. i get a command not found.

Question information

Revision history for this message
almostder (kartik91827) said :
#1

'dpkg --configure -a' problem when trying to run Synaptic

"When I try to install something or update I get this error message:

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

To correct this problem just open Terminal (Applications → Accessories → Terminal) and type:
sudo dpkg --configure -a

Give your user password when requested. You will not see anything, but type it and press enter.

Then retry to update and/or to install desired package."

THIS SOLUTION DOESNT WORK FOR ME !!

Revision history for this message
almostder (kartik91827) said :
#2

The listed solution leads me to
 ubuntu@ubuntu:~$ sudo dpkg --configure -a dpkg: parse error, in file `/var/lib/dpkg/updates/0056' near line 1: newline in field name `#padding'

Revision history for this message
Bhavani Shankar (bhavi) said :
#3

See if you can correct the file with a text editor:

gksudo gedit /var/lib/dpkg/updates/0056

post o/p here

Revision history for this message
Sam_ (and-sam) said :
#4

add:
https://help.ubuntu.com/community/LiveCdRecovery

To be honest, I'd move or rename the broken file and then try:
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get autoclean
sudo apt-get autoremove
sudo apt-get update
sudo apt-get upgrade

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#5

You have to correct the line 1 of the file /var/lib/dpkg/updates/0056 so please give us the contents of the first rows of this file as Bhavani already has asked you.

Thank you

Revision history for this message
almostder (kartik91827) said :
#6

Sorry I am new to linux and I dont know what you mean by "You have to correct the line 1 of the file /var/lib/dpkg/updates/0056 so please give us the contents of the first rows of this file "

So pleasse explain step by step.

Thank you

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#7

Open a Terminal from the menu Applications → Accessories → Terminal and type:
(if the system ask you a password give your user password, you will not see nothing when you type it, then press enter)

gedit /var/lib/dpkg/updates/0056

copy and paste here the first 3 rows of that file.

Thank you

Revision history for this message
almostder (kartik91827) said :
#8

Oh I think ....we cant install anything in live linux -- isn't it so?
btw my system is not booting up - after intel screen BOOT FAILURE press any key to continue...
Thats why I m using live cd to browse internet.

Thank you

Revision history for this message
almostder (kartik91827) said :
#9

Ok we can install things but it is installed untill next restart (i installed codecs for media player)

Can you help with this problem?

Provide an answer of your own, or ask almostder for more information if necessary.

To post a message you must log in.