When ever I get a dpkg error the first thing I try is, as root;
Code:
dpkg --configure -a
dpkg will attempt to install the package again.
If that doesn't work, again as root;
no package name or anything that is the entire command.
If that doesn't work some more research on the problem commences.