不多说,直接上干货!

其实啊,很简单

分三步走
  1、添加fcitx的键盘输入法系统,因为sogou是基于fcitx的,而系统默认的是iBus;
  2、安装sogou输入法;
  3、设置系统参数及一些注意点。
 
 
 

zhouls@zhouls-virtual-machine:~$ sudo -s
[sudo] password for zhouls:
root@zhouls-virtual-machine:~# cat /etc/issue
Ubuntu 16.04. LTS \n \l root@zhouls-virtual-machine:~#
 
 
 
第一步、添加fcitx键盘输入法系统
  ①先添加以下源
sudo add-apt-repository ppa:fcitx-team/nightly

root@zhouls-virtual-machine:~# sudo add-apt-repository ppa:fcitx-team/nightly
Experimental releases of Fcitx, use with caution.
More info: https://launchpad.net/~fcitx-team/+archive/ubuntu/nightly
Press [ENTER] to continue or ctrl-c to cancel adding it gpg: keyring `/tmp/tmps7a9gr5b/secring.gpg' created
gpg: keyring `/tmp/tmps7a9gr5b/pubring.gpg' created
gpg: requesting key 7E5FA1EE from hkp server keyserver.ubuntu.com
gpg: /tmp/tmps7a9gr5b/trustdb.gpg: trustdb created
gpg: key 7E5FA1EE: public key "Launchpad PPA for Fcitx Team PPA" imported
gpg: Total number processed:
gpg: imported: (RSA: )
OK
root@zhouls-virtual-machine:~#
 
 
 
 
②添加源之后需要更新一下系统
sudo apt-get update

root@zhouls-virtual-machine:~# sudo apt-get update
Ign: http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 InRelease
Hit: http://cn.archive.ubuntu.com/ubuntu xenial InRelease
Hit: http://cn.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit: http://cn.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit: http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 Release
Hit: http://security.ubuntu.com/ubuntu xenial-security InRelease
Ign: http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial InRelease
Ign: http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial Release
Ign: http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main amd64 Packages
Ign: http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main i386 Packages
Ign: http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main all Packages
Ign: http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main Translation-en_US
Ign: http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main Translation-en
Ign: http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main amd64 DEP-11 Metadata
Ign: http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main DEP-11 64x64 Icons
Ign: http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main amd64 Packages
Ign: http://101.110.118.40/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main i386 Packages
Ign: http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main Translation-en_US
Ign: http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main DEP-11 64x64 Icons
Ign: http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main amd64 Packages
Ign: http://101.110.118.40/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main i386 Packages
Ign: http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main amd64 DEP-11 Metadata
Ign: http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main all Packages
Ign: http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main Translation-en_US
Ign: http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main Translation-en
Ign: http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main DEP-11 64x64 Icons
Ign: http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main amd64 Packages
Ign: http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main amd64 DEP-11 Metadata
Ign: http://101.110.118.40/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main i386 Packages
Ign: http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main all Packages
Ign: http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main Translation-en
Ign: http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main Translation-en_US
Ign: http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main amd64 Packages
Ign: http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main DEP-11 64x64 Icons
Ign: http://101.110.118.40/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main i386 Packages
Ign: http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main all Packages
Ign: http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main Translation-en_US
Err: http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main amd64 Packages
Not Found
Ign: http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main DEP-11 64x64 Icons
Ign: http://101.110.118.40/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main i386 Packages
Ign: http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main all Packages
Ign: http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main Translation-en
Ign: http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main Translation-en_US
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure() manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/fcitx-team/nightly/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Failed to fetch http://101.110.118.20/ppa.launchpad.net/fcitx-team/nightly/ubuntu/dists/xenial/main/dep11/Components-amd64.yml.gz?mqcreq=1 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
root@zhouls-virtual-machine:~#

③开始安装fcitx

sudo apt-get install fcitx
 

