Just installed Xubuntu 12.10, on first apt-get update and upgrade I got Could not import runpy module and all installs seem to stop there.
E.g. sudo apt-get --reinstall install python gives the following
[...]
running python rtupdate hooks for python3.2...
Could not import runpy module
Traceback (most recent call last): File "/usr/bin/py3compile", line 289, in <module> main() File "/usr/bin/py3compile", line 283, in main process.communicate() File "/usr/lib/python3.2/subprocess.py", line 809, in communicate self.stdin.close()
IOError: [Errno 32] Broken pipe
Error in sys.excepthook:
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 64, in apport_excepthook from apport.fileutils import likely_packaged, get_recent_crashes File "/usr/lib/python3/dist-packages/apport/__init__.py", line 4, in <module> from apport.report import Report File "/usr/lib/python3/dist-packages/apport/report.py", line 12, in <module> import subprocess, tempfile, os.path, re, pwd, grp, os
EOFError: EOF read where not expected<br/>
[...]
dpkg: error processing python3-aptdaemon.pkcompat (--configure): dependency problems - leaving unconfigured
Setting up python (2.7.3-0ubuntu7) ...
Errors were encountered while processing: python3 python3-dbus python3-distupgrade python3-update-manager python3-gi ufw python3-problem-report python3-apport python3-aptdaemon python3-aptdaemon.gtk3widgets python3-aptdaemon.pkcompat
E: Sub-process /usr/bin/dpkg returned an error code (1)
[...]All help in solving this is very much appreciated. matti
1 Answer
This is a bug that still not fixed yet. see Bug #1024016 . Maybe you can try this way in #31 floor or apt-get remove python3 and wait until the bug is fixed.