1、添加apt repository:
add-apt-repository ppa:fcitx-team/nightly
2、安装fcitx:
apt-get install fcitx
OK!!
----------------------------------------------------分割线,下面为正解----------------------------------------------------------------
上面只能实现在ubuntu中输入中文,在sublime中还是不行,可能是因为安装的fcitx版本不对,正确的做法是,到Ubuntu Software Center 安装Fcitx,虽然使用起来不是很方便,但总算是可以在sublime中输入中文了。