Ubuntu 18.04安裝搜狗輸入法筆記

zhangrelay發表於2019-01-23

因為內建輸入法還能用,所以一直沒有安裝輸入法,最近發現一些問題,還是安裝一下。

連結:pinyin.sogou.com/linux/

直接下載deb安裝包即可。目前版本為sogoupinyin_2.2.0.0108_amd64.deb

sudo dpkg -i sogoupinyin_2.2.0.0108_amd64.deb

報錯:

$ sudo dpkg -i sogoupinyin_2.2.0.0108_amd64.deb 
[sudo] password for relaybot: 
Selecting previously unselected package sogoupinyin.
(Reading database ... 315053 files and directories currently installed.)
Preparing to unpack sogoupinyin_2.2.0.0108_amd64.deb ...
Unpacking sogoupinyin (2.2.0.0108) ...
dpkg: dependency problems prevent configuration of sogoupinyin:
 sogoupinyin depends on fcitx (>= 1:4.2.8.3-3~); however:
  Package fcitx is not installed.
 sogoupinyin depends on fcitx-frontend-gtk2; however:
  Package fcitx-frontend-gtk2 is not installed.
 sogoupinyin depends on fcitx-frontend-gtk3; however:
  Package fcitx-frontend-gtk3 is not installed.
 sogoupinyin depends on fcitx-frontend-qt4; however:
  Package fcitx-frontend-qt4 is not installed.
 sogoupinyin depends on libfcitx-qt0 | fcitx-libs-qt; however:
  Package libfcitx-qt0 is not installed.
  Package fcitx-libs-qt is not installed.
 sogoupinyin depends on fcitx-module-kimpanel; however:
  Package fcitx-module-kimpanel is not installed.
 sogoupinyin depends on libopencc2 | libopencc1; however:
  Package libopencc2 is not installed.
  Package libopencc1 is not installed.
 sogoupinyin depends on fcitx-libs (>= 4.2.7); however:
  Package fcitx-libs is not installed.
 sogoupinyin depends on libqt4-dbus (>= 4:4.8.0); however:
  Package libqt4-dbus is not installed.
 sogoupinyin depends on libqt4-declarative (>= 4:4.8.0); however:
  Package libqt4-declarative is not installed.
 sogoupinyin depends on libqt4-network (>= 4:4.8.0); however:
  Package libqt4-network is not installed.
 sogoupinyin depends on libqtcore4 (>= 4:4.8.0); however:
  Package libqtcore4 is not installed.
 sogoupinyin depends on libqtgui4 (>= 4:4.8.0); however:
  Package libqtgui4 is not installed.
 sogoupinyin depends on libqtwebkit4 (>= 2.1.0~2011week13); however:
  Package libqtwebkit4 is not installed.

dpkg: error processing package sogoupinyin (--install):
 dependency problems - leaving unconfigured
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for libglib2.0-0:amd64 (2.56.3-0ubuntu0.18.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.
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for shared-mime-info (1.9-2) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Errors were encountered while processing:
 sogoupinyin

修復一下:

sudo apt install -f

再次安裝:

sudo dpkg -i sogoupinyin_2.2.0.0108_amd64.deb

安裝成功。

配置,這個非常重要的,將ibus改為fcitx。

需要登出或重啟後進行操作:

將sogou輸入法新增到input method中。

然後就可以正常使用搜狗輸入法了。


 

相關文章