首要得卸载Ubuntu默认的ibus输入法:
sudo apt-get remove ibus
然后添加fcitx的nightlyPPA(软件源):
sudo add-apt-repository ppa:fcitx-team/nightly
sudo apt-get update
安装fcitx以及搜狗输入法,并设置fcitx为默认。
sudo apt-get install fcitx fcitx-con