dpkg: error: parsing file '/var/lib/dpkg/updates/0045' near line 0:

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.


Try this:

sudo rm -rf /var/lib/dpkg/updates/*
dpkg --configure -a

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

Tags:

Dpkg