Your python3 install is corruptedHow to fix “python installation is corrupted”?18.04--GnomeTerminal won't startPython - pip pip2 pip3 pip3.5 packages are installed but cannot be imported in any Python sessioncant install python3 on ubuntuCan't upgrade from 15.10 to 16.04Can't install python3-pipTheano package is not importable in Python 3.6After removing python3.5 from dual boot Ubuntu 16.04.03 (Along with W10), not able to access ubuntu nowError While Installing IBM Watson TTSpython and pip not in syncUbuntu 18.04 no installation or update after upgrade from 16.04

Is it "common practice in Fourier transform spectroscopy to multiply the measured interferogram by an apodizing function"? If so, why?

What reasons are there for a Capitalist to oppose a 100% inheritance tax?

meaning of 腰を落としている

How seriously should I take size and weight limits of hand luggage?

How badly should I try to prevent a user from XSSing themselves?

How do I exit BASH while loop using modulus operator?

Does Dispel Magic work on Tiny Hut?

What Exploit Are These User Agents Trying to Use?

"the same as" in a sentence

How to remove border from elements in the last row?

How to install cross-compiler on Ubuntu 18.04?

How can I deal with my CEO asking me to hire someone with a higher salary than me, a co-founder?

Placement of More Information/Help Icon button for Radio Buttons

Do Iron Man suits sport waste management systems?

Does the Cone of Cold spell freeze water?

GFCI outlets - can they be repaired? Are they really needed at the end of a circuit?

Bullying boss launched a smear campaign and made me unemployable

Mathematica command that allows it to read my intentions

What is the opposite of "eschatology"?

How dangerous is XSS

What historical events would have to change in order to make 19th century "steampunk" technology possible?

Why is it a bad idea to hire a hitman to eliminate most corrupt politicians?

What do you call someone who asks many questions?

Is it possible to map the firing of neurons in the human brain so as to stimulate artificial memories in someone else?



Your python3 install is corrupted


How to fix “python installation is corrupted”?18.04--GnomeTerminal won't startPython - pip pip2 pip3 pip3.5 packages are installed but cannot be imported in any Python sessioncant install python3 on ubuntuCan't upgrade from 15.10 to 16.04Can't install python3-pipTheano package is not importable in Python 3.6After removing python3.5 from dual boot Ubuntu 16.04.03 (Along with W10), not able to access ubuntu nowError While Installing IBM Watson TTSpython and pip not in syncUbuntu 18.04 no installation or update after upgrade from 16.04













3















I want to upgrade from Ubuntu 16.04.5 LTS to 18.04, so ran sudo do-release-upgrade.
After downloading and extracting bionic.tar.gz I get:



Can not upgrade 

Your python3 install is corrupted. Please fix the '/usr/bin/python3'
symlink.


I saw How to fix "python installation is corrupted"? and so I did sudo ln -sf /usr/bin/python3.6 /usr/bin/python3 thinking that it would be a similar problem. But that didn't work (still same error message).



I have a few python versions:



ls /usr/lib | grep python
python2.7
python3
python3.5
python3.6

update-alternatives --display python3
python3 - auto mode
link best version is /usr/bin/python3.6
link currently points to /usr/bin/python3.6
link python3 is /usr/bin/python3
/usr/bin/python3.5 - priority 1
/usr/bin/python3.6 - priority 2


How do I fix python3?










share|improve this question

















  • 1





    And what about reinstallation (as mentioned in accepted answer)?

    – Kulfy
    Dec 23 '18 at 18:21
















3















I want to upgrade from Ubuntu 16.04.5 LTS to 18.04, so ran sudo do-release-upgrade.
After downloading and extracting bionic.tar.gz I get:



Can not upgrade 

Your python3 install is corrupted. Please fix the '/usr/bin/python3'
symlink.


I saw How to fix "python installation is corrupted"? and so I did sudo ln -sf /usr/bin/python3.6 /usr/bin/python3 thinking that it would be a similar problem. But that didn't work (still same error message).



I have a few python versions:



ls /usr/lib | grep python
python2.7
python3
python3.5
python3.6

update-alternatives --display python3
python3 - auto mode
link best version is /usr/bin/python3.6
link currently points to /usr/bin/python3.6
link python3 is /usr/bin/python3
/usr/bin/python3.5 - priority 1
/usr/bin/python3.6 - priority 2


How do I fix python3?










share|improve this question

















  • 1





    And what about reinstallation (as mentioned in accepted answer)?

    – Kulfy
    Dec 23 '18 at 18:21














3












3








3








I want to upgrade from Ubuntu 16.04.5 LTS to 18.04, so ran sudo do-release-upgrade.
After downloading and extracting bionic.tar.gz I get:



