码迷,mamicode.com
首页 > 其他好文 > 详细

ubunte中用ibus-setup安装中文输入法

时间:2015-06-10 08:57:17      阅读:197      评论:0      收藏:0      [点我收藏+]

标签:ubuntu   中文输入法安装   

具体的方法可以参考: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?


解决:

yzh@yzh:work$ sudo rm /var/cache/apt/archives/lock
yzh@yzh: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


ubunte中用ibus-setup安装中文输入法

标签:ubuntu   中文输入法安装   

原文地址:http://blog.csdn.net/yuzhihui_no1/article/details/46433233

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!