Because I'm working on a QM/MM problem at the moment I wanted to use gromacs (4.6) to generate a solvated molecule, but I kept getting errors about missing libcudart4.so. So I figured I'd install it using apt-get install libcudart4
Everything went fine until I got the following prompt:
You can't install or remove any other programs until this has been resolved, as everything ends with
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
sudo dpkg --configure -atakes you back to the screenshot above.
At this point you get
sudo dpkg --configure -a
and now your system is working again so that packages can be installed and removed.