Can not upgrade 

Your python3 install is corrupted. Please fix the '/usr/bin/python3'
symlink.


I saw How to fix "python installation is corrupted"? and so I did sudo ln -sf /usr/bin/python3.6 /usr/bin/python3 thinking that it would be a similar problem. But that didn't work (still same error message).



I have a few python versions:



ls /usr/lib | grep python
python2.7
python3
python3.5
python3.6

update-alternatives --display python3
python3 - auto mode
link best version is /usr/bin/python3.6
link currently points to /usr/bin/python3.6
link python3 is /usr/bin/python3
/usr/bin/python3.5 - priority 1
/usr/bin/python3.6 - priority 2


How do I fix python3?










share|improve this question














I want to upgrade from Ubuntu 16.04.5 LTS to 18.04, so ran sudo do-release-upgrade.
After downloading and extracting bionic.tar.gz I get:



Can not upgrade 

Your python3 install is corrupted. Please fix the '/usr/bin/python3'
symlink.


I saw How to fix "python installation is corrupted"? and so I did sudo ln -sf /usr/bin/python3.6 /usr/bin/python3 thinking that it would be a similar problem. But that didn't work (still same error message).



I have a few python versions:



ls /usr/lib | grep python
python2.7
python3
python3.5
python3.6

update-alternatives --display python3
python3 - auto mode
link best version is /usr/bin/python3.6
link currently points to /usr/bin/python3.6
link python3 is /usr/bin/python3
/usr/bin/python3.5 - priority 1
/usr/bin/python3.6 - priority 2


How do I fix python3?







python3 do-release-upgrade






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 23 '18 at 17:54









mRcSchweringmRcSchwering

1235




1235







  • 1





    And what about reinstallation (as mentioned in accepted answer)?

    – Kulfy
    Dec 23 '18 at 18:21













  • 1





    And what about reinstallation (as mentioned in accepted answer)?

    – Kulfy
    Dec 23 '18 at 18:21








1




1





And what about reinstallation (as mentioned in accepted answer)?

– Kulfy
Dec 23 '18 at 18:21






And what about reinstallation (as mentioned in accepted answer)?

– Kulfy
Dec 23 '18 at 18:21











3 Answers
3






active

oldest

votes


















2














You need to use the default Python 3 version for 16.04. That's 3.5, not 3.6. So run:



sudo ln -sf /usr/bin/python3.5 /usr/bin/python3


If that doesn't work, try reinstalling the python3 package.



sudo apt-get install --reinstall python3


By the way, update-alternatives --display python3 should give you update-alternatives: error: no alternatives for python3. Different versions of Python are not alternatives in Ubuntu.






