Removed Python 3 on 18.04, how can I fix my system? [duplicate]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
-1
down vote

favorite













This question already has an answer here:



  • Removed Python 3 and now Ubuntu Software Center, terminal and other applications don't work

    4 answers



  • Removed python from my install, how do I get it back?

    1 answer



After I removed the Python 3 package from my Ubuntu 18.04, I also lost the terminal, software centre and some other useful applications.



What do I need to do now?







share|improve this question














marked as duplicate by David Foerster, mikewhatever, karel, Eric Carvalho, muru May 25 at 7:02


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 8




    Reinstall. Python3 is now the default "python" in use in most of the core packages in 18.04, and removing Python 3 will effectively torch your ability to do many things in the system. Your quickest solution is to reinstall. Your less-quick solution is to dig into the logs, find what was uninstalled, and issue apt-get install commands for all the removed packages to get them reinstalled. However, that doesn't guarantee things'll be fixed, since the interdependency on Python 3 is so major. Also don't remove Python 3 again.
    – Thomas Ward♦
    May 14 at 19:46











  • After restart I m getting only black screen
    – Lokesh Pandey
    May 14 at 19:55










  • May I ask why you did it?
    – Leo
    May 19 at 21:42














up vote
-1
down vote

favorite













This question already has an answer here:



  • Removed Python 3 and now Ubuntu Software Center, terminal and other applications don't work

    4 answers



  • Removed python from my install, how do I get it back?

    1 answer



After I removed the Python 3 package from my Ubuntu 18.04, I also lost the terminal, software centre and some other useful applications.



What do I need to do now?







share|improve this question














marked as duplicate by David Foerster, mikewhatever, karel, Eric Carvalho, muru May 25 at 7:02


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 8




    Reinstall. Python3 is now the default "python" in use in most of the core packages in 18.04, and removing Python 3 will effectively torch your ability to do many things in the system. Your quickest solution is to reinstall. Your less-quick solution is to dig into the logs, find what was uninstalled, and issue apt-get install commands for all the removed packages to get them reinstalled. However, that doesn't guarantee things'll be fixed, since the interdependency on Python 3 is so major. Also don't remove Python 3 again.
    – Thomas Ward♦
    May 14 at 19:46











  • After restart I m getting only black screen
    – Lokesh Pandey
    May 14 at 19:55










  • May I ask why you did it?
    – Leo
    May 19 at 21:42












up vote
-1
down vote

favorite









up vote
-1
down vote

favorite












This question already has an answer here:



  • Removed Python 3 and now Ubuntu Software Center, terminal and other applications don't work

    4 answers



  • Removed python from my install, how do I get it back?

    1 answer



After I removed the Python 3 package from my Ubuntu 18.04, I also lost the terminal, software centre and some other useful applications.



What do I need to do now?







share|improve this question















This question already has an answer here:



  • Removed Python 3 and now Ubuntu Software Center, terminal and other applications don't work

    4 answers



  • Removed python from my install, how do I get it back?

    1 answer



After I removed the Python 3 package from my Ubuntu 18.04, I also lost the terminal, software centre and some other useful applications.



What do I need to do now?





This question already has an answer here:



  • Removed Python 3 and now Ubuntu Software Center, terminal and other applications don't work

    4 answers



  • Removed python from my install, how do I get it back?

    1 answer









share|improve this question













share|improve this question




share|improve this question








edited May 19 at 21:35









Zanna

47.9k13118227




47.9k13118227










asked May 14 at 19:45









Lokesh Pandey

6




6




marked as duplicate by David Foerster, mikewhatever, karel, Eric Carvalho, muru May 25 at 7:02


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






marked as duplicate by David Foerster, mikewhatever, karel, Eric Carvalho, muru May 25 at 7:02


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









  • 8




    Reinstall. Python3 is now the default "python" in use in most of the core packages in 18.04, and removing Python 3 will effectively torch your ability to do many things in the system. Your quickest solution is to reinstall. Your less-quick solution is to dig into the logs, find what was uninstalled, and issue apt-get install commands for all the removed packages to get them reinstalled. However, that doesn't guarantee things'll be fixed, since the interdependency on Python 3 is so major. Also don't remove Python 3 again.
    – Thomas Ward♦
    May 14 at 19:46











  • After restart I m getting only black screen
    – Lokesh Pandey
    May 14 at 19:55










  • May I ask why you did it?
    – Leo
    May 19 at 21:42












  • 8




    Reinstall. Python3 is now the default "python" in use in most of the core packages in 18.04, and removing Python 3 will effectively torch your ability to do many things in the system. Your quickest solution is to reinstall. Your less-quick solution is to dig into the logs, find what was uninstalled, and issue apt-get install commands for all the removed packages to get them reinstalled. However, that doesn't guarantee things'll be fixed, since the interdependency on Python 3 is so major. Also don't remove Python 3 again.
    – Thomas Ward♦
    May 14 at 19:46











  • After restart I m getting only black screen
    – Lokesh Pandey
    May 14 at 19:55










  • May I ask why you did it?
    – Leo
    May 19 at 21:42







