首页 > error install sogoupinyin on elementary OS Freya

error install sogoupinyin on elementary OS Freya

I want to install sogoupinyin on elementary OS
I have done the some works so as to be prepared

sudo apt-get remove ibus
sudo add-apt-repository ppa:fcitx-team/nightly
sudo apt-get update
sudo apt-get install fcitx-sogoupinyin # failed, error shows: unable to locate fcitx-sogoupinyin

therefore, I download the package from this URL http://pinyin.sogou.com/linux/
and use dpkg command to install it.

here is the log.

honwhy@honwhy-elementary-freya:~/Downloads$ sudo dpkg -i sogoupinyin_1.2.0.0048_amd64.deb 
(Reading database ... 127719 files and directories currently installed.)
Preparing to unpack sogoupinyin_1.2.0.0048_amd64.deb ...
Unpacking sogoupinyin (1.2.0.0048) over (1.2.0.0048) ...
/var/lib/dpkg/info/sogoupinyin.postrm: 7: local: OS": bad variable name
dpkg: warning: subprocess old post-removal script returned error exit status 2
dpkg: trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/postrm: 7: local: OS": bad variable name
dpkg: error processing archive sogoupinyin_1.2.0.0048_amd64.deb (--install):
 subprocess new post-removal script returned error exit status 2
/var/lib/dpkg/tmp.ci/postrm: 7: local: OS": bad variable name
dpkg: error while cleaning up:
 subprocess new post-removal script returned error exit status 2
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Processing triggers for libglib2.0-0:amd64 (2.42.2-0ubuntu1~14.04~ricotz0) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1+elementary2~ubuntu14.04.1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Errors were encountered while processing:
 sogoupinyin_1.2.0.0048_amd64.deb


题主给的答案也太啰嗦了,半天没看明白重点…
我概括一下那个链接里说的意思:

$ sudo sed -i.bak '3s/ OS/OS/g' /etc/os-release
$ sudo apt-get install sogoupinyin
$ sudo mv /etc/os-release.bak /etc/os-release

I just find the solution:
http://imcn.me/html/y2015/23184.html

【热门文章】
【热门文章】