错误:找不到 RGB GLX visual 或 fbconfig ubuntu 12.04

rom*_*cas 11 graphics intel-graphics opengl 12.04

我正在使用 Intel HD Graphics 作为显卡,并且我正在尝试打开 OpenGL 程序,但是,当我尝试运行它时,出现以下错误:显示 ':0.0' 不支持 OpenGL GLX 扩展

然后,我尝试运行glxinfo,然后我得到了:

Error: couldn't find RGB GLX visual or fbconfig ubuntu 12.04 error.
Run Code Online (Sandbox Code Playgroud)

我怎样才能解决这个错误不再发生?

rom*_*cas 7

为了解决我的问题,我必须输入以下命令:

sudo apt-get remove --purge xserver-xorg

sudo apt-get install xserver-xorg

sudo dpkg-reconfigure xserver-xorg
Run Code Online (Sandbox Code Playgroud)

进而: sudo reboot

但是我认为如果你在纯文本模式下,你不需要重新启动你的计算机,但是你必须sudo /etc/init.d/gdm stop在输入我上面提到的命令之前做,然后输入之后,你将不得不使用sudo /etc/init.d/gdm start启动图形再次界面。

  • 不,重新安装 `xserver-xorg` 没有帮助。 (5认同)
  • **这是一个有害的答案,遵循此建议的用户往往会杀死他们的桌面。** 他们中的许多人将需要重新安装,因为他们看不到任何其他出路。 (4认同)
  • 清除还删除了“ubuntu-desktop”、“ubuntustudio-desktop”和“xorg”软件包。重启后在这里为@snafu 录制。 (2认同)