如果你像我一样头脑发热,执行了如下命令把python3.5 卸载了,哦豁,该你脑壳疼的时候到了。。。
1) .卸载python3.5
sudo apt-get remove python3.5
2).卸载python3.5以及它的依赖包
sudo apt-get remove --auto-remove python3.5
3).清除python3.5
要想清除python3.5的配置文件和数据文件,执行以下命令:
sudo apt-get purge python3.5
sudo apt-get purge --auto-remove python3.5
网上也有很多资料,如下:
系统启动后,按ctrl+alt+f1进入ftty模式后,输入帐号密码,可以使用命令行重新安装python3.5 +如下几个包,可以进去桌面:
1. sudo apt-get install python3.5
2.sudo apt-get install ubuntu-minimal ubuntu-standard ubuntu-desktop
然后reboot
当你能进去系统后会发现很多地方不对劲,界面问题,状态栏没有,t erminal ,输入法不能用等等
,这个时候教你一个办法可以完美回到卸载前:
1. 查看ubuntu的系统日志,找到dpk