参考了网上的几篇文章,终于在Ubuntu上把搜狗拼音装上了:
第一步:
sudo apt-get remove ibus
sudo apt-get remove scim
sudo apt-get remove fcitx*
sudo apt-get autoremove // 删除依赖包,不再使用的package dpkg --get-selections | grep fcitx //检测是否删除fcitx sudo apt-get -f install // 尝试修正安装过程中出现的依赖性关系
第二步:
sudo add-apt-repository ppa:fcitx-team/nightly //添加fcitx的ppa
sudo apt-get update // 刷新软件源
第三步:
然后安装搜狗输入法
到搜狗网站下载sougoupin安装deb包,
在命令终端中进入下载目录:cd /home/user/Downloads
sudo dpkg -i sogoupinyin_2.0.0.0068_i386.deb
sudo apt-get -f install(修复依赖关系)
注:
(1)使用“sudo apt-get install fcitx-sogoupinyin”安装不成功
(2)下载搜狗deb包直接双击安装也不行
第四步:
然后依次安装下列包(下17个应该是必须的)sudo apt-get install ****
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
第五步:
然后设置为fcitx为默认输入法
sudo apt-get install im-switch
sudo im-switch -s fcitx -z default
注:
(1)可能遇到的问题:
No system wide default defined just for locale en_US . Use "all_ALL" quasi-locale and set IM. update-alternatives: error: alternative /etc/X11/xinit/xinput.d/fcitx for xinput-all_ALL not registered, not setting.
解决方法:
在英文locale下启动Fcitx输入法,需要在/etc/X11/xinit/xinput.d/下新建一个文件en_US,文件内容如下:
sudo vim /etc/X11/xinit/xinput.d/en_US
XMODIFIERS="@im=fcitx" XIM=fcitx XIM_PROGRAM=/usr/bin/fcitx XIM_ARGS="" GTK_IM_MODULE=XIM QT_IM_MODULE=XIM DEPENDS="fcitx"
:wq //退出vim,并保存 ls -l /etc/X11/xinit/xinput.d // 查看输入法启动项,查看有en_US,若有则可(2)也可以在System Settings中的 Language Support中选择?
第六步:
注销或重启。
第七步:
打开fcitx configuration,看到搜狗拼音就成功了。可在其它选项卡中进行热键等的设置。
这个输入法的翻页不是pagedown或pageup,而是加号键跟减号键。
参考文章:
http://www.7edown.com/edu/article/soft_4913_1.html
http://www.lihuoqing.cn/other/1276.html
http://blog.csdn.net/wsscy2004/article/details/25212261