1. First go to the official website to download Sogou Pinyin input method
sogou pinyin input method
http://pinyin.sogou.com/linux/?r=pinyin
The currently downloaded version is sogoupinyin_2.1.0.0086_amd64.deb
2. Installation
If you use dpki to install directly, an error will be reported, as follows:
$ sudo dpkg –i sogoupinyin_2.0.0.0078_amd64.deb
The following error is reported:
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
This is missing some dependency packages. Use the following commands to install dependencies:
sudo apt install libopencc1 fcitx-libs fcitx-libs-qt
or I used:
sudo apt-get install -f
to solve the dependency package problem
Then install again:
$ 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.
To summarize the installation steps, two steps are enough
sudo apt install libopencc1 fcitx-libs fcitx-libs-qt
sudo dpkg –i sogoupinyin_2.0.0.0078_amd64.deb
3. Most important! :
Choose an input method:
1. Add Chinese in Language Support, and then select the input method system as fcitx
2. Restart the system
3. Add Sogou Pinyin to Text Entry
4. Use Ctrl+space to open Sogou input method