我在 Windows 上使用 Ubuntu 和 WSL。将 Ubuntu 更新到最新版本(我相信是 20.04.3 LTS)后,我无法再运行 gnome-session 命令,该命令通常允许我访问 VcXsrv 上的 GUI。当我运行该命令时,它只是返回而不启动 GUI。这种情况以前发生过,但是重新启动 Windows 一次通常可以解决问题。运行gnome-session --debug
返回以下内容:
gnome-session-binary[463]: DEBUG(+): Enabling debugging
gnome-session-binary[463]: GLib-DEBUG(+): posix_spawn avoided (fd close requested)
(gnome-session-check-accelerated:466): Gdk-ERROR **: 18:14:00.423: The program 'gnome-session-check-accelerated' received an X Window System error.
This probably reflects a bug in the program.
The error was 'GLXBadFBConfig'.
(Details: serial 187 error_code 163 request_code 149 (GLX) minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the GDK_SYNCHRONIZE environment
variable to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
gnome-session-binary[463]: DEBUG(+): hardware acceleration check failed: Child process killed by signal 5
gnome-session-binary[463]: GLib-DEBUG(+): setenv()/putenv() are not thread-safe and should not be used after threads are created
gnome-session-binary[463]: GLib-DEBUG(+): posix_spawn avoided (fd close requested)
(gnome-session-check-accelerated:469): Gdk-ERROR **: 18:14:00.608: The program 'gnome-session-check-accelerated' received an X Window System error.
This probably reflects a bug in the program.
The error was 'GLXBadFBConfig'.
(Details: serial 187 error_code 163 request_code 149 (GLX) minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the GDK_SYNCHRONIZE environment
variable to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
gnome-session-binary[463]: WARNING: software acceleration check failed: Child process killed by signal 5
gnome-session-binary[463]: CRITICAL: We failed, but the fail whale is dead. Sorry....
请注意,仅当 VcXsrv 也打开时才会出现这些错误。