1. 程式人生 > >ubuntu搜狗拼音輸入法備忘

ubuntu搜狗拼音輸入法備忘

apt gin ack module ring usr 當前 support ren

一.首先到官網下載搜狗拼音輸入法 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搜狗拼音輸入法備忘