我正在运行 Ubuntu 16.04.1(VM),当使用 X11 转发时启动谷歌浏览器时收到以下错误(注意:谷歌浏览器最终会启动,但我仍然想修复这个错误):
[4244:4244:1221/093216:ERROR:gl_surface_glx.cc(411)] GLX 1.3 or later is required.
[4244:4244:1221/093216:ERROR:gl_initializer_x11.cc(130)] GLSurfaceGLX::InitializeOneOff failed.
[4244:4244:1221/093216:ERROR:gpu_child_thread.cc(328)] Exiting GPU process due to errors during initialization
我尝试安装此 ppa 提供的最新 mesa 软件包,但仍然没有成功。有人有什么想法吗?
sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
GLX 仍在报告 1.2 版本
我不是很熟悉 mesa 库以及它们的工作原理,但据我所知我正在运行最新的库:
cj@ubuntu:/lib/modules$ dpkg -l | grep mesa
ii libegl1-mesa:amd64 13.0.1+git20161127+13.0.f7b58a37-0ubuntu0ricotz~xenial amd64 free implementation of the EGL API -- runtime
ii libgl1-mesa-dri:amd64 13.0.1+git20161127+13.0.f7b58a37-0ubuntu0ricotz~xenial amd64 free implementation of the OpenGL API -- DRI modules
ii libgl1-mesa-glx:amd64 13.0.1+git20161127+13.0.f7b58a37-0ubuntu0ricotz~xenial amd64 free implementation of the OpenGL API -- GLX runtime
ii libglapi-mesa:amd64 13.0.1+git20161127+13.0.f7b58a37-0ubuntu0ricotz~xenial amd64 free implementation of the GL API -- shared library
ii libglu1-mesa:amd64 9.0.0-2.1 amd64 Mesa OpenGL utility library (GLU)
ii libwayland-egl1-mesa:amd64 13.0.1+git20161127+13.0.f7b58a37-0ubuntu0ricotz~xenial amd64 implementation of the Wayland EGL platform -- runtime
ii mesa-utils 8.3.0-1 amd64 Miscellaneous Mesa GL utilities
任何帮助将不胜感激!
谢谢!
答案1
$ sudo ppa-purge xorg-edgers
...
$ sudo -E add-apt-repository ppa:xorg-edgers/ppa
...
$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
libvulkan-dev libvulkan1
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1,558 kB of archives.
After this operation, 5,443 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 208248 files and directories currently installed.)
Preparing to unpack .../libvulkan-dev_1.1.73+dfsg-1~gpu18.04.1_amd64.deb ...
Unpacking libvulkan-dev:amd64 (1.1.73+dfsg-1~gpu18.04.1) over (1.1.70+dfsg1-1) ...
Preparing to unpack .../libvulkan1_1.1.73+dfsg-1~gpu18.04.1_amd64.deb ...
Unpacking libvulkan1:amd64 (1.1.73+dfsg-1~gpu18.04.1) over (1.1.70+dfsg1-1) ...
Setting up libvulkan1:amd64 (1.1.73+dfsg-1~gpu18.04.1) ...
Setting up libvulkan-dev:amd64 (1.1.73+dfsg-1~gpu18.04.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
升级工作正常,但仍处于 1.2 版本(OpenGL 版本字符串:3.1 Mesa 19.0.8)
$ sudo glxinfo | grep "GLX version"
GLX version: 1.2
答案2
您sudo apt-get update
实际上并没有安装任何东西。之后,您可能需要运行sudo apt-get upgrade
以实际更新 PPA 具有不同版本的软件包。