Home FAQ 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

By sk
Published: Last Updated on 10K views

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 this 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 and server editions. 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.

Related read:

Thanks for stopping by!

Help us to help you:

Have a Good day!!

You May Also Like


ramzi July 2, 2019 - 8:34 am

not work

Miler September 29, 2019 - 8:01 pm

Thank you! It worked.

seshagiri rao October 2, 2019 - 5:00 pm

Hi I have this issue with ubuntu updates I am using 18.4 ver. when I try to update I get the following error message

E: Unable to parse package file /var/lib/dpkg/status (1)
W: You may want to run apt-get update to correct these problems
E: The package cache file is corrupted.

what do I need to do to get this thing fixed?

Majid October 12, 2019 - 12:46 am

it’s worked well. You’re amazing.

SuperComputing November 11, 2019 - 9:54 pm

Thanks very much, worked perfectly.

Vishal November 21, 2019 - 4:54 pm

Thank you! It worked.

Alexandre de Moraes March 9, 2020 - 8:41 pm

Thank you very much, solved for me.

Farah April 20, 2020 - 9:01 pm

Thank you so much! it worked!

Mtango Stephen September 15, 2020 - 10:12 am

it’s worked well. You’re amazing.


Leave a Comment

* By using this form you agree with the storage and handling of your data by this website.

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

This website uses cookies to improve your experience. By using this site, we will assume that you're OK with it. Accept Read More