error: parsing file '/var/lib/dpkg/updates/0001' near line 0: newline in field name `#padding'
Solution 1:
Make a backup and remove the /var/lib/dpkg/updates/0001
via
sudo mv /var/lib/dpkg/updates/0001 /var/lib/dpkg/updates/0001.X
After that
sudo dpkg --configure -a
sudo apt-get install -f
Solution 2:
here's how i fixed this problem .. first i removed the whole updates directory ..
rm -r /var/lib/dpkg/updates
after that create a new updates directory
mkdir /var/lib/dpkg/updates
and finally
sudo dpkg --configure -a