Ubuntu14.04中踩过的坑

今天安装Ubuntu 14.0.4,因为需要使用python3,所以就直接配置如下:
sudo rm /usr/bin/python
sudo ln -s /usr/bin/python3.5  /usr/bin/python
因为把默认的环境配置成了python3.5,导致软件中心无法打开,因此需要使用以下方法解决:
shell里执行:
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 100
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.5 150
如果要切换到Python2,执行:
sudo update-alternatives --config python

资源参考:
参考1: www.jb51.net/article/100407.htm

原文地址:https://www.cnblogs.com/jiguanghover/p/7967955.html