已安装 Ubuntu 18.10、python3.7.1、GNOME Tweaks 等。
安装 python3.7.1 的源代码版本是否会导致此问题?如何调试?
我尝试了多种方法来修复 gnome-shell 问题,但都无济于事。从 google-chrome 扩展插件中:我看到:
无法找到 GNOME Shell 设置或版本。请确保它已安装并正在运行。
如果我尝试:
/usr/bin/python3 /usr/bin/gnome-shell
我懂了:
File "/usr/bin/gnome-shell", line 1
SyntaxError: Non-ASCII character '\xfc' in file /usr/bin/gnome-shell on line 2, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
尝试启动‘GNOME Tweaks’失败:
sudo /usr/bin/gnome-tweaks
(gnome-tweaks:25453): GLib-GIO-CRITICAL **: 15:29:44.666: g_dbus_proxy_new_sync: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
WARNING : Shell not installed or running
WARNING : Error detecting shell
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gtweak/tweaks/tweak_group_shell_extensions.py", line 217, in __init__
raise Exception("Shell not running or DBus service not available")
...
和:
sudo /usr/bin/gnome-tweaks
给出:
(gnome-tweaks:25453): GLib-GIO-CRITICAL **: 15:29:44.666: g_dbus_proxy_new_sync: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
WARNING : Shell not installed or running
WARNING : Error detecting shell
Traceback .....
清除并重新安装 gnome-shell 和 'GNOME Tweaks' 也无济于事。而且
sudo apt-get install ubuntu-gnome-desktop
没有帮助。
我也尝试过:
sudo gnome-shell --replace
这导致显示屏闪烁,但也没有帮助。
有什么想法吗?