0

when i try to uninstall python3 using "sudo apt-get purge python3" command in terminal, this warnning appears : You are about to do something potentially harmful. To continue type in the phrase 'Yes, do as I say!' ?] this is complete Error

and also i start it by 'yes,do as I say' but i saw this uninstalling takes a long time and i canceled it. Could it harm my os or pc? and if yes how can i check health of my os?

2 Answers2

2

Purging an application removes everything regarding it on your computer. Since lots of the OS is based on Python, removing it can harm the OS. You should never have a need to purge, instead, I always recommend remove instead. Unlike purge, remove will not remove the configuration files of the program, only the program itself.

For example: sudo apt-get purge <packagename> becomes sudo apt-get remove <packagename>.

The first answer of this question further explains the differences between purge and remove if you need more clarification :).

In order to fix your potentially broken system, I recommend reinstalling Python3. Run sudo apt-get install --install-recommends python3 to reinstall Python3 and dependencies that could have also been removed. If it says that it is already installed, then sudo apt-get install --reinstall python3.

Hopefully this helps you :).

Daniel M.
  • 1,903
1

Yes it can harm your OS. A lot of OS tools are in fact scripts in Python. Python 2 is going to be retired soon, therefore python 3 is taking it's place now.

Maciejos
  • 31
  • 2