我使用 gnome 桌面环境,每当我尝试打开 gnome 控制中心时,都会出现一条错误消息:
[INFO 18:21:22.277197] Application.vala:153: System Settings version: 2.0
[INFO 18:21:22.277282] Application.vala:155: Kernel version: 4.10.0-30-generic
[FATAL 18:21:22.327817] [GLib] g_utf8_collate: assertion 'str1 != NULL' failed
[FATAL 18:21:22.328979] [GLib] g_utf8_collate: assertion 'str1 != NULL' failed
[FATAL 18:21:22.329407] [GLib] g_utf8_collate: assertion 'str1 != NULL' failed
[FATAL 18:21:22.330073] [GLib] g_utf8_collate: assertion 'str1 != NULL' failed
[FATAL 18:21:22.330846] [GLib] g_utf8_collate: assertion 'str1 != NULL' failed
[FATAL 18:21:22.331477] [GLib] g_utf8_collate: assertion 'str1 != NULL' failed
[ERROR 18:21:22.460428] [GLib-GIO] Settings schema 'org.pantheon.desktop.gala.animations' is not installed
/usr/bin/gnome-control-center: line 20: 9675 Trace/breakpoint trap (core dumped) switchboard $switchboard_options $requested_plug
我尝试重新安装 gnome 控制中心,但没有成功。我该如何解决这个问题?非常感谢您的回答。
更新:这是来自命令的消息cat /etc/default/locale
# File generated by update-locale
LANG="en_US.UTF-8"
LC_NUMERIC="sv_SE.UTF-8"
LC_TIME="sv_SE.UTF-8"
LC_MONETARY="sv_SE.UTF-8"
LC_PAPER="sv_SE.UTF-8"
LC_NAME="sv_SE.UTF-8"
LC_ADDRESS="sv_SE.UTF-8"
LC_TELEPHONE="sv_SE.UTF-8"
LC_MEASUREMENT="sv_SE.UTF-8"
LC_IDENTIFICATION="sv_SE.UTF-8"
答案1
您可能安装了部分或全部的 enlightenment 桌面。不保证,但请尝试以下操作:
警告:这可能会破坏您的系统。
sudo apt purge enlightenment-desktop
sudo apt autoremove
sudo apt purge gnome-control-center
sudo apt install ubuntu-gnome-desktop
# and maybe
sudo apt install gnome-control-center
..这就是对我有用的要点。使用时请自担风险。