8




8




Reinstall. Python3 is now the default "python" in use in most of the core packages in 18.04, and removing Python 3 will effectively torch your ability to do many things in the system. Your quickest solution is to reinstall. Your less-quick solution is to dig into the logs, find what was uninstalled, and issue apt-get install commands for all the removed packages to get them reinstalled. However, that doesn't guarantee things'll be fixed, since the interdependency on Python 3 is so major. Also don't remove Python 3 again.
– Thomas Ward♦
May 14 at 19:46





Reinstall. Python3 is now the default "python" in use in most of the core packages in 18.04, and removing Python 3 will effectively torch your ability to do many things in the system. Your quickest solution is to reinstall. Your less-quick solution is to dig into the logs, find what was uninstalled, and issue apt-get install commands for all the removed packages to get them reinstalled. However, that doesn't guarantee things'll be fixed, since the interdependency on Python 3 is so major. Also don't remove Python 3 again.
– Thomas Ward♦
May 14 at 19:46













After restart I m getting only black screen
– Lokesh Pandey
May 14 at 19:55




After restart I m getting only black screen
– Lokesh Pandey
May 14 at 19:55












May I ask why you did it?
– Leo
May 19 at 21:42




May I ask why you did it?
– Leo
May 19 at 21:42










1 Answer
1






active

oldest

votes

















up vote
3
down vote













As with answers from I want to uninstall Python3 and just use 2.7 and Removed python from my install, how do I get it back?, the core problem is that you removed something which is vital to the system. Note however that contrary to these other questions and their answers, the problem is that since you removed Python 3, you are now left with an extremely broken system, and no guarantee that you can repair it.



Without knowing which flavor of Ubuntu you attempted to use, the answer in
Removed python from my install, how do I get it back? is not going to be useful. We would need to know which flavor you installed to properly provide you with the proper package(s) to attempt to reinstall. However, since Python is part of the core system now, the likelihood this type of 'reinstall' would work is not high, judging by the number of system dependencies which require Python 3.




Prior to more recent releases of Ubuntu, Python 2 was the default. A few years ago, however, the lifecycle of Python 2 was set with an end of life date of 2020.



Python 2 is no longer the 'default' Python in the latest Ubuntu. As such, many of the maintenance, system utility, and management programs and scripts now rely on Python 3.



Removing Python 3 is no longer a viable option for any Ubuntu systems. It will introduce its own form of self-induced torture to your life and computer if you do this. You are free to install other Python versions alongside it, but you cannot strip out Python 3 from your system without breaking it.



You could attempt to reinstall the Python 3 packages, going through the log files stored in /var/log/apt/history.log and finding what you removed and what else was removed with it, and then attempting to apt-get install those packages again, however this will be hit-or-miss and your success with this will vary.



The only tried-and-true way to recover from this type of critical mistake is to completely reinstall the system, backing up any specific data that you want to keep first.






