509 字
3 分钟
Ubuntu 更换输入法
前言
我再也受不了 ibus 了,一年了!!
从一开始的每隔几个小时崩溃一次,到最近十分钟不到崩了两次??
不了解的可以看看这个:Ubuntu Ibus输入法 失灵/高延迟
fcitx
由于 linux 端的搜狗输入法是基于 fcitx 框架的,所以需要提前确认 fcitx 是否安装完成。
fcitx 的安装指令:
sudo apt install fcitxsudo apt install fcitx-config-gtk第二条指令是安装 fcitx 的配置工具,如果没有可以尝试 fcitx-config-gtk3 或 fcitx-configtool
![[fcitx]缺少配置工具.png](https://imgbed.sunwj.top/file/1767171063234__fcitx_%E7%BC%BA%E5%B0%91%E9%85%8D%E7%BD%AE%E5%B7%A5%E5%85%B7.png)
安装完成后在 设置-区域与语言-管理已安装的语言-键盘输入法系统 中选择 fcitx。
![[fcitx]语言支持.png](https://imgbed.sunwj.top/file/1767171066863__fcitx_%E8%AF%AD%E8%A8%80%E6%94%AF%E6%8C%81.png)
搜狗输入法
从搜狗官网那里获取输入法安装包 .deb ,使用如下指令安装:
sudo dpkg -i sogoupinyin_版本号_amd64.deb如果缺少依赖,可以通过如下指令安装:
sudo apt -f install安装完成后重启电脑。
找到 fcitx 的小图标,点进去:
![[fcitx]图1.png](https://imgbed.sunwj.top/file/1767171060491__fcitx_%E5%9B%BE1.png)
选择 配置当前输入法 :
![[fcitx]图2.png](https://imgbed.sunwj.top/file/1767171059894__fcitx_%E5%9B%BE2.png)
将搜狗输入法调整到第一个,或使用 Ctrl + Space 切换输入法:
![[fcitx]图3.png](https://imgbed.sunwj.top/file/1767171062503__fcitx_%E5%9B%BE3.png)
然后就能看到搜狗输入法的浮动窗口了:
![[fcitx]图4.png](https://imgbed.sunwj.top/file/1767171064826__fcitx_%E5%9B%BE4.png)
卸载 ibus
为了防止 ibus 之后又给我整幺蛾子,我直接进行一个卸载:
sudo apt autoremove ibussudo apt autoremove ibus-pinyin报错
fcitx-dbus-watcher 缓冲溢出
报错信息: fcitx-dbus-watcher crached with SIGSEGV in dbus_watch_get_enabled()
在 Ubuntu-fcitx 的社区中查找到了相关报错记录1,并且这个问题成因比较复杂:
Status changed to ‘Confirmed’ because the bug affects multiple users.
但这个报错并不影响搜狗输入法的正常使用,如果一直报这个错误,可以尝试删除错误报告2:
cd /var/crash/在 /var/crash/ 能看到生成的错误报告,rm 删掉就行。
Footnotes
Ubuntu 更换输入法
https://fuwari.vercel.app/posts/ubuntu/ubuntu-更换输入法/