Gtk-警告**:C 库不支持语言环境

Gtk-警告**:C 库不支持语言环境

我正在运行全新安装的 Ubuntu 10.10。
我刚刚安装了 Banshee,但它无法运行并显示以下内容:

(Banshee:1765): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Exception has been thrown by the target of an invocation.

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.     ---> System.InvalidOperationException: Could not read add-in description
at Mono.Addins.Addin.get_Description () [0x00000] in <filename unknown>:0 
at Mono.Addins.AddinSessionService.CheckHostAssembly (System.Reflection.Assembly asm) [0x00000] in <filename unknown>:0 
at Mono.Addins.AddinSessionService.ActivateRoots () [0x00000] in <filename unknown>:0 
at Mono.Addins.AddinSessionService.Initialize () [0x00000] in <filename unknown>:0 
at Mono.Addins.AddinManager.Initialize (System.String configDir) [0x00000] in <filename unknown>:0 
at Banshee.ServiceStack.ServiceManager.InitializeAddins () [0x00000] in <filename unknown>:0 
at Banshee.ServiceStack.ServiceManager.DefaultInitialize () [0x00000] in <filename unknown>:0 
at Banshee.ServiceStack.Application.Initialize () [0x00000] in <filename unknown>:0 
at Banshee.Gui.GtkBaseClient.Initialize (Boolean registerCommonServices) [0x00000] in <filename unknown>:0 
at Banshee.Gui.GtkBaseClient..ctor (Boolean initializeDefault, System.String defaultIconName) [0x00000] in <filename unknown>:0 
at Banshee.Gui.GtkBaseClient..ctor () [0x00000] in <filename unknown>:0 
at Nereid.Client..ctor () [0x00000] in <filename unknown>:0 
at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (object,object[],System.Exception&)
at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
--- End of inner exception stack trace ---
at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x00000] in <filename unknown>:0 
at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00000] in <filename unknown>:0 
at System.Activator.CreateInstance (System.Type type) [0x00000] in <filename unknown>:0 
at Banshee.Gui.GtkBaseClient.Startup () [0x00000] in <filename unknown>:0 
at Hyena.Gui.CleanRoomStartup.Startup (Hyena.Gui.StartupInvocationHandler startup) [0x00000] in <filename unknown>:0

运行 Devede 会抛出类似的问题:

(process:2125): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
DeVeDe 3.16.9
Locale: en_US
Using package-installed files
Traceback (most recent call last):
  File "/usr/bin/devede", line 138, in <module>
    locale.setlocale(locale.LC_ALL,"")
  File "/usr/lib/python2.6/locale.py", line 513, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

另外,可能相关的是:在 nautilus 中,按名称排序区分大小写。
这意味着所有以大写字母开头的文件/文件夹都出现在所有以小写字母开头的文件/文件夹之前。
我发现此主题关于同样的问题,但解决方案并不适用于我,因为该行export LC_COLLATE="C"没有出现在我的/etc/profile

答案1

尝试sudo dpkg-reconfigure locales

相关内容