在 Ubuntu 16.04 上工作了很长时间,效果很好。两周前我买了一台新电脑,直到本周才安装 Ubuntu。我按照 Mullvad 客户端的说明进行操作:
https://mullvad.net/en/guides/installing-mullvad-client-linux/
他们假设 Ubuntu 16.04,所以他们的指南尚未更新。但我完全按照说明操作。我并不是一个伟大的创新者。
客户端安装完成后无法启动。当我打开终端并命令它启动时,什么都没有发生。我收到一堆错误。有什么帮助吗?(错误截图见下方链接)
Using GTK2 Gtk-Message: 11:33:06.240: Failed to load module "canberra-
gtk-module"
changing directory to /usr/lib/python2.7/dist-package/mullvad
Setting logging directory to /home/snarf/.cache/mullvad/log
(mullvad:9312): GLib-GObject-WARNING **: 11:33:06.248: cannot register
existing type 'GdkDisplayManager'
(mullvad:9312): GLib-CRITICAL **: 11:33:06.248: g_once_init_leave:
assertion 'result != 0' failed
(mullvad:9312): GLib-GObject-CRITICAL **: 11:33:06.248:
g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)'
failed
答案1
我尝试了 Ole 的解决方案并收到以下错误:
$ env MULLVAD_USE_GTK3=yes mullvad
Using GTK3
/usr/lib/python2.7/dist-packages/mullvad/mui.py:60: PyGIWarning: AppIndicator3 was imported without specifying a version first. Use gi.require_version('AppIndicator3', '0.1') before import to ensure that the right version gets loaded.
from gi.repository import AppIndicator3 as appindicator
changing directory to /usr/lib/python2.7/dist-packages/mullvad
Setting logging directory to /home/ms/.cache/mullvad/log
(mullvad:15452): Gtk-WARNING **: 22:28:12.209: gtk_disable_setlocale() must be called before gtk_init()
Setting logging directory to /home/ms/.cache/mullvad/log
CRITICAL: An uncaught exception occured: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk3/wx/_core.py", line 16765, in <lambda>
lambda event: event.callable(*event.args, **event.kw) )
File "/usr/lib/python2.7/dist-packages/mullvad/mui.py", line 2088, in _start
_start_gui(app, root_window, log, settings, tunnel)
File "/usr/lib/python2.7/dist-packages/mullvad/mui.py", line 2138, in _start_gui
tray_ui = AppIndicator(root_window, tunnel, settings)
File "/usr/lib/python2.7/dist-packages/mullvad/mui.py", line 295, in __init__
appindicator.CATEGORY_COMMUNICATIONS)
File "/usr/lib/python2.7/dist-packages/gi/module.py", line 137, in __getattr__
self.__name__, name))
AttributeError: 'gi.repository.AppIndicator3' object has no attribute 'CATEGORY_COMMUNICATIONS'
有人遇到过类似的问题/有修复建议吗?
答案2
这也是在其他发行版中发现的一个问题。
首先测试一下:
env MULLVAD_USE_GTK3=yes mullvad
如果可行,只需将 .desktop 文件更改为 mullvad 即可永久修复该问题。
以下是具体方法:
nano /usr/share/applications/mullvad.desktop
Change "Exec=mullvad" to "Exec=env MULLVAD_USE_GTK3=yes mullvad"