share|improve this answer





























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    3
    down vote













    As with answers from I want to uninstall Python3 and just use 2.7 and Removed python from my install, how do I get it back?, the core problem is that you removed something which is vital to the system. Note however that contrary to these other questions and their answers, the problem is that since you removed Python 3, you are now left with an extremely broken system, and no guarantee that you can repair it.



    Without knowing which flavor of Ubuntu you attempted to use, the answer in
    Removed python from my install, how do I get it back? is not going to be useful. We would need to know which flavor you installed to properly provide you with the proper package(s) to attempt to reinstall. However, since Python is part of the core system now, the likelihood this type of 'reinstall' would work is not high, judging by the number of system dependencies which require Python 3.




    Prior to more recent releases of Ubuntu, Python 2 was the default. A few years ago, however, the lifecycle of Python 2 was set with an end of life date of 2020.



    Python 2 is no longer the 'default' Python in the latest Ubuntu. As such, many of the maintenance, system utility, and management programs and scripts now rely on Python 3.



    Removing Python 3 is no longer a viable option for any Ubuntu systems. It will introduce its own form of self-induced torture to your life and computer if you do this. You are free to install other Python versions alongside it, but you cannot strip out Python 3 from your system without breaking it.



    You could attempt to reinstall the Python 3 packages, going through the log files stored in /var/log/apt/history.log and finding what you removed and what else was removed with it, and then attempting to apt-get install those packages again, however this will be hit-or-miss and your success with this will vary.



    The only tried-and-true way to recover from this type of critical mistake is to completely reinstall the system, backing up any specific data that you want to keep first.






    share|improve this answer


























      up vote
      3
      down vote













      As with answers from I want to uninstall Python3 and just use 2.7 and Removed python from my install, how do I get it back?, the core problem is that you removed something which is vital to the system. Note however that contrary to these other questions and their answers, the problem is that since you removed Python 3, you are now left with an extremely broken system, and no guarantee that you can repair it.



      Without knowing which flavor of Ubuntu you attempted to use, the answer in
      Removed python from my install, how do I get it back? is not going to be useful. We would need to know which flavor you installed to properly provide you with the proper package(s) to attempt to reinstall. However, since Python is part of the core system now, the likelihood this type of 'reinstall' would work is not high, judging by the number of system dependencies which require Python 3.




      Prior to more recent releases of Ubuntu, Python 2 was the default. A few years ago, however, the lifecycle of Python 2 was set with an end of life date of 2020.



      Python 2 is no longer the 'default' Python in the latest Ubuntu. As such, many of the maintenance, system utility, and management programs and scripts now rely on Python 3.



      Removing Python 3 is no longer a viable option for any Ubuntu systems. It will introduce its own form of self-induced torture to your life and computer if you do this. You are free to install other Python versions alongside it, but you cannot strip out Python 3 from your system without breaking it.



      You could attempt to reinstall the Python 3 packages, going through the log files stored in /var/log/apt/history.log and finding what you removed and what else was removed with it, and then attempting to apt-get install those packages again, however this will be hit-or-miss and your success with this will vary.



      The only tried-and-true way to recover from this type of critical mistake is to completely reinstall the system, backing up any specific data that you want to keep first.






      share|improve this answer
























        up vote
        3
        down vote










        up vote
        3
        down vote









        As with answers from I want to uninstall Python3 and just use 2.7 and Removed python from my install, how do I get it back?, the core problem is that you removed something which is vital to the system. Note however that contrary to these other questions and their answers, the problem is that since you removed Python 3, you are now left with an extremely broken system, and no guarantee that you can repair it.



        Without knowing which flavor of Ubuntu you attempted to use, the answer in
        Removed python from my install, how do I get it back? is not going to be useful. We would need to know which flavor you installed to properly provide you with the proper package(s) to attempt to reinstall. However, since Python is part of the core system now, the likelihood this type of 'reinstall' would work is not high, judging by the number of system dependencies which require Python 3.




        Prior to more recent releases of Ubuntu, Python 2 was the default. A few years ago, however, the lifecycle of Python 2 was set with an end of life date of 2020.



        Python 2 is no longer the 'default' Python in the latest Ubuntu. As such, many of the maintenance, system utility, and management programs and scripts now rely on Python 3.



        Removing Python 3 is no longer a viable option for any Ubuntu systems. It will introduce its own form of self-induced torture to your life and computer if you do this. You are free to install other Python versions alongside it, but you cannot strip out Python 3 from your system without breaking it.



        You could attempt to reinstall the Python 3 packages, going through the log files stored in /var/log/apt/history.log and finding what you removed and what else was removed with it, and then attempting to apt-get install those packages again, however this will be hit-or-miss and your success with this will vary.



        The only tried-and-true way to recover from this type of critical mistake is to completely reinstall the system, backing up any specific data that you want to keep first.






        share|improve this answer














        As with answers from I want to uninstall Python3 and just use 2.7 and Removed python from my install, how do I get it back?, the core problem is that you removed something which is vital to the system. Note however that contrary to these other questions and their answers, the problem is that since you removed Python 3, you are now left with an extremely broken system, and no guarantee that you can repair it.



        Without knowing which flavor of Ubuntu you attempted to use, the answer in
        Removed python from my install, how do I get it back? is not going to be useful. We would need to know which flavor you installed to properly provide you with the proper package(s) to attempt to reinstall. However, since Python is part of the core system now, the likelihood this type of 'reinstall' would work is not high, judging by the number of system dependencies which require Python 3.




        Prior to more recent releases of Ubuntu, Python 2 was the default. A few years ago, however, the lifecycle of Python 2 was set with an end of life date of 2020.



        Python 2 is no longer the 'default' Python in the latest Ubuntu. As such, many of the maintenance, system utility, and management programs and scripts now rely on Python 3.



        Removing Python 3 is no longer a viable option for any Ubuntu systems. It will introduce its own form of self-induced torture to your life and computer if you do this. You are free to install other Python versions alongside it, but you cannot strip out Python 3 from your system without breaking it.



        You could attempt to reinstall the Python 3 packages, going through the log files stored in /var/log/apt/history.log and finding what you removed and what else was removed with it, and then attempting to apt-get install those packages again, however this will be hit-or-miss and your success with this will vary.



        The only tried-and-true way to recover from this type of critical mistake is to completely reinstall the system, backing up any specific data that you want to keep first.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited May 15 at 0:14

























        answered May 15 at 0:06









        Thomas Ward♦

        41.1k23112166




        41.1k23112166












            Popular posts from this blog

            Unable to execute new pre-installation script (/var/lib/dpkg/tmp.ci/preinst)

            Running the scala interactive shell from the command line

            Do not install recommended packages of dependencies