1.去搜狗官方网站下载
2.终端使用dpkg命令安装:sudo dpkg -i *******.deb (**deb文件的完整路径)
我的命令如下:
中途应该会报错,那是必须的,因为搜狗输入法是基于fcitx的,但是ubuntu默认使用的iBus,所以缺少fcitx包的依赖,第3步就是解决依赖。
3.上面那一步出的问题,要用这一步来解决,搜索并补全依赖关系。使用命令 sudo apt-get install -f
如果你的提示是这样的:
可以看到它是要通过删除掉”sogoupinyin“来排除依赖错误,这是因为你没有更新apt源的关系,如果没有更新,就是用sudo apt-get update更新一下,当然建议换一个中国本地的源,关于换源,点击这里
如果你显示的是这样的提示信息:
这样就是没问题的,它找到了相关的以来,安装 fcitx。输入”y“,等着就可以了。
4.将系统默认输入方法改成fcitx。
依次:“System Setting”--"Language Support" 如下图:
将“Keyboard input method system”改成“fcitx”就好了。
Log Out一下就好了。
注销完成后如果不能用,你就重启一下或者继续往下看:
我注销完了还是不能用搜狗输入法,看了看fctix配置没有,发现没有搜狗输入法:
点一下那个键盘看看吧,如果没有搜狗那个大大的logo就是还没有添加进fctix里面去,单机这个键盘,点击“配置”
点击左下角的“+”号。
把那个“Only Show Current Language”去掉然后搜索sogou就好了。(我用的英文版的系统,所以得去掉,使用中文版的应该就没事了),选上“sogou”,完了点“OK”。就好了。
这时应该可以能用了,默认的中英文切换像windows一样,Ctrl+Space。如果搜狗还不出来,那你就再Log out一下。。。还不出来你重启吧。。。。
本来想先移除ibus,但是在之后发现如果直接使用下面的命令
sudo apt-get remove ibus
移除ibus将导致系统某些地方不正常的问题,例如系统设置项缺失.
所以保留ibus吧.
然后如果系统中未安装依赖fcitx,libssh2-1,或者依赖fcitx,libssh2-1的版本低的话,则需提前安装或者升级,否则安装输入法时会出错
安装命令
sudo apt-get install fcitx libssh2-1
查看是否安装了这些依赖
搜索命令
dpkg -l | grep fcitx
dpkg -l | grep libssh
接下来我们从搜狗官方下载deb包
下载地址在 http://pinyin.sogou.com/linux/ 根据你的系统选择32位或者64位
也可直接使用命令:
下载32位
wget "http://pinyin.sogou.com/linux/download.php?f=linux&bit=32" -O "sougou_32.deb"
下载64位
wget "http://pinyin.sogou.com/linux/download.php?f=linux&bit=64" -O "sougou_64.deb"
安装下载好的安装包命令
sudo dpkg -i sougou_64.deb
这里的sougou_64.deb是上一步下载的安装包文件名,根据你自己上一步的文件名来进行安装。
接下来设置系统的输入法,通过
系统设置>语言支持>键盘输入方式系统
然后选择 fcitx 项
最后注销系统并重新登陆,在屏幕右上角就能看见输入法了,然后选择搜狗拼音就可使用并输入了。
1. 下载:
打开该地址:http://packages.linuxdeepin.com/deepin/pool/main/f/ ,从各种目录下查找如下软件(64位系统下载i386对应的amd64的deb的包),目录的名字和软件名是一样的,打开目录后搜索“2013“,很多软件都是这两天刚刚升级的:
1 fcitx_4.2.6.1-2deepin2_all.deb
2 fcitx-bin_4.2.6.1-2deepin2_i386.deb
3 fcitx-data_4.2.6.1-2deepin2_all.deb
4 fcitx-frontend-all_4.2.6.1-2deepin2_all.deb
5 fcitx-frontend-gtk2_4.2.6.1-2deepin2_i386.deb
6 fcitx-frontend-gtk3_4.2.6.1-2deepin2_i386.deb
7 fcitx-frontend-qt4_4.2.6.1-2deepin2_i386.deb
8 fcitx-libs_4.2.6.1-2deepin2_i386.deb
9 fcitx-module-dbus_4.2.6.1-2deepin2_i386.deb
10 fcitx-modules_4.2.6.1-2deepin2_i386.deb
11 fcitx-module-x11_4.2.6.1-2deepin2_i386.deb
12 fcitx-pinyin_4.2.6.1-2deepin2_i386.deb
13 fcitx-skin-sogou_0.0.2_all.deb
14 fcitx-sogoupinyin_0.0.0-2_i386.deb
15 fcitx-table_4.2.6.1-2deepin2_i386.deb
16 fcitx-table-all_4.2.6.1-2deepin2_all.deb
17 fcitx-table-wubi_4.2.6.1-2deepin2_i386.deb
18 fcitx-tools_4.2.6.1-2deepin2_i386.deb
19 fcitx-ui-classic_4.2.6.1-2deepin2_i386.deb
20 gir1.2-fcitx-1.0_4.2.6.1-2deepin2_i386.deb
2. 卸载所有的fcitx输入法的包,因为使用ubuntu自带的fcitx,下载安装sougou输入法的包是行不通的(至少我没成功),皮肤可以选择安装或者不安装。使用终端输入
sudo dpkg --get-selections | grep fcitx
可以查看你的软件是否已经卸载了,如果你没有安装这步就不需要了,当然你最好执行下命令检验下。
3. 在第一步下载的软件目录中执行如下命令安装下载的包:
sudo dpkg -i *.deb
上面列出了20个包,但是如下17个应该是必须的:
fcitx
fcitx-bin
fcitx-config-common
fcitx-config-gtk
fcitx-data
fcitx-frontend-gtk2
fcitx-frontend-gtk3
fcitx-frontend-qt4
fcitx-googlepinyin
fcitx-libs
fcitx-module-dbus
fcitx-module-x11
fcitx-modules
fcitx-pinyin
fcitx-table
fcitx-table-wubi
fcitx-ui-classic
4. 最后安装一个配置工具:
sudo apt-get install fcitx-config-gtk
5. 打开语言支持和输入法切换,将输入法设置成fcitx,注销。
对于其他的发行版,基于ubuntu发行版的系统如linuxmint系统,采用如上方式。
其他发行版如Fedora,将deb下载完毕后,用归档管理器打开(ubuntu等系统的归档管理器,其他发行版可能无法打开),将包里面的usr文件放到指定目录即可。(deb的文件组织方式和linux系统的方式是一样的。)