Ubuntu 16.04安装sogou 拼音输入法

安装完Ubuntu 16.04后更换为国内的软件源:

sudogedit /etc/apt/sources.list#用文本编辑器打开源列表

文件开头添加下面的阿里云的软件源:

deb http://mirrors.aliyun.com/ubuntu/ quantal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ quantal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ quantal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ quantal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ quantal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ quantal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ quantal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ quantal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ quantal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ quantal-backports main restricted universe multiverse

更新软件源: sudo apt-get update

更多软件源请自行百度,阿里云的软件源是Ubuntu官方推荐的国内软件源。,清华的软件源也可以。

Ubuntu 键盘输入法系统包含iBusfcitx等多种,因为sogou是基于fcitx的,而系统认的是iBus所以安装使用不同的输入法,相关的也要设置改变。

一、安装sogou输入法步骤:

1、首先到搜狗输入法官网下载搜狗输入法,下载的是个deb文件

搜狗输入法Linux版下载地址http://pinyin.sogou.com/linux/?r=pinyin

2、Ubuntu 16.04安装搜狗输入法命令如下:

sudoapt-get install -f

sudo dpkg -i sogoupinyin_2.0.0.0072_amd64.deb

deb文件名,要和自己下载的版本一致。

3、安装完毕设置语言选项

到系统设置->语言支持System->Language Support,将键盘输入法系统由认的iBus设置为fcitx如下图:

操作此步骤时,如果没有出现选项,说明你的机器还需要安装直接看第二部分的安装

4、注销,重新登陆键盘输入法系统改为后,一定要注销,而且操作顺序不能改。这时还不能马上使用,还要点击右上角的输入法图标,点击设置,进入设置界面,这个时候没有看到搜狗输入法,点击左下角的加号,然后注意先要去掉”只显示当前语言的输入法”前面那个勾,然后再搜索”sogo”,这个时候就看到sogo pinyin了,接着添加就可以了,然后就可以切换输入法了。


注意: 安装搜狗输入法之前请先更换为国内的软件源,否则无法解决依赖问题二、键盘输入法系统

sogou是基于fcitx的,而系统认的键盘输入法系统是iBusUbuntu 16.04认是带有的,正常安装,如果有的话,按上面步骤即可完成;但有些版本的Ubuntu需要自己安装才能安装使用添加以下源

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

更新系统sudo apt-get update

安装fcitx-get installfcitx

安装fcitx的配置工具-config-gtk

5、安装fcitxtable-all软件包:-table-all

6、安装im-switch切换工具im-switch

至此,fcitx键盘输入法系统就安装好了。56步需要按键“Y”确认安装。简单测试的方法就是在终端键入“”,有各种提示就对了。

安装完后,再安装即可。

相关文章

目录前言一、创建Hadoop用户二、更新apt和安装Vim编辑器三、...
原文连接:https://www.cnblogs.com/yasmi/p/5192694.html ...
电脑重启后,打开VirtualBox,发现一直用的虚拟机莫名的消失...
参见:https://blog.csdn.net/weixin_38883338/article/deta...
Ubuntu 18.04 LTS 已切换到 Netplan 来配置网络接口。Netpla...
介绍每个 Web 服务都可以通过特定的 URL 在 Internet 上访问...