share|improve this answer






























    2














    I just ran into this problem on Pop!_OS 18.04, trying to upgrade to 18.10, and it turns out that the problem lay in the symlink for /usr/bin/python and not for /usr/bin/python3. I had had /usr/bin/python3.6 configured as an alternative for python (not python3), and when I changed this, then I could run do-release-upgrade as expected.



    I wish the error message pointed to python and not python3.




    Before, with the problem:



    $ update-alternatives --display python
    python - manual mode
    link best version is /usr/bin/python3.6
    link currently points to /usr/bin/python2.7
    link python is /usr/bin/python
    /usr/bin/python2.7 - priority 1
    /usr/bin/python3.6 - priority 2



    I fixed it this way:



    $ sudo update-alternatives --remove-all python
    $ sudo ln -sf /usr/bin/python2.7 /usr/bin/python





    share|improve this answer






























      0














      Basically the solution to this problem consists of making /usr/bin/python point to the right version of Python your Ubuntu release expects (for instance, in 16.04 was Python2.7 and in 18.04 was Python3.6).



      If you have several versions of Python installed in your system, you might be using update-alternatives to manage them. It doesn't matter much your default alternative for Python is the right version your system expects (3.6 in Ubuntu 18.04), it won't work.



      The reason why this doesn't work is that, when using update-alternatives, /usr/bin/python3 points to /etc/alternatives/python3, and it seems that's not exactly the same as making /usr/bin/python3 point to /usr/bin/python3.6.



      That's why the solution to this problem often consists of stop managing your Python3 versions with update-alternatives and make /usr/bin/python3 point to the right version of Python3 your system expects.





      share








      New contributor




      Diego Pino is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















        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
        );



        );













        draft saved

        draft discarded


















        StackExchange.ready(
        function ()
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1104052%2fyour-python3-install-is-corrupted%23new-answer', 'question_page');

        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        2














        You need to use the default Python 3 version for 16.04. That's 3.5, not 3.6. So run:



        sudo ln -sf /usr/bin/python3.5 /usr/bin/python3


        If that doesn't work, try reinstalling the python3 package.



        sudo apt-get install --reinstall python3


        By the way, update-alternatives --display python3 should give you update-alternatives: error: no alternatives for python3. Different versions of Python are not alternatives in Ubuntu.






        share|improve this answer



























          2














          You need to use the default Python 3 version for 16.04. That's 3.5, not 3.6. So run:



          sudo ln -sf /usr/bin/python3.5 /usr/bin/python3


          If that doesn't work, try reinstalling the python3 package.



          sudo apt-get install --reinstall python3


          By the way, update-alternatives --display python3 should give you update-alternatives: error: no alternatives for python3. Different versions of Python are not alternatives in Ubuntu.






          share|improve this answer

























            2












            2








            2







            You need to use the default Python 3 version for 16.04. That's 3.5, not 3.6. So run:



            sudo ln -sf /usr/bin/python3.5 /usr/bin/python3


            If that doesn't work, try reinstalling the python3 package.



            sudo apt-get install --reinstall python3


            By the way, update-alternatives --display python3 should give you update-alternatives: error: no alternatives for python3. Different versions of Python are not alternatives in Ubuntu.






            share|improve this answer













            You need to use the default Python 3 version for 16.04. That's 3.5, not 3.6. So run:



            sudo ln -sf /usr/bin/python3.5 /usr/bin/python3


            If that doesn't work, try reinstalling the python3 package.



            sudo apt-get install --reinstall python3


            By the way, update-alternatives --display python3 should give you update-alternatives: error: no alternatives for python3. Different versions of Python are not alternatives in Ubuntu.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Dec 23 '18 at 18:50









            wjandreawjandrea

            9,48842664




            9,48842664























                2














                I just ran into this problem on Pop!_OS 18.04, trying to upgrade to 18.10, and it turns out that the problem lay in the symlink for /usr/bin/python and not for /usr/bin/python3. I had had /usr/bin/python3.6 configured as an alternative for python (not python3), and when I changed this, then I could run do-release-upgrade as expected.



                I wish the error message pointed to python and not python3.




                Before, with the problem:



                $ update-alternatives --display python
                python - manual mode
                link best version is /usr/bin/python3.6
                link currently points to /usr/bin/python2.7
                link python is /usr/bin/python
                /usr/bin/python2.7 - priority 1
                /usr/bin/python3.6 - priority 2



                I fixed it this way:



                $ sudo update-alternatives --remove-all python
                $ sudo ln -sf /usr/bin/python2.7 /usr/bin/python





                share|improve this answer



























                  2














                  I just ran into this problem on Pop!_OS 18.04, trying to upgrade to 18.10, and it turns out that the problem lay in the symlink for /usr/bin/python and not for /usr/bin/python3. I had had /usr/bin/python3.6 configured as an alternative for python (not python3), and when I changed this, then I could run do-release-upgrade as expected.



                  I wish the error message pointed to python and not python3.




                  Before, with the problem:



                  $ update-alternatives --display python
                  python - manual mode
                  link best version is /usr/bin/python3.6
                  link currently points to /usr/bin/python2.7
                  link python is /usr/bin/python
                  /usr/bin/python2.7 - priority 1
                  /usr/bin/python3.6 - priority 2



                  I fixed it this way:



                  $ sudo update-alternatives --remove-all python
                  $ sudo ln -sf /usr/bin/python2.7 /usr/bin/python





                  share|improve this answer

























                    2












                    2








                    2







                    I just ran into this problem on Pop!_OS 18.04, trying to upgrade to 18.10, and it turns out that the problem lay in the symlink for /usr/bin/python and not for /usr/bin/python3. I had had /usr/bin/python3.6 configured as an alternative for python (not python3), and when I changed this, then I could run do-release-upgrade as expected.



                    I wish the error message pointed to python and not python3.




                    Before, with the problem:



                    $ update-alternatives --display python
                    python - manual mode
                    link best version is /usr/bin/python3.6
                    link currently points to /usr/bin/python2.7
                    link python is /usr/bin/python
                    /usr/bin/python2.7 - priority 1
                    /usr/bin/python3.6 - priority 2



                    I fixed it this way:



                    $ sudo update-alternatives --remove-all python
                    $ sudo ln -sf /usr/bin/python2.7 /usr/bin/python





                    share|improve this answer













                    I just ran into this problem on Pop!_OS 18.04, trying to upgrade to 18.10, and it turns out that the problem lay in the symlink for /usr/bin/python and not for /usr/bin/python3. I had had /usr/bin/python3.6 configured as an alternative for python (not python3), and when I changed this, then I could run do-release-upgrade as expected.



                    I wish the error message pointed to python and not python3.




                    Before, with the problem:



                    $ update-alternatives --display python
                    python - manual mode
                    link best version is /usr/bin/python3.6
                    link currently points to /usr/bin/python2.7
                    link python is /usr/bin/python
                    /usr/bin/python2.7 - priority 1
                    /usr/bin/python3.6 - priority 2



                    I fixed it this way:



                    $ sudo update-alternatives --remove-all python
                    $ sudo ln -sf /usr/bin/python2.7 /usr/bin/python






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Jan 8 at 15:46









                    J. B. RainsbergerJ. B. Rainsberger

                    1213




                    1213





















                        0














                        Basically the solution to this problem consists of making /usr/bin/python point to the right version of Python your Ubuntu release expects (for instance, in 16.04 was Python2.7 and in 18.04 was Python3.6).



                        If you have several versions of Python installed in your system, you might be using update-alternatives to manage them. It doesn't matter much your default alternative for Python is the right version your system expects (3.6 in Ubuntu 18.04), it won't work.



                        The reason why this doesn't work is that, when using update-alternatives, /usr/bin/python3 points to /etc/alternatives/python3, and it seems that's not exactly the same as making /usr/bin/python3 point to /usr/bin/python3.6.



                        That's why the solution to this problem often consists of stop managing your Python3 versions with update-alternatives and make /usr/bin/python3 point to the right version of Python3 your system expects.





                        share








                        New contributor




                        Diego Pino is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                        Check out our Code of Conduct.
























                          0














                          Basically the solution to this problem consists of making /usr/bin/python point to the right version of Python your Ubuntu release expects (for instance, in 16.04 was Python2.7 and in 18.04 was Python3.6).



                          If you have several versions of Python installed in your system, you might be using update-alternatives to manage them. It doesn't matter much your default alternative for Python is the right version your system expects (3.6 in Ubuntu 18.04), it won't work.



                          The reason why this doesn't work is that, when using update-alternatives, /usr/bin/python3 points to /etc/alternatives/python3, and it seems that's not exactly the same as making /usr/bin/python3 point to /usr/bin/python3.6.



                          That's why the solution to this problem often consists of stop managing your Python3 versions with update-alternatives and make /usr/bin/python3 point to the right version of Python3 your system expects.





                          share








                          New contributor




                          Diego Pino is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.






















                            0












                            0








                            0







                            Basically the solution to this problem consists of making /usr/bin/python point to the right version of Python your Ubuntu release expects (for instance, in 16.04 was Python2.7 and in 18.04 was Python3.6).



                            If you have several versions of Python installed in your system, you might be using update-alternatives to manage them. It doesn't matter much your default alternative for Python is the right version your system expects (3.6 in Ubuntu 18.04), it won't work.



                            The reason why this doesn't work is that, when using update-alternatives, /usr/bin/python3 points to /etc/alternatives/python3, and it seems that's not exactly the same as making /usr/bin/python3 point to /usr/bin/python3.6.



                            That's why the solution to this problem often consists of stop managing your Python3 versions with update-alternatives and make /usr/bin/python3 point to the right version of Python3 your system expects.





                            share








                            New contributor




                            Diego Pino is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.










                            Basically the solution to this problem consists of making /usr/bin/python point to the right version of Python your Ubuntu release expects (for instance, in 16.04 was Python2.7 and in 18.04 was Python3.6).



                            If you have several versions of Python installed in your system, you might be using update-alternatives to manage them. It doesn't matter much your default alternative for Python is the right version your system expects (3.6 in Ubuntu 18.04), it won't work.



                            The reason why this doesn't work is that, when using update-alternatives, /usr/bin/python3 points to /etc/alternatives/python3, and it seems that's not exactly the same as making /usr/bin/python3 point to /usr/bin/python3.6.



                            That's why the solution to this problem often consists of stop managing your Python3 versions with update-alternatives and make /usr/bin/python3 point to the right version of Python3 your system expects.






                            share








                            New contributor




                            Diego Pino is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.








                            share


                            share






                            New contributor




                            Diego Pino is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.









                            answered 8 mins ago









                            Diego PinoDiego Pino

                            101




                            101




                            New contributor




                            Diego Pino is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.





                            New contributor





                            Diego Pino is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.






                            Diego Pino is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.



























                                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%2f1104052%2fyour-python3-install-is-corrupted%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

                                Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

                                Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

                                Antonio De Lisio Carrera Referencias Menú de navegación«Caracas: evolución relacional multipleja»«Cuando los gobiernos subestiman a las localidades: L a Iniciativa para la Integración de la Infraestructura Regional Suramericana (IIRSA) en la frontera Colombo-Venezolana»«Maestría en Planificación Integral del Ambiente»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«Conózcanos»«Caracas: evolución relacional multipleja»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»