1. 搜狗官网下载Linux版的搜狗输入法,deb文件
2. 双击deb文件进行安装们,也可以通过dpkg命令行安装
sudo dpkg -i sogoupinyin_2.2.0.0108_amd64.deb
ps: 有可能碰到安装错误,缺少一些依赖项,libopencc2等:
sogoupinyin : Depends: libopencc2 but it is not installable or
libopencc1 but it is not going to be installed
Depends: fcitx-libs (>= 4.2.7) but it is not going to be installed
Depends: fcitx-libs-qt (>= 4.2.7) but it is not going to be installed
Recommends: fonts-droid-fallback but it is not going to be installed or
fonts-droid but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
先卸载未完全安装的sogoupinyin
sudo apt remove sogoupinyin
然后配置依赖项:
sudo apt install libopencc1 fcitx-libs fcitx-libs-qt fonts-droid-fallback
再重新安装sogoupinyin
sudo dpkg -i sogoupinyin_2.2.0.0108_amd64.deb
3. 安装完成后,到系统的language support中的keyboard input method system选择fcitx(如果没有,登出重新登录试试)
4. 进入Fcitx Configuration
input method一栏中左下角“+”号点进去,记得取消勾选“only show current language”,然后搜索sogou即可添加搜狗拼音输入法
5. 最后,log out重新登录,即可切换输入法