Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 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 from apport.report import Report File "/usr/lib/python3/dist-packages/apport/report.py", line 12, in import subprocess, tempfile, os.path, re, pwd, grp, os EOFError: EOF read where not expected
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:)

share|improve this question

1 Answer 1

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.