其實啊,很簡單mongodb
分三步走ubuntu
一、添加fcitx的鍵盤輸入法系統,由於sogou是基於fcitx的,而系統默認的是iBus;fetch
二、安裝sogou輸入法;.net
三、設置系統參數及一些注意點。server
zhouls@zhouls-virtual-machine:~$ sudo -s [sudo] password for zhouls: root@zhouls-virtual-machine:~# cat /etc/issue Ubuntu 16.04.1 LTS \n \l root@zhouls-virtual-machine:~#
第一步、添加fcitx鍵盤輸入法系統ci
①先添加如下源get
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: 1 gpg: imported: 1 (RSA: 1) OK root@zhouls-virtual-machine:~#
②添加源以後須要更新一下系統input
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 Packages 404 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:~#
(3)開始安裝fcitxit
發現又有錯誤提示,可是告訴我們嘗試一下「apt-get -f install」io
而後咱們再試一下sudo apt-get install fcitx
很好 成功
好,完成後咱們繼續安裝搜狗輸入法
到這步基本就成功啦,暫時不用管這個報錯
而後在設置中---language Support 裏面點擊Install/Remove langueges
選擇Chinese,而後安裝
而後在設置中---language Support 裏面選擇Keyboard input method system ,後面的框裏面選擇fcitx
這就該重啓電腦了,
重啓以後
點擊右上角鍵盤,新選擇設置
這個時候沒有看到搜狗輸入法,點擊左下角的加號,而後注意先要去掉」只顯示當前語言的輸入法」前面那個勾,而後再搜索」sogo」,這個時候就看到sogo pinyin了,接着添加就能夠了,而後就能夠切換輸入法了。
這就能用啦