ubuntu安装搜狗输入法

ubuntu安装搜狗输入法


环境 Ubuntu19.10桌面版 系统语言English

一. 更新源
sudo apt-get update
二. 安装fcitx输入法框架
sudo apt-get install fcitx
三. 安装sogou包,该deb包可在搜狗输入法官网中下载
sudo dpkg -i sogoupinyin_2.3.1.0112_amd64.deb
四. 设置系统的输入法
Region&Language->Manage Installed Languages->Keyboard input method system->fcitx
五. 重启后如果系统语言为中文,直接按Shift键即可切换为搜狗输入法,
但是如果当前系统语言为英文,还需要进行以下设置

1. 点击系统右上角输入法图标
2. 点击Configure选项
3. 左下角点击" + "增加新的输入法
4. 去掉Only Show Current Language勾选框
5. 在下面Search Input Method搜索框中输入Sogou
6. 选中Sogou Pinyin,点击OK
7. 按Shift键即可切换为搜狗输入法

在安装过程中可能出现的问题
安装deb包时,如果出现以下错误信息,执行sudo apt-get install -f 命令修复

(Reading database ... 146075 files and directories currently installed.)
Preparing to unpack sogoupinyin_2.3.1.0112_amd64.deb ...
Unpacking sogoupinyin (2.3.1.0112) over (2.3.1.0112) ...
dpkg: dependency problems prevent configuration of sogoupinyin:
 sogoupinyin depends on libqtwebkit4; however:
  Package libqtwebkit4 is not installed.
 sogoupinyin depends on libopencc2 | libopencc1; however:
  Package libopencc2 is not installed.
  Package libopencc1 is not installed.
 sogoupinyin depends on fcitx-libs | libfcitx-qt0; however:
  Package fcitx-libs is not installed.
  Package libfcitx-qt0 is not installed.

dpkg: error processing package sogoupinyin (--install):
 dependency problems - leaving unconfigured
Processing triggers for libglib2.0-0:amd64 (2.62.1-1) ...
No such key “Gtk/IMModule” in schema “org.gnome.settings-daemon.plugins.xsettings” as specified in override file “/usr/share/glib-2.0/schemas/50_sogoupinyin.gschema.override”; ignoring override for this key.
Processing triggers for gnome-menus (3.32.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu1) ...
Processing triggers for mime-support (3.63ubuntu1) ...
Processing triggers for shared-mime-info (1.10-1) ...
Processing triggers for fontconfig (2.13.1-2ubuntu2) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Errors were encountered while processing:
 sogoupinyin

你可能感兴趣的:(ubuntu)