[Tip]使用fcitx的ppa源安装新版本fcitx
Tofloor
poster avatar
zodiacg
deepin
2013-01-23 06:04
Author
最近在用Sublime Text 2,众所周知这货调不出输入法。有说法声称fcitx的最新版本解决了这个问题,于是我就跑去想办法装最新的fcitx。
fcitx团队维护了几个ppa源,包含了最新版的fcitx软件包。只要输入以下命令即可:
  1. sudo add-apt-repository ppa:fcitx-team/nightly
  2. sudo apt-get update
  3. sudo apt-get install fcitx #或upgrade亦可,会连带其它的模块包一同升级
Copy the Code
但是在Deepin下会产生一个问题:apt-get install fcitx会提示版本已最新,upgrade也只提示opencc等少数几个包需要升级。

这是因为Deepin为了保证转为deepin定制的包能够盖过Ubuntu官方源的包,对源的优先级默认做了设置。配置文件为/etc/apt/preferences:
  1. Package: *
  2. Pin: release o=Linux Deepin
  3. Pin-Priority: 999
  4. Package: *
  5. Pin: release o=Ubuntu
  6. Pin-Priority: 400
Copy the Code
只要将Linux Deepin的优先级(Pin-Priority)改为500或略高于Ubuntu源即可。(未配置的源的优先级貌似是500)这样fcitx-team的源中的fcitx软件包就会出现在升级提示里了。此时再upgrade就有了。

另外如果直接进行upgrade升级fcitx相关的多个软件包的话,会有冲突/损坏提示的可能性。以我为例,安装Deepin后又安装了fcitx-module-cloudpinyin,在升级时就会提示和fcitx-modules有覆盖等差错。
按提示卸载掉fcitx-module-cloudpinyin,然后再升级fcitx-modules,再重新安装fcitx-modules即可。

安装完成后直接在终端运行fcitx -rd即可重启fcitx。

顺便一提,貌似fcitx4.2.6版本依然是不能在Sublime Text 2里调出的……
Reply Favorite View the author
All Replies
woodelf
deepin
2013-01-23 06:10
#1
你确定是2.6版本?我这里可是4.2.6-r2了。
Reply View the author
zodiacg
deepin
2013-01-23 06:25
#2
你确定是2.6版本?我这里可是4.2.6-r2了。
说错了……4.2.6

话说回来,fcitx自己的github里的fcitx-rime要求的fcitx是4.2.7,我可劲儿的找也没找着……
Reply View the author