当我ssh -X
从 Mac OSX 电脑进入 Ubuntu 18.04 桌面时,我可以进入。然而,当我尝试运行 Firefox 或 rstudio 时,我得到了
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
其次是
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (8 8 8 8)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 8 8 8)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 8 8)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 1 8)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 1 8)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 1 8)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 1 8)
QQuickWidget: Failed to make context current
QQuickWidget::resizeEvent() no OpenGL context
QQuickWidget: Failed to make context current
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (8 8 8 8)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 8 8 8)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 8 8)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 1 8)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 1 8)
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
Could not link shader program:
我知道 Mac 上的 XQuartz 存在问题(我在 Catalina 上),但这些问题是在我的 Ubuntu 桌面上还是在 Mac 上?我有 Nvidia 430 驱动程序,我再次安装了它们,但上述错误仍然出现。任何帮助都非常感谢。谢谢!
答案1
使用 gnuplot 时我遇到了同样的错误。重置环境变量对我有用:
$ export LIBGL_ALWAYS_INDIRECT=1