Ubuntu 16.04里下安装搜狗输入法(图文详解)(亲测好使)

2023-10-27 14:40

本文主要是介绍Ubuntu 16.04里下安装搜狗输入法(图文详解)(亲测好使),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

        开始想装搜狗输入法的时候没想到这么麻烦,比windows麻烦太多,不过ubuntu友好的操作界面,逼格,更适合编程等特点,让我流连忘返。

       这是我转载的一篇亲测好使,比网上找到的其他的方法好使。

       网址:https://www.cnblogs.com/zlslch/p/6943318.html

      

不多说,直接上干货!

 

 

其实啊,很简单

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

分三步走

  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.1 LTS \n \lroot@zhouls-virtual-machine:~# 

 

 

 

 

 

 

 

第一步、添加fcitx键盘输入法系统

  ①先添加以下源

sudo add-apt-repository ppa:fcitx-team/nightly

复制代码

root@zhouls-virtual-machine:~# sudo add-apt-repository ppa:fcitx-team/nightlyExperimental 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 itgpg: 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: 1
gpg:               imported: 1  (RSA: 1)
OK
root@zhouls-virtual-machine:~# 

复制代码

 

 

 

 

 

 

②添加源之后需要更新一下系统

sudo apt-get update

复制代码

root@zhouls-virtual-machine:~# sudo apt-get update
Ign:1 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 InRelease      
Hit:2 http://cn.archive.ubuntu.com/ubuntu xenial InRelease                     
Hit:3 http://cn.archive.ubuntu.com/ubuntu xenial-updates InRelease             
Hit:4 http://cn.archive.ubuntu.com/ubuntu xenial-backports InRelease           
Hit:5 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 Release        
Hit:7 http://security.ubuntu.com/ubuntu xenial-security InRelease              
Ign:8 http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial InRelease
Ign:9 http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial Release
Ign:10 http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main amd64 Packages
Ign:11 http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main i386 Packages
Ign:12 http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main all Packages
Ign:13 http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main Translation-en_US
Ign:14 http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main Translation-en
Ign:15 http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:16 http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main DEP-11 64x64 Icons
Ign:10 http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main amd64 Packages
Ign:11 http://101.110.118.40/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main i386 Packages
Ign:13 http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main DEP-11 64x64 Icons
Ign:10 http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main amd64 Packages
Ign:11 http://101.110.118.40/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main i386 Packages
Ign:15 http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:12 http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main all Packages
Ign:13 http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main Translation-en_US
Ign:14 http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main Translation-en
Ign:16 http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main DEP-11 64x64 Icons
Ign:10 http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main amd64 Packages
Ign:15 http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:11 http://101.110.118.40/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main i386 Packages
Ign:12 http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main all Packages
Ign:14 http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main Translation-en
Ign:13 http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main Translation-en_US
Ign:10 http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main amd64 Packages
Ign:16 http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main DEP-11 64x64 Icons
Ign:11 http://101.110.118.40/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main i386 Packages
Ign:12 http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main all Packages
Ign:13 http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main Translation-en_US
Err:10 http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main amd64 Packages404  Not Found
Ign:16 http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main DEP-11 64x64 Icons
Ign:11 http://101.110.118.40/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main i386 Packages
Ign:12 http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main all Packages
Ign:14 http://202.193.64.38/ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial/main Translation-en
Ign:13 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(8) 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-allfcitx-frontend-gtk2 fcitx-frontend-gtk3 fcitx-frontend-qt4fcitx-frontend-qt5 fcitx-module-dbus fcitx-module-kimpanel fcitx-module-luafcitx-module-x11 fcitx-modules fcitx-ui-classic libfcitx-core0 libfcitx-qt0libfcitx-qt5-1 libpresage-data libpresage1v5 libtinyxml2.6.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-datafcitx-frontend-all fcitx-frontend-gtk2 fcitx-frontend-gtk3fcitx-frontend-qt4 fcitx-frontend-qt5 fcitx-module-dbusfcitx-module-kimpanel fcitx-module-lua fcitx-module-x11 fcitx-modulesfcitx-ui-classic libfcitx-core0 libfcitx-qt0 libfcitx-qt5-1 libpresage-datalibpresage1v5 libtinyxml2.6.2v5 presage
0 upgraded, 23 newly installed, 0 to remove and 236 not upgraded.
Need to get 6,011 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:1 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:2 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:3 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:4 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libtinyxml2.6.2v5 amd64 2.6.2-3 [29.7 kB]
Get:5 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libpresage-data all 0.9.1-1.1ubuntu2 [3,665 kB]
Get:6 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libpresage1v5 amd64 0.9.1-1.1ubuntu2 [155 kB]
Get:7 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:8 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:9 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 fcitx-config-common all 0.4.8-3 [2,698 B]
Get:10 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 fcitx-config-gtk amd64 0.4.8-3 [35.8 kB]
Get:11 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:12 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:13 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:14 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:15 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:16 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:17 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libfcitx-qt5-1 amd64 1.0.5-1 [57.6 kB]
Get:18 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 fcitx-frontend-qt5 amd64 1.0.5-1 [31.7 kB]
Get:19 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:20 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:21 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:22 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:23 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 presage amd64 0.9.1-1.1ubuntu2 [54.4 kB]
Fetched 6,011 kB in 6s (949 kB/s)                                              
Selecting previously unselected package libfcitx-core0:amd64.
(Reading database ... 209096 files and directories currently installed.)
Preparing to unpack .../libfcitx-core0_1%3a4.2.9.1-1ubuntu1.16.04.2_amd64.deb ...
Unpacking libfcitx-core0:amd64 (1:4.2.9.1-1ubuntu1.16.04.2) ...
Selecting previously unselected package fcitx-bin.
Preparing to unpack .../fcitx-bin_1%3a4.2.9.1-1ubuntu1.16.04.2_amd64.deb ...
Unpacking fcitx-bin (1:4.2.9.1-1ubuntu1.16.04.2) ...
Selecting previously unselected package fcitx-data.
Preparing to unpack .../fcitx-data_1%3a4.2.9.1-1ubuntu1.16.04.2_all.deb ...
Unpacking fcitx-data (1:4.2.9.1-1ubuntu1.16.04.2) ...
Selecting previously unselected package libtinyxml2.6.2v5:amd64.
Preparing to unpack .../libtinyxml2.6.2v5_2.6.2-3_amd64.deb ...
Unpacking libtinyxml2.6.2v5:amd64 (2.6.2-3) ...
Selecting previously unselected package libpresage-data.
Preparing to unpack .../libpresage-data_0.9.1-1.1ubuntu2_all.deb ...
Unpacking libpresage-data (0.9.1-1.1ubuntu2) ...
Selecting previously unselected package libpresage1v5:amd64.
Preparing to unpack .../libpresage1v5_0.9.1-1.1ubuntu2_amd64.deb ...
Unpacking libpresage1v5:amd64 (0.9.1-1.1ubuntu2) ...
Selecting previously unselected package fcitx-modules.
Preparing to unpack .../fcitx-modules_1%3a4.2.9.1-1ubuntu1.16.04.2_amd64.deb ...
Unpacking fcitx-modules (1:4.2.9.1-1ubuntu1.16.04.2) ...
Selecting previously unselected package fcitx.
Preparing to unpack .../fcitx_1%3a4.2.9.1-1ubuntu1.16.04.2_all.deb ...
Unpacking fcitx (1:4.2.9.1-1ubuntu1.16.04.2) ...
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.8-3) ...
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.8-3) ...
Selecting previously unselected package fcitx-frontend-all.
Preparing to unpack .../fcitx-frontend-all_1%3a4.2.9.1-1ubuntu1.16.04.2_all.deb ...
Unpacking fcitx-frontend-all (1:4.2.9.1-1ubuntu1.16.04.2) ...
Selecting previously unselected package fcitx-module-dbus.
Preparing to unpack .../fcitx-module-dbus_1%3a4.2.9.1-1ubuntu1.16.04.2_amd64.deb ...
Unpacking fcitx-module-dbus (1:4.2.9.1-1ubuntu1.16.04.2) ...
Selecting previously unselected package fcitx-frontend-gtk2.
Preparing to unpack .../fcitx-frontend-gtk2_1%3a4.2.9.1-1ubuntu1.16.04.2_amd64.deb ...
Unpacking fcitx-frontend-gtk2 (1:4.2.9.1-1ubuntu1.16.04.2) ...
Selecting previously unselected package fcitx-frontend-gtk3.
Preparing to unpack .../fcitx-frontend-gtk3_1%3a4.2.9.1-1ubuntu1.16.04.2_amd64.deb ...
Unpacking fcitx-frontend-gtk3 (1:4.2.9.1-1ubuntu1.16.04.2) ...
Selecting previously unselected package libfcitx-qt0:amd64.
Preparing to unpack .../libfcitx-qt0_1%3a4.2.9.1-1ubuntu1.16.04.2_amd64.deb ...
Unpacking libfcitx-qt0:amd64 (1:4.2.9.1-1ubuntu1.16.04.2) ...
Selecting previously unselected package fcitx-frontend-qt4.
Preparing to unpack .../fcitx-frontend-qt4_1%3a4.2.9.1-1ubuntu1.16.04.2_amd64.deb ...
Unpacking fcitx-frontend-qt4 (1:4.2.9.1-1ubuntu1.16.04.2) ...
Selecting previously unselected package libfcitx-qt5-1:amd64.
Preparing to unpack .../libfcitx-qt5-1_1.0.5-1_amd64.deb ...
Unpacking libfcitx-qt5-1:amd64 (1.0.5-1) ...
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.5-1) ...
Selecting previously unselected package fcitx-module-kimpanel.
Preparing to unpack .../fcitx-module-kimpanel_1%3a4.2.9.1-1ubuntu1.16.04.2_amd64.deb ...
Unpacking fcitx-module-kimpanel (1:4.2.9.1-1ubuntu1.16.04.2) ...
Selecting previously unselected package fcitx-module-lua.
Preparing to unpack .../fcitx-module-lua_1%3a4.2.9.1-1ubuntu1.16.04.2_amd64.deb ...
Unpacking fcitx-module-lua (1:4.2.9.1-1ubuntu1.16.04.2) ...
Selecting previously unselected package fcitx-module-x11.
Preparing to unpack .../fcitx-module-x11_1%3a4.2.9.1-1ubuntu1.16.04.2_amd64.deb ...
Unpacking fcitx-module-x11 (1:4.2.9.1-1ubuntu1.16.04.2) ...
Selecting previously unselected package fcitx-ui-classic.
Preparing to unpack .../fcitx-ui-classic_1%3a4.2.9.1-1ubuntu1.16.04.2_amd64.deb ...
Unpacking fcitx-ui-classic (1:4.2.9.1-1ubuntu1.16.04.2) ...
Selecting previously unselected package presage.
Preparing to unpack .../presage_0.9.1-1.1ubuntu2_amd64.deb ...
Unpacking presage (0.9.1-1.1ubuntu2) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for shared-mime-info (1.5-2ubuntu0.1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160701-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for libgtk2.0-0:amd64 (2.24.30-1ubuntu1) ...
Processing triggers for libgtk-3-0:amd64 (3.18.9-1ubuntu3.1) ...
Setting up libfcitx-core0:amd64 (1:4.2.9.1-1ubuntu1.16.04.2) ...
Setting up fcitx-bin (1:4.2.9.1-1ubuntu1.16.04.2) ...
Setting up fcitx-data (1:4.2.9.1-1ubuntu1.16.04.2) ...
Setting up libtinyxml2.6.2v5:amd64 (2.6.2-3) ...
Setting up libpresage-data (0.9.1-1.1ubuntu2) ...
Setting up libpresage1v5:amd64 (0.9.1-1.1ubuntu2) ...
Setting up fcitx-modules (1:4.2.9.1-1ubuntu1.16.04.2) ...
Setting up fcitx (1:4.2.9.1-1ubuntu1.16.04.2) ...
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.8-3) ...
Setting up fcitx-config-gtk (0.4.8-3) ...
Setting up fcitx-frontend-all (1:4.2.9.1-1ubuntu1.16.04.2) ...
Setting up fcitx-module-dbus (1:4.2.9.1-1ubuntu1.16.04.2) ...
Setting up fcitx-frontend-gtk2 (1:4.2.9.1-1ubuntu1.16.04.2) ...
Setting up fcitx-frontend-gtk3 (1:4.2.9.1-1ubuntu1.16.04.2) ...
Setting up libfcitx-qt0:amd64 (1:4.2.9.1-1ubuntu1.16.04.2) ...
Setting up fcitx-frontend-qt4 (1:4.2.9.1-1ubuntu1.16.04.2) ...
Setting up libfcitx-qt5-1:amd64 (1.0.5-1) ...
Setting up fcitx-frontend-qt5:amd64 (1.0.5-1) ...
Setting up fcitx-module-kimpanel (1:4.2.9.1-1ubuntu1.16.04.2) ...
Setting up fcitx-module-lua (1:4.2.9.1-1ubuntu1.16.04.2) ...
Setting up fcitx-module-x11 (1:4.2.9.1-1ubuntu1.16.04.2) ...
Setting up fcitx-ui-classic (1:4.2.9.1-1ubuntu1.16.04.2) ...
Setting up presage (0.9.1-1.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.8-3).
fcitx-config-gtk set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 236 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-cangjiefcitx-table-dianbaoma fcitx-table-erbi fcitx-table-wanfeng fcitx-table-wbpyfcitx-table-wubi fcitx-table-ziranma
The following NEW packages will be installed:fcitx-pinyin fcitx-table fcitx-table-all fcitx-table-bingchanfcitx-table-cangjie fcitx-table-dianbaoma fcitx-table-erbifcitx-table-wanfeng fcitx-table-wbpy fcitx-table-wubi fcitx-table-ziranma
0 upgraded, 11 newly installed, 0 to remove and 236 not upgraded.
Need to get 5,575 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:1 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:2 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:3 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:4 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:5 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:6 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:7 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:8 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:9 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:10 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:11 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 5,575 kB in 5s (976 kB/s)             
Selecting previously unselected package fcitx-pinyin.
(Reading database ... 209504 files and directories currently installed.)
Preparing to unpack .../fcitx-pinyin_1%3a4.2.9.1-1ubuntu1.16.04.2_amd64.deb ...
Unpacking fcitx-pinyin (1:4.2.9.1-1ubuntu1.16.04.2) ...
Selecting previously unselected package fcitx-table.
Preparing to unpack .../fcitx-table_1%3a4.2.9.1-1ubuntu1.16.04.2_amd64.deb ...
Unpacking fcitx-table (1:4.2.9.1-1ubuntu1.16.04.2) ...
Selecting previously unselected package fcitx-table-all.
Preparing to unpack .../fcitx-table-all_1%3a4.2.9.1-1ubuntu1.16.04.2_all.deb ...
Unpacking fcitx-table-all (1:4.2.9.1-1ubuntu1.16.04.2) ...
Selecting previously unselected package fcitx-table-bingchan.
Preparing to unpack .../fcitx-table-bingchan_1%3a4.2.9.1-1ubuntu1.16.04.2_all.deb ...
Unpacking fcitx-table-bingchan (1:4.2.9.1-1ubuntu1.16.04.2) ...
Selecting previously unselected package fcitx-table-cangjie.
Preparing to unpack .../fcitx-table-cangjie_1%3a4.2.9.1-1ubuntu1.16.04.2_all.deb ...
Unpacking fcitx-table-cangjie (1:4.2.9.1-1ubuntu1.16.04.2) ...
Selecting previously unselected package fcitx-table-dianbaoma.
Preparing to unpack .../fcitx-table-dianbaoma_1%3a4.2.9.1-1ubuntu1.16.04.2_all.deb ...
Unpacking fcitx-table-dianbaoma (1:4.2.9.1-1ubuntu1.16.04.2) ...
Selecting previously unselected package fcitx-table-erbi.
Preparing to unpack .../fcitx-table-erbi_1%3a4.2.9.1-1ubuntu1.16.04.2_all.deb ...
Unpacking fcitx-table-erbi (1:4.2.9.1-1ubuntu1.16.04.2) ...
Selecting previously unselected package fcitx-table-wanfeng.
Preparing to unpack .../fcitx-table-wanfeng_1%3a4.2.9.1-1ubuntu1.16.04.2_all.deb ...
Unpacking fcitx-table-wanfeng (1:4.2.9.1-1ubuntu1.16.04.2) ...
Selecting previously unselected package fcitx-table-wbpy.
Preparing to unpack .../fcitx-table-wbpy_1%3a4.2.9.1-1ubuntu1.16.04.2_all.deb ...
Unpacking fcitx-table-wbpy (1:4.2.9.1-1ubuntu1.16.04.2) ...
Selecting previously unselected package fcitx-table-wubi.
Preparing to unpack .../fcitx-table-wubi_1%3a4.2.9.1-1ubuntu1.16.04.2_all.deb ...
Unpacking fcitx-table-wubi (1:4.2.9.1-1ubuntu1.16.04.2) ...
Selecting previously unselected package fcitx-table-ziranma.
Preparing to unpack .../fcitx-table-ziranma_1%3a4.2.9.1-1ubuntu1.16.04.2_all.deb ...
Unpacking fcitx-table-ziranma (1:4.2.9.1-1ubuntu1.16.04.2) ...
Processing triggers for doc-base (0.10.7) ...
Processing 2 added doc-base files...
Setting up fcitx-pinyin (1:4.2.9.1-1ubuntu1.16.04.2) ...
Setting up fcitx-table (1:4.2.9.1-1ubuntu1.16.04.2) ...
Setting up fcitx-table-all (1:4.2.9.1-1ubuntu1.16.04.2) ...
Setting up fcitx-table-bingchan (1:4.2.9.1-1ubuntu1.16.04.2) ...
Setting up fcitx-table-cangjie (1:4.2.9.1-1ubuntu1.16.04.2) ...
Setting up fcitx-table-dianbaoma (1:4.2.9.1-1ubuntu1.16.04.2) ...
Setting up fcitx-table-erbi (1:4.2.9.1-1ubuntu1.16.04.2) ...
Setting up fcitx-table-wanfeng (1:4.2.9.1-1ubuntu1.16.04.2) ...
Setting up fcitx-table-wbpy (1:4.2.9.1-1ubuntu1.16.04.2) ...
Setting up fcitx-table-wubi (1:4.2.9.1-1ubuntu1.16.04.2) ...
Setting up fcitx-table-ziranma (1:4.2.9.1-1ubuntu1.16.04.2) ...
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
1 upgraded, 0 newly installed, 0 to remove and 235 not upgraded.
Need to get 23.3 kB of archives.
After this operation, 4,096 B of additional disk space will be used.
Get:1 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 ... 209582 files and directories currently installed.)
Preparing to unpack .../im-config_0.29-1ubuntu12.4_all.deb ...
Unpacking im-config (0.29-1ubuntu12.4) over (0.29-1ubuntu12) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160701-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up im-config (0.29-1ubuntu12.4) ...
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.4.tgz  vmware-tools-distrib
neo4j-community-3.2.0-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 ... 209582 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.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 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.
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160701-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for shared-mime-info (1.5-2ubuntu0.1) ...
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
2 upgraded, 3 newly installed, 0 to remove and 233 not upgraded.
1 not fully installed or removed.
Need to get 689 kB of archives.
After this operation, 9,114 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://cn.archive.ubuntu.com/ubuntu xenial/universe amd64 libopencc1 amd64 0.4.3-2build1 [614 kB]
Get:2 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:3 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:4 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:5 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 689 kB in 4s (146 kB/s)     
Selecting previously unselected package libopencc1:amd64.
(Reading database ... 209876 files and directories currently installed.)
Preparing to unpack .../libopencc1_0.4.3-2build1_amd64.deb ...
Unpacking libopencc1:amd64 (0.4.3-2build1) ...
Preparing to unpack .../libfcitx-utils0_1%3a4.2.9.1-1ubuntu1.16.04.2_amd64.deb ...
Unpacking libfcitx-utils0:amd64 (1:4.2.9.1-1ubuntu1.16.04.2) over (1:4.2.9.1-1ubuntu1) ...
Preparing to unpack .../libfcitx-config4_1%3a4.2.9.1-1ubuntu1.16.04.2_amd64.deb ...
Unpacking libfcitx-config4:amd64 (1:4.2.9.1-1ubuntu1.16.04.2) over (1:4.2.9.1-1ubuntu1) ...
Selecting previously unselected package fcitx-libs.
Preparing to unpack .../fcitx-libs_1%3a4.2.9.1-1ubuntu1.16.04.2_all.deb ...
Unpacking fcitx-libs (1:4.2.9.1-1ubuntu1.16.04.2) ...
Selecting previously unselected package fcitx-libs-qt.
Preparing to unpack .../fcitx-libs-qt_1%3a4.2.9.1-1ubuntu1.16.04.2_all.deb ...
Unpacking fcitx-libs-qt (1:4.2.9.1-1ubuntu1.16.04.2) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Setting up libopencc1:amd64 (0.4.3-2build1) ...
Setting up libfcitx-utils0:amd64 (1:4.2.9.1-1ubuntu1.16.04.2) ...
Setting up libfcitx-config4:amd64 (1:4.2.9.1-1ubuntu1.16.04.2) ...
Setting up fcitx-libs (1:4.2.9.1-1ubuntu1.16.04.2) ...
Setting up fcitx-libs-qt (1:4.2.9.1-1ubuntu1.16.04.2) ...
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里下安装搜狗输入法(图文详解)(亲测好使)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/286328

