Ubuntu Notes: Solve E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem when trying to update ubuntu

This the problem you face when you try to upgrade or update ubuntu using command line, you get this message.

Again when you run 'sudo dpkg --configure -a'  command you get error message like 

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

 newline in field name '#padding'

---
To solve this run command as follows
cd /var/lib/dpkg/updates && sudo rm -rf <refNo>;
sudo dpkg --configure -a;

Like in above question case run command as follows
cd /var/lib/dpkg/updates && sudo rm -rf 0019;
sudo dpkg --configure -a;

==
Thats all & problem will be solved

No comments:

Post a Comment

If you have any doubts, please let me know.

Regarding site Free Browser Tool (https://free-browser-tools.mohitkrgupta.dev) (discussion with google search AI)

Various discussions with Google Search AI regarding site  Free Browser Tool are as below: site free-browser-tools.mohitkrgupta.dev what doe...