Monday, August 17, 2015

Sougou Pinyin v.1.2.0 on Ubuntu 14.04 (Trusty Tahr)

Sogou Pinyin, under its Linux help page suggests that all you need to do for 14.04 is just download the .deb file, double-click it, and install it via the Software Center.

Figure 1: Installation instructions for Ubuntu 14.04 LTS.

But there are some posts hereherehere of people having trouble getting Sougou Pinyin to install properly that way.

For a lot of people the fix seems to be to remove the daily build or nightly build ppa, remove fcitx, and re-install fcitx via Ubuntu's standard repositories (see the links above).  People tend to be getting this famous "Invalid Entry: line 150 missing '='" error.

Under my fresh installation of Ubuntu 14.04 LTS, the above solutions didn't work.  Instead, in order to get Sougou Pinyin working I had to do quite the opposite.  I had to do the following steps:
  1. Remove the fcitx which came from Ubuntu's standard repositories.
  2. Install the nightly build ppa (sudo apt-add-repository ppa:fcitx-team/nightly)
  3. apt-get update.
  4. Install fcitx again (this time it will come from the nightly build repository).
  5. From the command line: sudo dpkg -i sogoupinyin_1.2.0.0056_amd64.deb
  6. Add the following 4 lines to your ~/.xprofile (I had to create one, because one didn't exist):export XMODIFIERS=@im=fcitxexport
  7. Then finally reboot, and everything is working!
Figure 2: Sogou Pinyin in action on Ubuntu 14.04.


fcitx version:
kernel version: 3.16.0-45-generic
sougou pinyin version: sogoupinyin_1.2.0.0056_amd64