The solution of Veron Rado (junket), switching to a virtual console and then running sudo dpkg --configure -a worked for me too.
The solution of Veron Rado (junket), switching to a virtual console and then running sudo dpkg --configure -a worked for me too.