I just got this problem and I've found a solution. At least it has worked for me. In recovery mode try "dpkg --configure -a" :)