TIPS: dpkg Error: dpkg: too many errors, stopping

apt-get and dpkg are great package management tools but there might be a time that you can face the following error:

dpkg: too many errors, stopping

also when you try `apt-get upgrade` or `apt-get dist-upgrade` you will be adviced that the previous application installation was not successful thus they should execute `dpkg –configure -a` and it returns the above error.

To resolve the issue run the following command

dpkg --configure -a --abort-after=99999