sudo su
1.更新源
vi /etc/apt/sources.list
注销原内容,添加下面代码后输入wq! 保存 :
#中科大 deb <http://mirrors.ustc.edu.cn/kali> kali-rolling main non-free contrib deb-src shttp://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib #阿里云 deb <http://mirrors.aliyun.com/kali> kali-rolling main non-free contrib deb-src <http://mirrors.aliyun.com/kali> kali-rolling main non-free contrib #清华大学 deb <http://mirrors.tuna.tsinghua.edu.cn/kali> kali-rolling main contrib non-free deb-src <https://mirrors.tuna.tsinghua.edu.cn/kali> kali-rolling main contrib non-free #浙大 deb <http://mirrors.zju.edu.cn/kali> kali-rolling main contrib non-free deb-src <http://mirrors.zju.edu.cn/kali> kali-rolling main contrib non-free #东软大学 deb <http://mirrors.neusoft.edu.cn/kali> kali-rolling/main non-free contrib deb-src <http://mirrors.neusoft.edu.cn/kali> kali-rolling/main non-free contrib #官方源 deb <http://http.kali.org/kali> kali-rolling main non-free contrib deb-src <http://http.kali.org/kali> kali-rolling main non-free contrib deb <http://mirrors.163.com/debian/> jessie main non-free contrib deb <http://mirrors.163.com/debian/> jessie-updates main non-free contrib deb <http://mirrors.163.com/debian/> jessie-backports main non-free contrib deb-src <http://mirrors.163.com/debian/> jessie main non-free contrib deb-src <http://mirrors.163.com/debian/> jessie-updates main non-free contrib deb-src <http://mirrors.163.com/debian/> jessie-backports main non-free contrib deb <http://mirrors.163.com/debian-security/> jessie/updates main non-free contrib deb-src <http://mirrors.163.com/debian-security/> jessie/updates main non-free contrib
2.更新
sudo apt-get update && sudo apt-get upgrade && sudo apt-get clean
命令执行可能要等一段时间
3.更新完成后,输入命令 : sudo apt-get install fcitx ,按enter键
4.执行完成后,输入命令: sudo apt-get install fcitx-googlepinyin ,按enter键
5.最后一步输入命令 reboot , 按enter键。
6.重启成功后,按ctrl+空格键,切换输入法。