0

I uninstalled Python with sudo apt remove python3 and it removed every package that depended on Python (I think).

Now I can't do anything on my system, including opening gnome-terminal. Is there a way to salvage this?

Foobar
  • 579
  • 1
  • 7
  • 11
  • 2
    Ubuntu depends on Python scripts. Without python, as you've discovered, nothing works. You broke your system. Restore from backup or carefully reinstall. You MAY be able to preserve `/HOME`. – waltinator Apr 12 '21 at 20:27
  • 3
    Does this answer your question? [Removed Python 3 and now Ubuntu Software Center, terminal and other applications don't work](https://askubuntu.com/a/416691) (Also, if you have trouble switching to the terminal, see [here](https://askubuntu.com/questions/1033206/switch-to-console-in-ubuntu-18-04-how-to-leave-gui)) – Pixelated Fish Apr 12 '21 at 22:58
  • Changing or deleting the standard python version of Ubuntu is a unrecouverable error. You need to reinstall. Boot from a live DVD or USB and reinstall. If your live DVD/USB is the same version as the installed Ubuntu version, you will see a "Reinstall" option. This will reinstall the system in the same setup as the existing installation, without formatting the partitions. That way, your user data and user configuration will be preserved. – David Apr 13 '21 at 05:31
  • JC...What did you expect to happen? – EODCraft Staff Apr 13 '21 at 05:44

1 Answers1

0

Changing or deleting the standard python version of Ubuntu is a unrecoverable error. You need to reinstall.

Boot from a live DVD or USB and reinstall. If your live DVD/USB is the same version as the installed Ubuntu version, you will see a "Reinstall" option. This will reinstall the system in the same setup as the existing installation, without formatting the partitions. That way, your user data and user configuration will be preserved.

David
  • 2,105
  • 13
  • 15
  • 25