0

Half of my OS does not work anymore after I used this command to uninstall python

sudo apt-get remove --auto-remove python

like the sudo does not work I gave it this command

sudo apt-get install python3.7
bash: /usr/bin/sudo: No such file or directory

and my LXDE does not work and the network does not work anymore

what should I do?

Magofoco
  • 5,098
  • 6
  • 35
  • 77

1 Answers1

2

Python, perl and sh/bash/dash are the main interpreters of debian. Many essential scripts and packages of debian depend on one of those three. You must not remove it, but only when you are really know what you are doing. You can install it again with:

#become root with
su -
apt-get install python

You have probably also removed your desktop environment. Launch taskel from the commandline as root to install a desktop environment of your choice.

cronoik
  • 15,434
  • 3
  • 40
  • 78
  • I found a way to reinstall the sudo command, but I had to restart the pc and now I can't connect to the internet because the network manager was deleted too. so I can't install anything now :/ – Razan Srour Nov 24 '19 at 17:37
  • 1
    Then you have to use a ethernet connection, but you should still try my answer. Maybe you are lucky and the removed packages are still cached by apt on your machine. – cronoik Nov 24 '19 at 18:38