I recently encountered this problem during a package installation. I was trying to install tkinter on my python 3.2. However I came up with a strange error that is way over my head. Several hours ago, I posted the issue in the Ubuntu user forum but no answer yet.
After freaking out and manually removing my python 3.2 installation. I tried to reinstall it. Below is a log of the output.
:~$ sudo apt-get install python3.2 Reading package lists... Done Building dependency tree Reading state information... Done python3.2 is already the newest version. The following packages were automatically installed and are no longer required: linux-headers-3.2.0-45 linux-headers-3.2.0-45-generic-pae Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue [Y/n]? y Setting up python3.2-minimal (3.2.3-0ubuntu3.3) ... # Empty sitecustomize.py to avoid a dangling symlink /var/lib/dpkg/info/python3.2-minimal.postinst: 53: /var/lib/dpkg/info/python3.2- minimal.postinst: python3.2: not found dpkg: error processing python3.2-minimal (--configure): subprocess installed post-installation script returned error exit status 127 dpkg: dependency problems prevent configuration of python3-minimal: python3-minimal depends on python3.2-minimal (>= 3.2.3-0ubuntu3.3); however: Package python3.2-minimal is not configured yet. dpkg: error processing python3-minimal (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python3.2: python3.2 depends on python3.2-minimal (= 3.2.3-0ubuntu3.3); however: Package python3.2-minimal is not configured yet. dpkg: error processing python3.2 (--configure): dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure. No apport report written because the error message indicates its a followup error from a previous failure. Errors were encountered while processing: python3.2-minimal python3-minimal python3.2 E: Sub-process /usr/bin/dpkg returned an error code (1)
I am confident there is someone who knows what I can do to help solve this issue? If it makes any difference I'm pretty new to Ubuntu. I'm running Ubuntu 12.04LTS.
Additional questions I have are: What is sitecustomize.py and what does it need to be emptied? What do dpkg errors mean?