I was doing sudo apt-get dist-upgrade and I pressed ctrl + c by mistake, after that a ran into this problem, I "solved" it doing the zurdo solution (first anwser, sorted by votes), but now can't solve:
...
dpkg: error processing package php7.0 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
php7.0-common
php7.0-cli
libapache2-mod-php7.0
php7.0-cgi
php7.0
E: Sub-process /usr/bin/dpkg returned an error code (1)
I think that when I pressed ctrl-c it was updating php-cli, here is an image with more information.
I'm running Xubuntu 16.04
