“Could not import runpy module” when running apt-get on Xubuntu 12.10Problem with installing a python moduleInstalling Apache Cordova, unable to locate packageI can't open software updater and unity tweak tool on Ubuntu14.0416.04.1 LTS glibcxx 3.4.21 not definedWhy can't I start onedrive-d?TypeError when running update-manager on ubuntu 17.10Dependency errors for python3 and many others when I run sudo apt-get upgrade18.04--GnomeTerminal won't start

How to evaluate math equation, one per line in a file?

How can medieval knights protects themselves against modern guns?

What's the -nym for describing a time of day or a period of time?

How can you weaponize a thermos?

What arguments have been made for not impeaching Trump?

How to tell that this is a draw

how to vertically shift a summation limit and align the result with another one (in another term)?

Applications in Dock not showing 'open application' indicators

Big equation writing in LaTeX

Is there a word/phrase that can describe playing a musical instrument in a casual way?

Why is SpaceX not also working on a smaller version of Starship?

Threatening to discontinue a service for a client

Back with another one-line wonder!

What is the meaning of the Latin names of grammatical cases (in general, not in Latin)?

Does the "reappearing" property of the "Shadowneedle" Unbreakable Arrow function?

Can Teflon thread tape be reused?

If I Ready an action, can I then use my reaction for something else?

Why is it ethical for Ambassador Sondland to have been given an ambassadorship for campaign contributions?

Why do HK chefs use a white cloth to clutch wok?

Why is it so important who the whistleblower in the Trump-Zelensky phone call is?

How do I negotiate salary when returning to a position I just left?

Feedback resistors and op-amp instability

Do Klingons have escape pods?

Simulate reproduction in a population of oozes



“Could not import runpy module” when running apt-get on Xubuntu 12.10


Problem with installing a python moduleInstalling Apache Cordova, unable to locate packageI can't open software updater and unity tweak tool on Ubuntu14.0416.04.1 LTS glibcxx 3.4.21 not definedWhy can't I start onedrive-d?TypeError when running update-manager on ubuntu 17.10Dependency errors for python3 and many others when I run sudo apt-get upgrade18.04--GnomeTerminal won't start






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









3


















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










share|improve this question

































    3


















    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










    share|improve this question





























      3













      3









      3








      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










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 15 '14 at 10:56









      OrangeTux

      4,3838 gold badges26 silver badges53 bronze badges




      4,3838 gold badges26 silver badges53 bronze badges










      asked Mar 21 '13 at 6:30









      mattimatti

      311 silver badge2 bronze badges




      311 silver badge2 bronze badges























          1 Answer
          1






          active

          oldest

          votes


















          0



















          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








            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/4.0/"u003ecc by-sa 4.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
            );



            );














            draft saved

            draft discarded
















            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









            0



















            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






























              0



















              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




























                0















                0











                0









                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














                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













                share|improve this answer




                share|improve this answer










                answered Apr 21 '13 at 12:52









                zxlynzxlyn

                1




                1































                    draft saved

                    draft discarded















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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









                    Popular posts from this blog

                    Tamil (spriik) Luke uk diar | Nawigatjuun

                    Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

                    Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?