具体的方法可以参考:http://www.cnblogs.com/zhj5chengfeng/archive/2013/06/23/3150620.html
下面是安装时遇到的两个问题:
1、
命令:
sudo apt-get install ibus-googlepinyin
问题:
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
解决:
[email protected]:work$ sudo rm /var/cache/apt/archives/lock
[email protected]:work$ sudo rm /var/lib/dpkg/lock
============================================================
2、
命令:
ibus-setup
问题:
(process:2553): Gtk-WARNING **: Locale not supported by C library.
Using the fallback ‘C‘ locale.
Traceback (most recent call last):
File "/usr/share/ibus/setup/main.py", line 582, in <module>
locale.setlocale(locale.LC_ALL, ‘‘)
File "/usr/lib/python2.7/locale.py", line 539, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
解决:
sudo locale-gen