kali linux 安装 google拼音 (踩坑后总结)

1.更新源。重点!!!!
之前baidu、google全部添加的是ubuntu的源,报错:E: 仓库 “http://mirrors.ustc.edu.cn/kali sana Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
折腾一上午无果。。。陷入沉思
后找到Debian 9 最新源,如下:
切换到root用户:su
leafpad /etc/apt/sources

deb http://mirrors.163.com/debian/ stretch main non-free contrib
deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb http://mirrors.163.com/debian/ stretch-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib

deb http://mirrors.ustc.edu.cn/kali sana main non-free contrib
deb http://mirrors.ustc.edu.cn/kali-security/ sana/updates main contrib non-free
deb-src http://mirrors.ustc.edu.cn/kali-security/ sana/updates main contrib non-free

然后执行以下命令:
apt-get update#更新系统
apt-get dist-upgrade#升级系统
apt-get install fcitx fcitx-googlepinyin #安装google拼音

reboot
重启ctrl + 空格,切换不了,输入法不生效。。。。。陷入沉思(谷歌拼音包肯定没问题,问题估计是fcitx,于是apt remove fcitx,卸载,然后重装apt-get install fcitx)

找到fcitx配置如图:
kali linux 安装 google拼音 (踩坑后总结)_第1张图片

至此,安装的步骤结束

你可能感兴趣的:(linux)