Fix “dpkg: error: parsing file ‘/var/lib/dpkg/updates/0014′” Error In Ubuntu

Fix "dpkg: error: parsing file '/var/lib/dpkg/updates/0014'" Error In Ubuntu

The other day I was testing a tool named OnionShare which is used to share files of any size securely and anonymously in Unix-like operating systems. While trying to install it in my Ubuntu test box, I encountered with an error – “E: dpkg was interrupted, you must manually run ‘sudo dpkg –configure -a’ to correct the problem”. As the APT package manager suggested, I ran “sudo dpkg –configure -a”, but still no luck. I got a new error message which I haven’t seen in the past. The error was: “dpkg: error: parsing file ‘/var/lib/dpkg/updates/0014’ near line 0: newline in field name ‘#padding'”.

If you ever encountered with an error something like above, you’re in good hands. Follow the steps given below to fix it. I tested this in Ubuntu 18.04 LTS desktop. But, I suppose this solution may work in older Ubuntu versions and other Ubuntu derivatives like Linux Mint, Elementary OS etc.

Fix “dpkg: error: parsing file ‘/var/lib/dpkg/updates/0014′” Error In Ubuntu

To fix this error, just remove the problematic file i.e /var/lib/dpkg/updates/0014 in my case. Replace the file name with your own. And also, before deleting the file, make sure you have backup of the file.

$ sudo rm /var/lib/dpkg/updates/0014

Next, clean the package cache using command:

$ sudo apt-get clean

Then, update the software repositories using command:

$ sudo apt-get update

Finally, run the following command to fix the error:

$ sudo dpkg --configure -a

And, the problem is gone! I could be then able to install any software on my Ubuntu system.

And, that’s all. Hope this was useful. More good stuffs to come. Stay tuned!


Thanks for stopping by!

Help us to help you:

Have a Good day!!

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.