“Could not import runpy module” when running apt-get on Xubuntu 12.10
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
12.10 apt python
add a comment |
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
12.10 apt python
add a comment |
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
12.10 apt python
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
12.10 apt python
12.10 apt python
edited Nov 15 '14 at 10:56
OrangeTux
3,58782452
3,58782452
asked Mar 21 '13 at 6:30
mattimatti
1612
1612
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f270720%2fcould-not-import-runpy-module-when-running-apt-get-on-xubuntu-12-10%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
add a comment |
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.
add a comment |
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.
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.
answered Apr 21 '13 at 12:52
zxlynzxlyn
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f270720%2fcould-not-import-runpy-module-when-running-apt-get-on-xubuntu-12-10%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown