由于Python出现了一些问题,导致想重装Python。于是sudo apt-get remove python砸下去,Ubuntu立马就出现了问题,终端不能进入.本以为可以像在Windows下一样重装Python就完事,后来才发现原来Ubuntu依赖Python,删除Python自然就会导致Ubuntu同样也出现问题。
解决办法:
1.解决乱码问题
sudo apt-get install zhcon
zhcon --utf8
2.安装python
sudo apt-get install python
3.重装ubuntu
sudo apt-get install ubuntu-minimal ubuntu-standard ubuntu-desktop
4.重启
sudo reboot