root@zhouls-virtual-machine:~# sudo apt-get install fcitx
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
fcitx-bin fcitx-config-common fcitx-config-gtk fcitx-data fcitx-frontend-all
fcitx-frontend-gtk2 fcitx-frontend-gtk3 fcitx-frontend-qt4
fcitx-frontend-qt5 fcitx-module-dbus fcitx-module-kimpanel fcitx-module-lua
fcitx-module-x11 fcitx-modules fcitx-ui-classic libfcitx-core0 libfcitx-qt0
libfcitx-qt5- libpresage-data libpresage1v5 libtinyxml2..2v5 presage
Suggested packages:
fcitx-m17n fcitx-tools kdebase-bin plasma-widgets-kimpanel
The following NEW packages will be installed:
fcitx fcitx-bin fcitx-config-common fcitx-config-gtk fcitx-data
fcitx-frontend-all fcitx-frontend-gtk2 fcitx-frontend-gtk3
fcitx-frontend-qt4 fcitx-frontend-qt5 fcitx-module-dbus
fcitx-module-kimpanel fcitx-module-lua fcitx-module-x11 fcitx-modules
fcitx-ui-classic libfcitx-core0 libfcitx-qt0 libfcitx-qt5- libpresage-data
libpresage1v5 libtinyxml2..2v5 presage
upgraded, newly installed, to remove and not upgraded.
Need to get , kB of archives.
After this operation, 21.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get: http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libfcitx-core0 amd64 1:4.2.9.1-1ubuntu1.16.04.2 [54.7 kB]
Get: http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 fcitx-bin amd64 1:4.2.9.1-1ubuntu1.16.04.2 [41.2 kB]
Get: http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 fcitx-data all 1:4.2.9.1-1ubuntu1.16.04.2 [82.0 kB]
Get: http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libtinyxml2.6.2v5 amd64 2.6.2-3 [29.7 kB]
Get: http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libpresage-data all 0.9.1-1.1ubuntu2 [3,665 kB]
Get: http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libpresage1v5 amd64 0.9.1-1.1ubuntu2 [155 kB]
Get: http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 fcitx-modules amd64 1:4.2.9.1-1ubuntu1.16.04.2 [1,420 kB]
Get: http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 fcitx all 1:4.2.9.1-1ubuntu1.16.04.2 [5,576 B]
Get: http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 fcitx-config-common all 0.4.8-3 [2,698 B]
Get: http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 fcitx-config-gtk amd64 0.4.8-3 [35.8 kB]
Get: http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 fcitx-frontend-all all 1:4.2.9.1-1ubuntu1.16.04.2 [4,936 B]
Get: http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 fcitx-module-dbus amd64 1:4.2.9.1-1ubuntu1.16.04.2 [29.0 kB]
Get: http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 fcitx-frontend-gtk2 amd64 1:4.2.9.1-1ubuntu1.16.04.2 [14.2 kB]
Get: http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 fcitx-frontend-gtk3 amd64 1:4.2.9.1-1ubuntu1.16.04.2 [14.9 kB]
Get: http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libfcitx-qt0 amd64 1:4.2.9.1-1ubuntu1.16.04.2 [69.5 kB]
Get: http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 fcitx-frontend-qt4 amd64 1:4.2.9.1-1ubuntu1.16.04.2 [28.9 kB]
Get: http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libfcitx-qt5-1 amd64 1.0.5-1 [57.6 kB]
Get: http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 fcitx-frontend-qt5 amd64 1.0.5-1 [31.7 kB]
Get: http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 fcitx-module-kimpanel amd64 1:4.2.9.1-1ubuntu1.16.04.2 [17.9 kB]
Get: http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 fcitx-module-lua amd64 1:4.2.9.1-1ubuntu1.16.04.2 [17.3 kB]
Get: http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 fcitx-module-x11 amd64 1:4.2.9.1-1ubuntu1.16.04.2 [83.0 kB]
Get: http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 fcitx-ui-classic amd64 1:4.2.9.1-1ubuntu1.16.04.2 [96.3 kB]
Get: http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 presage amd64 0.9.1-1.1ubuntu2 [54.4 kB]
Fetched , kB in 6s ( kB/s)
Selecting previously unselected package libfcitx-core0:amd64.
(Reading database ... files and directories currently installed.)
Preparing to unpack .../libfcitx-core0_1%3a4.2.9.-1ubuntu1.16.04.2_amd64.deb ...
Unpacking libfcitx-core0:amd64 (:4.2.9.1-1ubuntu1.16.04.) ...
Selecting previously unselected package fcitx-bin.
Preparing to unpack .../fcitx-bin_1%3a4.2.9.-1ubuntu1.16.04.2_amd64.deb ...
Unpacking fcitx-bin (:4.2.9.1-1ubuntu1.16.04.) ...
Selecting previously unselected package fcitx-data.
Preparing to unpack .../fcitx-data_1%3a4.2.9.-1ubuntu1.16.04.2_all.deb ...
Unpacking fcitx-data (:4.2.9.1-1ubuntu1.16.04.) ...
Selecting previously unselected package libtinyxml2..2v5:amd64.
Preparing to unpack .../libtinyxml2..2v5_2.6.2-3_amd64.deb ...
Unpacking libtinyxml2..2v5:amd64 (2.6.-) ...
Selecting previously unselected package libpresage-data.
Preparing to unpack .../libpresage-data_0.9.1-.1ubuntu2_all.deb ...
Unpacking libpresage-data (0.9.-.1ubuntu2) ...
Selecting previously unselected package libpresage1v5:amd64.
Preparing to unpack .../libpresage1v5_0.9.1-.1ubuntu2_amd64.deb ...
Unpacking libpresage1v5:amd64 (0.9.-.1ubuntu2) ...
Selecting previously unselected package fcitx-modules.
Preparing to unpack .../fcitx-modules_1%3a4.2.9.-1ubuntu1.16.04.2_amd64.deb ...
Unpacking fcitx-modules (:4.2.9.1-1ubuntu1.16.04.) ...
Selecting previously unselected package fcitx.
Preparing to unpack .../fcitx_1%3a4.2.9.-1ubuntu1.16.04.2_all.deb ...
Unpacking fcitx (:4.2.9.1-1ubuntu1.16.04.) ...
Selecting previously unselected package fcitx-config-common.
Preparing to unpack .../fcitx-config-common_0.4.8-3_all.deb ...
Unpacking fcitx-config-common (0.4.-) ...
Selecting previously unselected package fcitx-config-gtk.
Preparing to unpack .../fcitx-config-gtk_0.4.8-3_amd64.deb ...
Unpacking fcitx-config-gtk (0.4.-) ...
Selecting previously unselected package fcitx-frontend-all.
Preparing to unpack .../fcitx-frontend-all_1%3a4.2.9.-1ubuntu1.16.04.2_all.deb ...
Unpacking fcitx-frontend-all (:4.2.9.1-1ubuntu1.16.04.) ...
Selecting previously unselected package fcitx-module-dbus.
Preparing to unpack .../fcitx-module-dbus_1%3a4.2.9.-1ubuntu1.16.04.2_amd64.deb ...
Unpacking fcitx-module-dbus (:4.2.9.1-1ubuntu1.16.04.) ...
Selecting previously unselected package fcitx-frontend-gtk2.
Preparing to unpack .../fcitx-frontend-gtk2_1%3a4.2.9.-1ubuntu1.16.04.2_amd64.deb ...
Unpacking fcitx-frontend-gtk2 (:4.2.9.1-1ubuntu1.16.04.) ...
Selecting previously unselected package fcitx-frontend-gtk3.
Preparing to unpack .../fcitx-frontend-gtk3_1%3a4.2.9.-1ubuntu1.16.04.2_amd64.deb ...
Unpacking fcitx-frontend-gtk3 (:4.2.9.1-1ubuntu1.16.04.) ...
Selecting previously unselected package libfcitx-qt0:amd64.
Preparing to unpack .../libfcitx-qt0_1%3a4.2.9.-1ubuntu1.16.04.2_amd64.deb ...
Unpacking libfcitx-qt0:amd64 (:4.2.9.1-1ubuntu1.16.04.) ...
Selecting previously unselected package fcitx-frontend-qt4.
Preparing to unpack .../fcitx-frontend-qt4_1%3a4.2.9.-1ubuntu1.16.04.2_amd64.deb ...
Unpacking fcitx-frontend-qt4 (:4.2.9.1-1ubuntu1.16.04.) ...
Selecting previously unselected package libfcitx-qt5-:amd64.
Preparing to unpack .../libfcitx-qt5-1_1.0.5-1_amd64.deb ...
Unpacking libfcitx-qt5-:amd64 (1.0.-) ...
Selecting previously unselected package fcitx-frontend-qt5:amd64.
Preparing to unpack .../fcitx-frontend-qt5_1.0.5-1_amd64.deb ...
Unpacking fcitx-frontend-qt5:amd64 (1.0.-) ...
Selecting previously unselected package fcitx-module-kimpanel.
Preparing to unpack .../fcitx-module-kimpanel_1%3a4.2.9.-1ubuntu1.16.04.2_amd64.deb ...
Unpacking fcitx-module-kimpanel (:4.2.9.1-1ubuntu1.16.04.) ...
Selecting previously unselected package fcitx-module-lua.
Preparing to unpack .../fcitx-module-lua_1%3a4.2.9.-1ubuntu1.16.04.2_amd64.deb ...
Unpacking fcitx-module-lua (:4.2.9.1-1ubuntu1.16.04.) ...
Selecting previously unselected package fcitx-module-x11.
Preparing to unpack .../fcitx-module-x11_1%3a4.2.9.-1ubuntu1.16.04.2_amd64.deb ...
Unpacking fcitx-module-x11 (:4.2.9.1-1ubuntu1.16.04.) ...
Selecting previously unselected package fcitx-ui-classic.
Preparing to unpack .../fcitx-ui-classic_1%3a4.2.9.-1ubuntu1.16.04.2_amd64.deb ...
Unpacking fcitx-ui-classic (:4.2.9.1-1ubuntu1.16.04.) ...
Selecting previously unselected package presage.
Preparing to unpack .../presage_0.9.1-.1ubuntu2_amd64.deb ...
Unpacking presage (0.9.-.1ubuntu2) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Processing triggers for man-db (2.7.-) ...
Processing triggers for shared-mime-info (1.5-2ubuntu0.) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for gnome-menus (3.13.-6ubuntu3.) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for bamfdaemon (0.5.~bzr0+16.04.-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-.index...
Processing triggers for mime-support (.59ubuntu1) ...
Processing triggers for libgtk2.-:amd64 (2.24.-1ubuntu1) ...
Processing triggers for libgtk--:amd64 (3.18.-1ubuntu3.) ...
Setting up libfcitx-core0:amd64 (:4.2.9.1-1ubuntu1.16.04.) ...
Setting up fcitx-bin (:4.2.9.1-1ubuntu1.16.04.) ...
Setting up fcitx-data (:4.2.9.1-1ubuntu1.16.04.) ...
Setting up libtinyxml2..2v5:amd64 (2.6.-) ...
Setting up libpresage-data (0.9.-.1ubuntu2) ...
Setting up libpresage1v5:amd64 (0.9.-.1ubuntu2) ...
Setting up fcitx-modules (:4.2.9.1-1ubuntu1.16.04.) ...
Setting up fcitx (:4.2.9.1-1ubuntu1.16.04.) ...
update-alternatives: using /etc/X11/xinit/xinput.d/fcitx to provide /etc/X11/xinit/xinput.d/ja_JP (xinput-ja_JP) in auto mode
update-alternatives: using /etc/X11/xinit/xinput.d/fcitx to provide /etc/X11/xinit/xinput.d/ko_KR (xinput-ko_KR) in auto mode
update-alternatives: using /etc/X11/xinit/xinput.d/fcitx to provide /etc/X11/xinit/xinput.d/zh_CN (xinput-zh_CN) in auto mode
update-alternatives: using /etc/X11/xinit/xinput.d/fcitx to provide /etc/X11/xinit/xinput.d/zh_TW (xinput-zh_TW) in auto mode
update-alternatives: using /etc/X11/xinit/xinput.d/fcitx to provide /etc/X11/xinit/xinput.d/zh_HK (xinput-zh_HK) in auto mode
update-alternatives: using /etc/X11/xinit/xinput.d/fcitx to provide /etc/X11/xinit/xinput.d/zh_SG (xinput-zh_SG) in auto mode
Setting up fcitx-config-common (0.4.-) ...
Setting up fcitx-config-gtk (0.4.-) ...
Setting up fcitx-frontend-all (:4.2.9.1-1ubuntu1.16.04.) ...
Setting up fcitx-module-dbus (:4.2.9.1-1ubuntu1.16.04.) ...
Setting up fcitx-frontend-gtk2 (:4.2.9.1-1ubuntu1.16.04.) ...
Setting up fcitx-frontend-gtk3 (:4.2.9.1-1ubuntu1.16.04.) ...
Setting up libfcitx-qt0:amd64 (:4.2.9.1-1ubuntu1.16.04.) ...
Setting up fcitx-frontend-qt4 (:4.2.9.1-1ubuntu1.16.04.) ...
Setting up libfcitx-qt5-:amd64 (1.0.-) ...
Setting up fcitx-frontend-qt5:amd64 (1.0.-) ...
Setting up fcitx-module-kimpanel (:4.2.9.1-1ubuntu1.16.04.) ...
Setting up fcitx-module-lua (:4.2.9.1-1ubuntu1.16.04.) ...
Setting up fcitx-module-x11 (:4.2.9.1-1ubuntu1.16.04.) ...
Setting up fcitx-ui-classic (:4.2.9.1-1ubuntu1.16.04.) ...
Setting up presage (0.9.-.1ubuntu2) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
root@zhouls-virtual-machine:~#
 
 
 
④接着安装fcitx的配置工具
sudo apt-get install fcitx-config-gtk

root@zhouls-virtual-machine:~# sudo apt-get install fcitx-config-gtk
Reading package lists... Done
Building dependency tree
Reading state information... Done
fcitx-config-gtk is already the newest version (0.4.-).
fcitx-config-gtk set to manually installed.
upgraded, newly installed, to remove and not upgraded.
root@zhouls-virtual-machine:~#
 
 
 
 
 
 
⑤然后安装fcitx的table-all软件包
sudo apt-get install fcitx-table-all

root@zhouls-virtual-machine:~# sudo apt-get install fcitx-table-all
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
fcitx-pinyin fcitx-table fcitx-table-bingchan fcitx-table-cangjie
fcitx-table-dianbaoma fcitx-table-erbi fcitx-table-wanfeng fcitx-table-wbpy
fcitx-table-wubi fcitx-table-ziranma
The following NEW packages will be installed:
fcitx-pinyin fcitx-table fcitx-table-all fcitx-table-bingchan
fcitx-table-cangjie fcitx-table-dianbaoma fcitx-table-erbi
fcitx-table-wanfeng fcitx-table-wbpy fcitx-table-wubi fcitx-table-ziranma
upgraded, newly installed, to remove and not upgraded.
Need to get , kB of archives.
After this operation, 27.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get: http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 fcitx-pinyin amd64 1:4.2.9.1-1ubuntu1.16.04.2 [2,060 kB]
Get: http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 fcitx-table amd64 1:4.2.9.1-1ubuntu1.16.04.2 [44.6 kB]
Get: http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 fcitx-table-all all 1:4.2.9.1-1ubuntu1.16.04.2 [4,986 B]
Get: http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 fcitx-table-bingchan all 1:4.2.9.1-1ubuntu1.16.04.2 [109 kB]
Get: http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 fcitx-table-cangjie all 1:4.2.9.1-1ubuntu1.16.04.2 [27.1 kB]
Get: http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 fcitx-table-dianbaoma all 1:4.2.9.1-1ubuntu1.16.04.2 [17.2 kB]
Get: http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 fcitx-table-erbi all 1:4.2.9.1-1ubuntu1.16.04.2 [365 kB]
Get: http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 fcitx-table-wanfeng all 1:4.2.9.1-1ubuntu1.16.04.2 [501 kB]
Get: http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 fcitx-table-wbpy all 1:4.2.9.1-1ubuntu1.16.04.2 [1,643 kB]
Get: http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 fcitx-table-wubi all 1:4.2.9.1-1ubuntu1.16.04.2 [497 kB]
Get: http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 fcitx-table-ziranma all 1:4.2.9.1-1ubuntu1.16.04.2 [306 kB]
Fetched , kB in 5s ( kB/s)
Selecting previously unselected package fcitx-pinyin.
(Reading database ... files and directories currently installed.)
Preparing to unpack .../fcitx-pinyin_1%3a4.2.9.-1ubuntu1.16.04.2_amd64.deb ...
Unpacking fcitx-pinyin (:4.2.9.1-1ubuntu1.16.04.) ...
Selecting previously unselected package fcitx-table.
Preparing to unpack .../fcitx-table_1%3a4.2.9.-1ubuntu1.16.04.2_amd64.deb ...
Unpacking fcitx-table (:4.2.9.1-1ubuntu1.16.04.) ...
Selecting previously unselected package fcitx-table-all.
Preparing to unpack .../fcitx-table-all_1%3a4.2.9.-1ubuntu1.16.04.2_all.deb ...
Unpacking fcitx-table-all (:4.2.9.1-1ubuntu1.16.04.) ...
Selecting previously unselected package fcitx-table-bingchan.
Preparing to unpack .../fcitx-table-bingchan_1%3a4.2.9.-1ubuntu1.16.04.2_all.deb ...
Unpacking fcitx-table-bingchan (:4.2.9.1-1ubuntu1.16.04.) ...
Selecting previously unselected package fcitx-table-cangjie.
Preparing to unpack .../fcitx-table-cangjie_1%3a4.2.9.-1ubuntu1.16.04.2_all.deb ...
Unpacking fcitx-table-cangjie (:4.2.9.1-1ubuntu1.16.04.) ...
Selecting previously unselected package fcitx-table-dianbaoma.
Preparing to unpack .../fcitx-table-dianbaoma_1%3a4.2.9.-1ubuntu1.16.04.2_all.deb ...
Unpacking fcitx-table-dianbaoma (:4.2.9.1-1ubuntu1.16.04.) ...
Selecting previously unselected package fcitx-table-erbi.
Preparing to unpack .../fcitx-table-erbi_1%3a4.2.9.-1ubuntu1.16.04.2_all.deb ...
Unpacking fcitx-table-erbi (:4.2.9.1-1ubuntu1.16.04.) ...
Selecting previously unselected package fcitx-table-wanfeng.
Preparing to unpack .../fcitx-table-wanfeng_1%3a4.2.9.-1ubuntu1.16.04.2_all.deb ...
Unpacking fcitx-table-wanfeng (:4.2.9.1-1ubuntu1.16.04.) ...
Selecting previously unselected package fcitx-table-wbpy.
Preparing to unpack .../fcitx-table-wbpy_1%3a4.2.9.-1ubuntu1.16.04.2_all.deb ...
Unpacking fcitx-table-wbpy (:4.2.9.1-1ubuntu1.16.04.) ...
Selecting previously unselected package fcitx-table-wubi.
Preparing to unpack .../fcitx-table-wubi_1%3a4.2.9.-1ubuntu1.16.04.2_all.deb ...
Unpacking fcitx-table-wubi (:4.2.9.1-1ubuntu1.16.04.) ...
Selecting previously unselected package fcitx-table-ziranma.
Preparing to unpack .../fcitx-table-ziranma_1%3a4.2.9.-1ubuntu1.16.04.2_all.deb ...
Unpacking fcitx-table-ziranma (:4.2.9.1-1ubuntu1.16.04.) ...
Processing triggers for doc-base (0.10.) ...
Processing added doc-base files...
Setting up fcitx-pinyin (:4.2.9.1-1ubuntu1.16.04.) ...
Setting up fcitx-table (:4.2.9.1-1ubuntu1.16.04.) ...
Setting up fcitx-table-all (:4.2.9.1-1ubuntu1.16.04.) ...
Setting up fcitx-table-bingchan (:4.2.9.1-1ubuntu1.16.04.) ...
Setting up fcitx-table-cangjie (:4.2.9.1-1ubuntu1.16.04.) ...
Setting up fcitx-table-dianbaoma (:4.2.9.1-1ubuntu1.16.04.) ...
Setting up fcitx-table-erbi (:4.2.9.1-1ubuntu1.16.04.) ...
Setting up fcitx-table-wanfeng (:4.2.9.1-1ubuntu1.16.04.) ...
Setting up fcitx-table-wbpy (:4.2.9.1-1ubuntu1.16.04.) ...
Setting up fcitx-table-wubi (:4.2.9.1-1ubuntu1.16.04.) ...
Setting up fcitx-table-ziranma (:4.2.9.1-1ubuntu1.16.04.) ...
root@zhouls-virtual-machine:~#
 
 
 
 
 
⑥安装im-switch切换工具
sudo apt-get install im-switch

root@zhouls-virtual-machine:~# sudo apt-get install im-switch
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'im-config' instead of 'im-switch'
The following packages will be upgraded:
im-config
upgraded, newly installed, to remove and not upgraded.
Need to get 23.3 kB of archives.
After this operation, , B of additional disk space will be used.
Get: http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 im-config all 0.29-1ubuntu12.4 [23.3 kB]
Fetched 23.3 kB in 0s (85.1 kB/s)
(Reading database ... files and directories currently installed.)
Preparing to unpack .../im-config_0.-1ubuntu12.4_all.deb ...
Unpacking im-config (0.29-1ubuntu12.) over (0.29-1ubuntu12) ...
Processing triggers for gnome-menus (3.13.-6ubuntu3.) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for bamfdaemon (0.5.~bzr0+16.04.-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-.index...
Processing triggers for mime-support (.59ubuntu1) ...
Processing triggers for man-db (2.7.-) ...
Setting up im-config (0.29-1ubuntu12.) ...
root@zhouls-virtual-machine:~#
 
 
 
 
 
⑦ 看看我们的fcitx是否安装完成
 

   说明,安装成功!

  其实fcitx只是一个输入法工具,本身不带资源包的,所以Ubuntu下安装搜狗输入法,需要我们自己来下载搜狗输入法的资源包 。  
 
 
 
 
 
第二步、安装sogou输入法
①选择你操作系统的版本下载就可以了
 

 

 
②用dpkg命令来安装搜狗输入法资源包
sudo dpkg -i sogoupinyin_***_amd64.deb 
 

root@zhouls-virtual-machine:~/Downloads# pwd
/home/zhouls/Downloads
root@zhouls-virtual-machine:~/Downloads# ls
jdk-8u60-linux-x64.tar.gz sogoupinyin_2.1.0.0086_amd64.deb
mongodb-linux-x86_64-ubuntu1604-3.4..tgz vmware-tools-distrib
neo4j-community-3.2.-unix.tar.gz
root@zhouls-virtual-machine:~/Downloads# sudo dpkg -i sogoupinyin_2.1.0.0086_amd64.deb
Selecting previously unselected package sogoupinyin.
(Reading database ... files and directories currently installed.)
Preparing to unpack sogoupinyin_2.1.0.0086_amd64.deb ...
Unpacking sogoupinyin (2.1.0.0086) ...
dpkg: dependency problems prevent configuration of sogoupinyin:
sogoupinyin depends on libopencc2 | libopencc1; however:
Package libopencc2 is not installed.
Package libopencc1 is not installed.
sogoupinyin depends on fcitx-libs (>= 4.2.); however:
Package fcitx-libs is not installed.
sogoupinyin depends on fcitx-libs-qt (>= 4.2.); however:
Package fcitx-libs-qt is not installed. dpkg: error processing package sogoupinyin (--install):
dependency problems - leaving unconfigured
Processing triggers for libglib2.-:amd64 (2.48.-~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.
Processing triggers for gnome-menus (3.13.-6ubuntu3.) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for bamfdaemon (0.5.~bzr0+16.04.-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-.index...
Processing triggers for mime-support (.59ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for shared-mime-info (1.5-2ubuntu0.) ...
Errors were encountered while processing:
sogoupinyin
root@zhouls-virtual-machine:~/Downloads#
 
 
 
 
 
第三步、设置语言选项
①到系统设置->语言支持,将键盘输入法系统由默认的iBus设置为fcitx

root@zhouls-virtual-machine:~# sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
fcitx-libs fcitx-libs-qt libfcitx-config4 libfcitx-utils0 libopencc1
Recommended packages:
libfcitx-gclient0
The following NEW packages will be installed:
fcitx-libs fcitx-libs-qt libopencc1
The following packages will be upgraded:
libfcitx-config4 libfcitx-utils0
upgraded, newly installed, to remove and not upgraded.
not fully installed or removed.
Need to get kB of archives.
After this operation, , kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get: http://cn.archive.ubuntu.com/ubuntu xenial/universe amd64 libopencc1 amd64 0.4.3-2build1 [614 kB]
Get: http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libfcitx-utils0 amd64 1:4.2.9.1-1ubuntu1.16.04.2 [33.8 kB]
Get: http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libfcitx-config4 amd64 1:4.2.9.1-1ubuntu1.16.04.2 [33.9 kB]
Get: http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 fcitx-libs all 1:4.2.9.1-1ubuntu1.16.04.2 [3,818 B]
Get: http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 fcitx-libs-qt all 1:4.2.9.1-1ubuntu1.16.04.2 [3,792 B]
Fetched kB in 4s ( kB/s)
Selecting previously unselected package libopencc1:amd64.
(Reading database ... files and directories currently installed.)
Preparing to unpack .../libopencc1_0.4.3-2build1_amd64.deb ...
Unpacking libopencc1:amd64 (0.4.-2build1) ...
Preparing to unpack .../libfcitx-utils0_1%3a4.2.9.-1ubuntu1.16.04.2_amd64.deb ...
Unpacking libfcitx-utils0:amd64 (:4.2.9.1-1ubuntu1.16.04.) over (:4.2.9.1-1ubuntu1) ...
Preparing to unpack .../libfcitx-config4_1%3a4.2.9.-1ubuntu1.16.04.2_amd64.deb ...
Unpacking libfcitx-config4:amd64 (:4.2.9.1-1ubuntu1.16.04.) over (:4.2.9.1-1ubuntu1) ...
Selecting previously unselected package fcitx-libs.
Preparing to unpack .../fcitx-libs_1%3a4.2.9.-1ubuntu1.16.04.2_all.deb ...
Unpacking fcitx-libs (:4.2.9.1-1ubuntu1.16.04.) ...
Selecting previously unselected package fcitx-libs-qt.
Preparing to unpack .../fcitx-libs-qt_1%3a4.2.9.-1ubuntu1.16.04.2_all.deb ...
Unpacking fcitx-libs-qt (:4.2.9.1-1ubuntu1.16.04.) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Setting up libopencc1:amd64 (0.4.-2build1) ...
Setting up libfcitx-utils0:amd64 (:4.2.9.1-1ubuntu1.16.04.) ...
Setting up libfcitx-config4:amd64 (:4.2.9.1-1ubuntu1.16.04.) ...
Setting up fcitx-libs (:4.2.9.1-1ubuntu1.16.04.) ...
Setting up fcitx-libs-qt (:4.2.9.1-1ubuntu1.16.04.) ...
Setting up sogoupinyin (2.1.0.0086) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
root@zhouls-virtual-machine:~#

  然后,再次,进入语言支持设置界面

 

  耐心等待,需要一段时间。

 
 
 将键盘输入法系统由默认的iBus设置为fcitx

 
 
 
 
 
②这个时候是看不到效果的,一定要注销一次

 
 
 
 
 
③搜索出fcitx配置,将sogou输入法设为默认即可
 

变成

   成功!
 
 
 
 
 
 
 
 
其实啊
  大家在安装系统时,勾选这一步时,已经默认安装好了中文输入法,可以直接调出来。

Ubuntu 16.04或14.04里下安装搜狗输入法(图文详解)(全网最简单)的更多相关文章

  1. Ubuntu下安装JDK图文详解

    很详细的在Ubuntu中安装JDK图文详解教程,我们选择的是jdk1.6.0_30版本.安装文件名为jdk-6u30-linux-i586.bin. 1.复制jdk到安装目录 (1)假设jdk安装文件 ...

  2. windows下安装Mysql—图文详解

    mysql安装过程及注意事项: 1.1. 下载: 我下载的是64位系统的zip包: 下载地址:https://dev.mysql.com/downloads/mysql/ 下载zip的包: 下载后解压 ...

  3. windows下安装Mysql(图文详解)

      博客园 | 首页 | 新随笔 | 联系 | 订阅 | 管理 mysql安装过程及注意事项: 1.1. 下载: 我下载的是64位系统的zip包: 下载地址:https://dev.mysql.com ...

  4. 【Node.js】Mac 下安装node图文详解

    1  进入官网,下载node最新版 官网:https://nodejs.org/en/ 2 双击下载的安装包,一路默认安装就行 3  打开终端,输入以下命令查看结果,如出现下图信息则为安装成功 4   ...

  5. kettle的下载、安装和初步使用(Ubuntu 16.04平台下)(图文详解)

    不多说,直接上干货! 能够看我这篇博客的博友们,想必是已经具备一定基础了. 扩展博客 kettle的下载.安装和初步使用(windows平台下)(图文详解) kettle的下载 žKettle可以在h ...

  6. Ubuntu 16.04.3 Server 版安装过程图文详解

    Ubuntu 16.04.3 Server 版安装过程图文详解 首先,我们会进入系统安装的第一个界面,开始系统的安装操作.每一步的操作,左下角都会提示操作方式! 1.选择系统语言-English2.选 ...

  7. 在RedHat 5下安装Oracle 10g详解(转)

    在RedHat 5下安装Oracle 10g详解(转) Posted on 2012-09-14 13:26 疯狂 阅读(5075) 评论(0)  编辑  收藏 所属分类: database .uni ...

  8. Mac下安装HBase及详解

    Mac下安装HBase及详解 1. 千篇一律的HBase简介 HBase是Hadoop的数据库, 而Hive数据库的管理工具, HBase具有分布式, 可扩展及面向列存储的特点(基于谷歌BigTabl ...

  9. (转)windows 下安装配置 Nginx 详解

    windows 下安装配置 Nginx 详解 本文转自https://blog.csdn.net/kingscoming/article/details/79042874 nginx功能之一可以启动一 ...

随机推荐

  1. 【华科考研机试题】最长&最短文本

    题目 输入多行字符串,请按照原文本中的顺序输出其中最短和最长的字符串,如果最短和最长的字符串不止一个,请全部输出. 解题思路 1.输入所有字符串(有空格不另算字符串). 2.将char*字符串转换成s ...

  2. 关于安卓调用wcf的一些问题

    最近公司有个项目需要和别的系统做对接,对方开放的是webservice接口,搞了很久终于搞出来了,在此记录一下 获取数据的service public class SoapService implem ...

  3. 【Oracle】搭建DG(DataGuard)

    操作系统:OEL 5.6 Oracle 版本:11.2.0.4.0 DataGuard规划说明 DATABASE_ROLE DB_NAME IPADDR Primary lgr 192.168.10. ...

  4. 励志:98岁老爷爷用Windows系统自带画图软件制作的神作

    哈尔拉斯科,是一位很出名的老爷爷,他70岁才接触MS Paint(就是我们熟知的Windows自带的画图软件).他曾经是一名图形艺术家,但是之前他都是手工创作.他熟知怎么用双手进行艺术创作.但是后来, ...

  5. CGContext与上下文

    上下文指的是场景拥有的资源或属性. 上下文的操作包含上下文的设置: 和上下文的引用. 上下文是一个结构体. 主要包含结构体的设置和使用.

  6. Kafka学习笔记(7)----Kafka使用Cosumer接收消息

    1. 什么是KafkaConsumer? 应用程序使用KafkaConsul'le 「向Kafka 订阅主题,并从订阅的主题上接收消息.Kafka的消息读取不同于从其他消息系统读取数据,它涉及了一些独 ...

  7. CorelDRAW最高立返500元!还剩30个名额!速抢!

    由于上月CDR X7返利活动收获众多好评 本月官方继续将活动进行到底! 而此次活动不但有上月意犹未尽的CDR X7版,更增加了CDR X6.CDR 2017以及可望不可即的CDR 2018版,可谓是优 ...

  8. JS 20180415作业

    <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> ...

  9. 洛谷P3111 [USACO14DEC]牛慢跑Cow Jog_Sliver 性质分析

    Code: #include<cstdio> #include<algorithm> #include<cstring> using namespace std; ...

  10. Vue2实例中的data属性三种写法与作用

    <script src="https://unpkg.com/vue/dist/vue.js"></script> <div id="app ...