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.
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 likecd /var/lib/dpkg/updates && rm -rf 0045
. Good solution though! – Eliah Kagan Mar 25 '14 at 04:24sudo rm -rf [file]
, butsudo mv [file] /var/tmp
. – Kalle Richter Jan 29 '17 at 16:40sudo
access was denied so i had to go to root withsudo -s
Thanks, this really helped me though once I was in root. – John D Oct 24 '17 at 02:54