Running `sudo dpkg --configure -a` produces

```
Errors were encountered while processing:
 python-pil
 python-imaging-tk
 python-imaging
 python-pil.imagetk
 python-setuptools

```

and running `sudo apt-get -u dist-upgrade` produces

```
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 python-imaging-tk : Depends: python-pil.imagetk (>= 2.3.0-1ubuntu3.3) but 2.3.0-1ubuntu3 is installed
E: Unmet dependencies. Try using -f.

```

How do I correct these unmet dependencies? I believe I may have botched an attempt at installing Python 3.

Thanks!

EDIT 1: Hmm, after following minigeek's steps I appear to have made the situation worse. Now running `sudo dpkg --configure -a` produces

```
Errors were encountered while processing:
 hplip-data
 python-pil
 python-pil.imagetk
 python-imaging
 python-pexpect
 python-reportlab
 python-setuptools
 ubuntu-sso-client-qt

```