Ubuntu安装谷歌拼音输入法/搜狗拼音输入法

布满荆棘的人生 2023-05-21 08:47 139阅读 0赞

文章目录

    • 搜狗输入法
    • 搜狗中文输入法乱码
    • 安装谷歌输入法
    • 如果出现 Could not install the full language support Transaction failed
    • 出现安装依赖报错

搜狗输入法

  • 安装fcitx

Linux下常用的中文输入法框架有iBus和fcitx。其中搜狗输入法和谷歌拼音输入法用的就是fcitx的框架。

apt install fcitx

  • 启动fcitx

    • 打开系统设置
    • 打开语言设置
    • 打开fcitx
      在这里插入图片描述
  • 下载搜狗 for Linux
    搜狗for Linux 官网
    在这里插入图片描述
  • 安装搜狗输入法
    dpkg -i xxx.deb
    xxx.deb为下载搜狗输入发的名字

搜狗中文输入法乱码

候选框的文字出现乱码,如图:在这里插入图片描述

  • 我的解决方法
    是将搜狗输入法的默认键盘位置放在第二位而不是第一位。
    在这里插入图片描述
    具体原因如何我也不清楚,但是通过这样设置确实解决了我候选框乱码的问题。

安装谷歌输入法

sudo apt-get install fcitx-googlepinyin

  • 增加输入方式
    在这里插入图片描述
  • 打开谷歌拼音
    在这里插入图片描述
  • 展示
    在这里插入图片描述

如果出现 Could not install the full language support Transaction failed

  • sudo apt-get remove thunderbird
    在这里插入图片描述
  • 即可解决问题

出现安装依赖报错

  1. Reading package lists... Done
  2. Building dependency tree
  3. Reading state information... Done
  4. fcitx-googlepinyin is already the newest version (0.1.6-3).
  5. You might want to run 'apt-get -f install' to correct these:
  6. The following packages have unmet dependencies:
  7. sogoupinyin : Depends: libqtwebkit4 but it is not going to be installed
  8. Depends: fonts-droid but it is not installable or
  9. fonts-droid-fallback but it is not going to be installed
  10. Depends: libopencc2 but it is not installable or
  11. libopencc1 but it is not going to be installed
  12. E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

apt install xxx即可。其中 xxx是指缺乏的包名。

发表评论

表情:
评论列表 (有 0 条评论,139人围观)

还没有评论,来说两句吧...

相关阅读