The specific method can be consulted: http://www.cnblogs.com/zhj5chengfeng/archive/2013/06/23/3150620.html
The following are two issues that are encountered during installation:
1.
Command:
sudo apt-get install Ibus-googlepinyin
Problem:
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?
Solve:
[Email protected]:work$ sudo rm/var/cache/apt/archives/lock
[Email protected]:work$ sudo rm/var/lib/dpkg/lock
============================================================
2.
Command:
Ibus-setup
Problem:
(process:2553): gtk-warning * *: Locale not supported by C library.
Using the fallback ' C ' locale.
Traceback (most recent):
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
Solve:
sudo locale-gen
Use Ibus-setup to install Chinese input method in Ubunte