搜狗输入法已支持Ubuntu1604、1804、1910、2004、2010
各系统安装步骤可能略有不同
打开 系统设置——区域和语言——管理已安装的语言——在“语言”tab下——点击“添加或删除语言”

弹出“已安装语言”窗口,勾选中文(简体),点击应用

弹出“已安装语言”窗口,勾选中文(简体),点击应用
回到“语言支持”窗口,在键盘输入法系统中,选择“fcitx”

如果在键盘输入法系统中,没有“fcitx”选项时,建议先打开终端手动安装
fcitx:sudo apt-get install fcitx
等安装成功之后再执行上述步骤
点击“应用到整个系统”,关闭窗口,重启电脑

如果在键盘输入法系统中,没有“fcitx”选项时,建议先打开终端手动安装fcitx:sudo apt-get install fcitx等安装成功之后再执行上述步骤点击“应用到整个系统”,关闭窗口,重启电脑
sudo dpkg -i sogoupinyin_版本号_amd64.deb
注:
如果安装过程中提示缺少相关依赖,则执行如下命令解决:
sudo apt -f install
在终端执行 sudo apt update
在终端输入 sudo apt install fcitx
设置fcitx为系统输入法
点击左下角菜单选择语言支持,将语言选择为fcitx
在终端执行
sudo cp /usr/share/applications/fcitx.desktop /etc/xdg/autostart/
在终端执行 sudo apt purge ibus
在终端执行
sudo apt install libqt5qml5 libqt5quick5 libqt5quickwidgets5 qml-module-qtquick2
sudo apt install libgsettings-qt1
安装输入法依赖
1.重启电脑
2.查看右上角,可以看到“搜狗”字样,在输入窗口即可且出搜狗输入法。

查看右上角,可以看到“搜狗”字样,在输入窗口即可且出搜狗输入法
3. 没有“搜狗”字样,选择配置,将搜狗加入输入法列表即可


至此,搜狗输入法安装完毕
ref https://shurufa.sogou.com/linux/guide
sudo apt-get purge fcitx* sogou-pinyin*
rm -rf ~/.config/fcitx ~/.config/sogu-pinyin
(INFO-9112 addon.c:151) Load Addon Config File:fcitx-keyboard.conf
(INFO-9112 addon.c:151) Load Addon Config File:fcitx-ipc.conf
(INFO-9112 addon.c:151) Load Addon Config File:fcitx-remote-module.conf
(INFO-9112 addon.c:151) Load Addon Config File:fcitx-pinyin-enhance.conf
(INFO-9112 addon.c:151) Load Addon Config File:fcitx-pinyin.conf
(INFO-9112 addon.c:151) Load Addon Config File:fcitx-punc.conf
(INFO-9112 addon.c:151) Load Addon Config File:fcitx-xkbdbus.conf
(WARN-9112 dbusstuff.c:248) DBus Service Already Exists
(ERROR-9112 instance.c:443) Exiting.
fcitx-config-gtk3
fcitx-diagnose