相关文章

在Ubuntu上部署SpringBoot应用的操作步骤

《在Ubuntu上部署SpringBoot应用的操作步骤》随着云计算和容器化技术的普及,Linux服务器已成为部署Web应用程序的主流平台之一,Java作为一种跨平台的编程语言,具有广泛的应用场景,本... 目录一、部署准备二、安装 Java 环境1. 安装 JDK2. 验证 Java 安装三、安装 mys

Jsoncpp的安装与使用方式

《Jsoncpp的安装与使用方式》JsonCpp是一个用于解析和生成JSON数据的C++库,它支持解析JSON文件或字符串到C++对象,以及将C++对象序列化回JSON格式,安装JsonCpp可以通过... 目录安装jsoncppJsoncpp的使用Value类构造函数检测保存的数据类型提取数据对json数

mac安装redis全过程

《mac安装redis全过程》文章内容主要介绍了如何从官网下载指定版本的Redis,以及如何在自定义目录下安装和启动Redis,还提到了如何修改Redis的密码和配置文件,以及使用RedisInsig... 目录MAC安装Redis安装启动redis 配置redis 常用命令总结mac安装redis官网下

Mysql 中的多表连接和连接类型详解

《Mysql中的多表连接和连接类型详解》这篇文章详细介绍了MySQL中的多表连接及其各种类型,包括内连接、左连接、右连接、全外连接、自连接和交叉连接,通过这些连接方式,可以将分散在不同表中的相关数据... 目录什么是多表连接?1. 内连接(INNER JOIN)2. 左连接(LEFT JOIN 或 LEFT

Java中switch-case结构的使用方法举例详解

《Java中switch-case结构的使用方法举例详解》:本文主要介绍Java中switch-case结构使用的相关资料,switch-case结构是Java中处理多个分支条件的一种有效方式,它... 目录前言一、switch-case结构的基本语法二、使用示例三、注意事项四、总结前言对于Java初学者

Linux内核之内核裁剪详解

《Linux内核之内核裁剪详解》Linux内核裁剪是通过移除不必要的功能和模块,调整配置参数来优化内核,以满足特定需求,裁剪的方法包括使用配置选项、模块化设计和优化配置参数,图形裁剪工具如makeme... 目录简介一、 裁剪的原因二、裁剪的方法三、图形裁剪工具四、操作说明五、make menuconfig

详解Java中的敏感信息处理

《详解Java中的敏感信息处理》平时开发中常常会遇到像用户的手机号、姓名、身份证等敏感信息需要处理,这篇文章主要为大家整理了一些常用的方法,希望对大家有所帮助... 目录前后端传输AES 对称加密RSA 非对称加密混合加密数据库加密MD5 + Salt/SHA + SaltAES 加密平时开发中遇到像用户的

Springboot使用RabbitMQ实现关闭超时订单(示例详解)

《Springboot使用RabbitMQ实现关闭超时订单(示例详解)》介绍了如何在SpringBoot项目中使用RabbitMQ实现订单的延时处理和超时关闭,通过配置RabbitMQ的交换机、队列和... 目录1.maven中引入rabbitmq的依赖:2.application.yml中进行rabbit

C语言线程池的常见实现方式详解

《C语言线程池的常见实现方式详解》本文介绍了如何使用C语言实现一个基本的线程池,线程池的实现包括工作线程、任务队列、任务调度、线程池的初始化、任务添加、销毁等步骤,感兴趣的朋友跟随小编一起看看吧... 目录1. 线程池的基本结构2. 线程池的实现步骤3. 线程池的核心数据结构4. 线程池的详细实现4.1 初

手把手教你idea中创建一个javaweb(webapp)项目详细图文教程

《手把手教你idea中创建一个javaweb(webapp)项目详细图文教程》:本文主要介绍如何使用IntelliJIDEA创建一个Maven项目,并配置Tomcat服务器进行运行,过程包括创建... 1.启动idea2.创建项目模板点击项目-新建项目-选择maven,显示如下页面输入项目名称,选择