我正在尝试在 Windows10/WSL2/Ubuntu 20.04 上安装 inkscape,但遇到了以下错误。我尝试过“apt purge”和“apt install”,但都无济于事。我在网上找不到太多信息,所以我怀疑我做错了什么,但我不知道是什么。
Unable to init server: Could not connect: Connection refused
(inkscape:5803): Gtk-CRITICAL **: 08:32:13.299: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(inkscape:5803): Gtk-CRITICAL **: 08:32:13.299: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(inkscape:5803): Gtk-CRITICAL **: 08:32:13.299: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at https://inkscape.org/report
with a detailed description of the steps leading to the crash, so we can fix it.
** Message: 08:32:13.299: Error: Inkscape encountered an internal error and will close now.
Segmentation fault
进展。我对 wsl2 上这种类型的程序几乎没有经验,似乎我需要一个服务器程序来查看输出。我正在按照这些说明在 Windows 中安装 XLaunch,但尚未弄清楚如何将 Inkscape 连接到此终端窗口。当我输入
xhost +localhost
我明白了
xhost: unable to open display "0:0"