How to remove Python 3.6 completely from Ubuntu 18.04

时光毁灭记忆、已成空白 提交于 2019-12-22 03:49:06

问题


Both Python 2.7 and 3.6 are installed by default in Ubuntu 18. But I wish to use the Anaconda Python with conda package manager. To avoid any conflicts I wish to completely remove the default Python 3.6. Are there any way to do that? Please help.


回答1:


Ubuntu 18.04 requires python 3.6 to function. If you remove python 3.6, you won't be able to log in after a restart. Ubuntu will still have python 3.6minimal, even after uninstalling python 3.6. so you will have to remove both. Once that is done, you'll get an error that looks like this.

https://itsfoss.com/failed-to-start-session-ubuntu-14-04/

You can follow the above steps if you break Ubuntu.




回答2:


Don't do that , just don't.
you'll have regrets a lot of it.
And I'm serious.
A lot of things will deleted,but by the way, if you already done that don't worry, there is a solutions.
Just run this code in your terminal

sudo apt install ubuntu-desktop

And if you want you can run this one too

#ubuntu-18.04.1
sudo apt install $( curl http://releases.ubuntu.com/18.04/ubuntu-18.04.1-desktop-amd64.manifest | sed -e 's#\t.*##g' )

Link for reference: https://askubuntu.com/questions/1087267/how-do-i-reinstall-the-software-packages-that-came-with-ubuntu-18-04



来源:https://stackoverflow.com/questions/50298011/how-to-remove-python-3-6-completely-from-ubuntu-18-04

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!