If you are getting following error while doing sudo apt-get upgrade on Ubuntu or Mint
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
try the following commands to rectify
sudo dpkg --configure -a
sudo apt-get -f install
Your email address will not be published. Required fields are marked *