Type in terminal


sudo dpkg --configure -a

If you still get errors, please post output here.