Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am getting this error in Ubuntu 12.04 , while doing the below operation.

frank@august:~$ sudo apt-get install ttf-mscorefonts-installer
[sudo] password for frank: 
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct    the problem. 
frank@august:~$ sudo dpkg --configure -a
dpkg: error: parsing file '/var/lib/dpkg/updates/0045' near line 0:
 newline in field name `#padding'
frank@august:~$ 

&

frank@august:~$ head /var/lib/dpkg/updates/0045
#padding
#padding
#padding
#padding

frank@august:~$ 

I can't see where is the error , help me to solve this. Thank you.

share|improve this question
add comment

4 Answers 4

up vote 12 down vote accepted

Ok I have solved the issue myself.

I ran these two commands in terminal (CTRL+ALT+T):

cd /var/lib/dpkg/updates && rm -rf 0045
sudo dpkg --configure -a

And my issue was solved.

share|improve this answer
3  
Since attempting to run sudo rm -rf /var/lib/dpkg/updates/0045 is safe and proper but could have disastrous results if one types in a stray space next to any of the /es (especially the first two!), it may be best to warn about this danger or to suggest something like cd /var/lib/dpkg/updates && rm -rf 0045. Good solution though! –  Eliah Kagan Mar 25 at 4:24
add comment

Looks like the file is corrupted. Suggest you do the following ( pls do take a backup and do it at ur risk ;) )

sudo rm /var/lib/dpkg/updates/000*
sudo apt-get clean
sudo apt-get update
sudo apt-get install ttf-mscorefonts-installer
share|improve this answer
    
Thanks for your answer , but it didnt helped me paste.ubuntu.com/1337768 –  AgentCool Nov 6 '12 at 17:13
add comment

It seems that status file corrupted,To fix this you have to delete/clear the file using the command.

sudo dpkg --clear-status

then rebuild the file using the command:

sudo apt-get update
share|improve this answer
    
Thanks for your answer but it didnt helped me . here is the link paste.ubuntu.com/1337765 –  AgentCool Nov 6 '12 at 17:12
add comment

Try this:

sudo rm -rf /var/lib/dpkg/updates/*
dpkg --configure -a
share|improve this answer
6  
Can you add more details to your answer please? Like what this does and why it does it? –  Seth Jan 4 '13 at 19:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.