首先到官网下载搜狗拼音输入法
sogou 拼音输入法
当前下载的版本是
sogoupinyin_2.0.0.0078_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 install libopencc1 fcitx-libs fcitx-libs-qt
-
Reading package lists... Done
-
Building dependency tree
-
Reading state information... Done
-
The following package was automatically installed and is no longer required:
-
fonts-noto-mono
-
Use 'sudo apt autoremove' to remove it.
-
The following NEW packages will be installed:
-
fcitx-libs fcitx-libs-qt libopencc1
-
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
-
Need to get 622 kB of archives.
-
After this operation, 9,114 kB of additional disk space will be used.
-
Get:1 http://ubuntu.cn99.com/ubuntu xenial/universe amd64 libopencc1 amd64 0.4.3-2build1 [614 kB]
-
Get:2 http://ubuntu.cn99.com/ubuntu xenial/universe amd64 fcitx-libs all 1:4.2.9.1-1ubuntu1 [3,818 B]
-
Get:3 http://ubuntu.cn99.com/ubuntu xenial/universe amd64 fcitx-libs-qt all 1:4.2.9.1-1ubuntu1 [3,790 B]
-
Fetched 622 kB in 0s (1,929 kB/s)
-
Selecting previously unselected package libopencc1:amd64.
-
(Reading database ... 211651 files and directories currently installed.)
-
Preparing to unpack .../libopencc1_0.4.3-2build1_amd64.deb ...
-
Unpacking libopencc1:amd64 (0.4.3-2build1) ...
-
Selecting previously unselected package fcitx-libs.
-
Preparing to unpack .../fcitx-libs_1%3a4.2.9.1-1ubuntu1_all.deb ...
-
Unpacking fcitx-libs (1:4.2.9.1-1ubuntu1) ...
-
Selecting previously unselected package fcitx-libs-qt.
-
Preparing to unpack .../fcitx-libs-qt_1%3a4.2.9.1-1ubuntu1_all.deb ...
-
Unpacking fcitx-libs-qt (1:4.2.9.1-1ubuntu1) ...
-
Setting up libopencc1:amd64 (0.4.3-2build1) ...
-
Setting up fcitx-libs (1:4.2.9.1-1ubuntu1) ...
-
Setting up fcitx-libs-qt (1:4.2.9.1-1ubuntu1) ...
-
Processing triggers for libc-bin (2.23-0ubuntu3) ...
然后安装
-
$ 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即可开启搜狗输入法
如果版本是sogoupinyin_2.2.0.0102_amd64.deb
则需要安装的包是:
-
sudo apt install fcitx fcitx-frontend-gtk2 fcitx-frontend-gtk3 fcitx-frontend-qt4 fcitx-module-kimpanel libopencc1 fcitx-libs fcitx-libs-qt libqtwebkit4
阅读(44263) | 评论(0) | 转发(0) |