Cannot Update, "An error occured"

Asked by Lloyd Kuhnle

Please help. When I try to update, I get the following:
An error occured
The following details are provided

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

Then I run: sudo 'dpkg --configure -a' and I get the following:
Parse error, in file '/var/lib/dpkg/updates/0181'
Near line 1:
new line in field name '#padding'

I am lost for what to do, and I can't install any updates.

Thank you
Lloyd

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Solved by:
Lloyd Kuhnle
Solved:
Last query:
Last reply:
Revision history for this message
Lloyd Kuhnle (lloydkuhnle) said :
#1

ERROR: New line in field name `#padding'

When i try to add/remove programs i get the following error:

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

So i've tried all the following comands:

sudo apt-get -f install
sudo apt-get clean all
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get clean all
sudo apt-get autoremove

but each time i get asked to run sudo dpkg --configure -a and when i do i get
dpkg: parse error, in file `/var/lib/dpkg/updates/0214' near line 1:
newline in field name `#padding'

How do i solve this error?

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

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

sudo dpkg --clear -avail
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get clean
sudo apt-get autoremove

Hope this helps

sudo dpkg --clear -avail

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

Sorry i made typo in previous answer, i repeat commands below

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

sudo dpkg --clear-avail
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get clean
sudo apt-get autoremove

Hope this helps

Revision history for this message
Lloyd Kuhnle (lloydkuhnle) said :
#4

Thank you marcobra,

I couldn't even do what you suggested, however, with additional searches, I was able to do this:

sudo rm /var/lib/dpkg/updates/0181

Removing the file solved my problem. I still have a few network issues, however my laptop is now functional with UBUNTU.

Revision history for this message
jayashankar (jayashankar-manohar) said :
#5

An error occured
The following details are provided

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

Then I run: sudo 'dpkg --configure -a' and I get the following:
 parse error, in file `/var/lib/dpkg/status' near line 610 package `exim4-config':

if i try to install any updates then dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
E: -Catch->open() Failed, Please report
i don't have any idea about this....please help me

with regards,
jayashankar.