ubuntu搜狗拼音输入法备忘

Posted zeroisbug

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu搜狗拼音输入法备忘相关的知识,希望对你有一定的参考价值。

一.首先到官网下载搜狗拼音输入法
    sogou 拼音输入法
    http://pinyin.sogou.com/linux/?r=pinyin
    当前下载的版本是sogoupinyin_2.1.0.0086_amd64.deb
二.安装
    如果直接使用dpki安装会报错,具体如下:
    $ sudo dpkg –i sogoupinyin_2.0.0.0078_amd64.deb
    报如下错:
        Selecting previously unselected package sogoupinyin.
        (Reading database ... 211651 files and directories currently installed.)
        Preparing to unpack sogoupinyin_2.0.0.0078_amd64.deb ...
        Unpacking sogoupinyin (2.0.0.0078) ...
        dpkg: dependency problems prevent configuration of sogoupinyin:
        sogoupinyin depends on libopencc2 | libopencc1; however:
        Package libopencc2 is not installed.
        Package libopencc1:amd64 is not installed.
        sogoupinyin depends on fcitx-libs (>= 4.2.7); however:
        Package fcitx-libs is not installed.
        sogoupinyin depends on fcitx-libs-qt (>= 4.2.7); however:
        Package fcitx-libs-qt is not installed.
        dpkg: error processing package sogoupinyin (––install):
        dependency problems – leaving unconfigured
        Processing triggers for mime-support (3.59ubuntu1) ...
        Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160701-0ubuntu1) ...
        Rebuilding /usr/share/applications/bamf-2.index...
        Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
        Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
        Processing triggers for shared-mime-info (1.5-2ubuntu0.1) ...
        Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
        Processing triggers for libglib2.0-0:amd64 (2.48.1-1~ubuntu16.04.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.
        Errors were encountered while processing:
        sogoupinyin
    这是缺少一些依赖包,使用如下命令安装依赖:
        sudo apt install libopencc1 fcitx-libs fcitx-libs-qt
    或者我使用了:
        sudo apt-get install -f
    来解决依赖包问题
    然后再次安装:
        $ sudo dpkg –i sogoupinyin_2.0.0.0078_amd64.deb
        Selecting previously unselected package sogoupinyin.
        (Reading database ... 211686 files and directories currently installed.)
        Preparing to unpack sogoupinyin_2.0.0.0078_amd64.deb ...
        Unpacking sogoupinyin (2.0.0.0078) ...
        Setting up sogoupinyin (2.0.0.0078) ...
        Processing triggers for mime-support (3.59ubuntu1) ...
        Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160701-0ubuntu1) ...
        Rebuilding /usr/share/applications/bamf-2.index...
        Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
        Processing triggers for desktop-file–utils (0.22-1ubuntu5) ...
        Processing triggers for shared-mime-info (1.5-2ubuntu0.1) ...
        Processing triggers for hicolor-icon–theme (0.15-0ubuntu1) ...
        Processing triggers for libglib2.0-0:amd64 (2.48.1-1~ubuntu16.04.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.
    总结一下安装步骤,两步即可
        sudo apt install libopencc1 fcitx-libs fcitx-libs-qt
        sudo dpkg –i sogoupinyin_2.0.0.0078_amd64.deb
三.最重要的!:
    选择输入法:
    1.在Language Support中增加汉语,然后选择输入法系统为fcitx
    2.重启系统
    3.在Text Entry中增加Sogou Pinyin
    4.使用Ctrl+space即可开启搜狗输入法

以上是关于ubuntu搜狗拼音输入法备忘的主要内容,如果未能解决你的问题,请参考以下文章

[系统软件]Ubuntu 18.04 LTS 安装 搜狗输入法,谷歌拼音

ubuntu 18.04 安装搜狗拼音输入法(没有坑)

ubuntu1804搜狗拼音输入法突然失效的解决办法

ubuntu系统安装搜狗拼音输入法

Ubuntu14.04.1安装搜狗拼音输入法

Ubuntu系列安装搜狗拼音输入法