e dpkg was interrupted you must manually run sudo dpkg configure a code example
Example: E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem
run
$ sudo dpkg --configure -a
run
$ sudo dpkg --configure -a