我最近重新安装了 Ubuntu 12.04。主要想法是不打扰 /home 上的文件,我成功地仅在 / 分区上重新安装了 Ubuntu。
当我回来时,我发现一切都正常,但 ubuntu-tweak 不行。我发现很多建议,例如重新安装“compiz”或添加旧存储库,但都不起作用。
当我在终端中启动 ubuntu-tweak 时,我收到了一长串我不太理解的代码。我觉得它说了很重要的事情,但我就是读不懂。
我非常喜欢 ubuntu-tweak 软件并且希望它能够像系统交换之前一样启动并运行。
这就是我的问题:
fahrenheit@fahrenheit-1225C:~$ ubuntu-tweak
(ubuntu-tweak:3173): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Traceback (most recent call last):
File "/usr/bin/ubuntu-tweak", line 122, in <module>
from ubuntutweak.main import UbuntuTweakWindow
File "/usr/lib/python2.7/dist-packages/ubuntutweak/main.py", line 40, in <module>
from ubuntutweak.preferences import PreferencesDialog
File "/usr/lib/python2.7/dist-packages/ubuntutweak/preferences.py", line 32, in <module>
from ubuntutweak.factory import WidgetFactory
File "/usr/lib/python2.7/dist-packages/ubuntutweak/factory.py", line 24, in <module>
from ubuntutweak.gui.widgets import *
File "/usr/lib/python2.7/dist-packages/ubuntutweak/gui/widgets.py", line 10, in <module>
from ubuntutweak.settings.compizsettings import CompizSetting
File "/usr/lib/python2.7/dist-packages/ubuntutweak/settings/compizsettings.py", line 3, in <module>
import ccm
File "/usr/lib/python2.7/dist-packages/ubuntutweak/settings/ccm/__init__.py", line 1, in <module>
from Conflicts import *
File "/usr/lib/python2.7/dist-packages/ubuntutweak/settings/ccm/Conflicts.py", line 25, in <module>
from Constants import *
File "/usr/lib/python2.7/dist-packages/ubuntutweak/settings/ccm/Constants.py", line 77, 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
答案1
第一的:
sudo apt-get purge locales
然后:
sudo aptitude install locales
以及著名的:
sudo dpkg-reconfigure locales
这将删除系统中的语言环境,然后重新安装语言环境并将 libc6 从 2.19 降级到 2.13(这是问题所在)。然后再次配置语言环境。