1.搜狗
1).首先修改依赖源
deb http://cn.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
apt-get update
然后添加公钥
2).添加公钥
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
添加完成
3).安装依赖包
如果直接安装搜狗的输入法,会显示缺少依赖包
apt-get install fcitx-libs fcitx-libs-qt fcitx-bin fcitx-data fcitx-modules fcitx-module-dbus fcitx-module-kimpanel fcitx-module-lua fcitx-module-x11 fcitx fcitx-tools fcitx-ui-classic fcitx-config-gtk2 libopencc1
到这里就表示依赖环境安装好了
然后到搜狗的deb包的目录下,在空白位置,右键选择从终端打开,下载去官网下载即可
下载地址:https://pinyin.sogou.com/linux/?r=pinyin
然后输入:dpkg -i sou【按下tab,自动补全就可以了】
4)重新启动电脑
输入命令:init 6
5).进入fcitx看看是否有搜狗的输入法
切换方式:ctrl+空格
这就是安装完成了,尽情使用搜狗输入法吧