问题

问题

问题

一些图形应用程序会在终端中返回此错误并拒绝运行。此问题出现在最近的更新和升级之后

DRI driver not from this Mesa build ('23.2.1-1ubuntu3.1~22.04.2' vs '24.1~git2403020600.63d2aa~oibaf~j (git-63d2aa4 2024-03-02 jammy-oibaf-ppa)')
failed to load driver: radeonsi
DRI driver not from this Mesa build ('23.2.1-1ubuntu3.1~22.04.2' vs '24.1~git2403020600.63d2aa~oibaf~j (git-63d2aa4 2024-03-02 jammy-oibaf-ppa)')
failed to load driver: radeonsi
DRI driver not from this Mesa build ('23.2.1-1ubuntu3.1~22.04.2' vs '24.1~git2403020600.63d2aa~oibaf~j (git-63d2aa4 2024-03-02 jammy-oibaf-ppa)')
DRI driver not from this Mesa build ('23.2.1-1ubuntu3.1~22.04.2' vs '24.1~git2403020600.63d2aa~oibaf~j (git-63d2aa4 2024-03-02 jammy-oibaf-ppa)')
failed to load driver: radeonsi
DRI driver not from this Mesa build ('23.2.1-1ubuntu3.1~22.04.2' vs '24.1~git2403020600.63d2aa~oibaf~j (git-63d2aa4 2024-03-02 jammy-oibaf-ppa)')
failed to load driver: radeonsi
DRI driver not from this Mesa build ('23.2.1-1ubuntu3.1~22.04.2' vs '24.1~git2403020600.63d2aa~oibaf~j (git-63d2aa4 2024-03-02 jammy-oibaf-ppa)')
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  130
  Current serial number in output stream:  131

核心:5.15.0-92-通用

西医:暗黑

窗口系统显示服务器:x11/xorg

我正在使用内核 amggpu 驱动程序

输出lshw -c video

WARNING: you should run this program as super-user.
  *-display
       description: VGA compatible controller
       product: Picasso/Raven 2 [Radeon Vega Series / Radeon Vega Mobile Series]
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: /dev/fb0
       version: c4
       width: 64 bits
       clock: 33MHz
       capabilities: vga_controller bus_master cap_list rom fb
       configuration: depth=32 driver=amdgpu latency=0 resolution=1920,1080
       resources: irq:42 memory:c0000000-cfffffff memory:d0000000-d01fffff ioport:1000(size=256) memory:d0500000-d057ffff memory:c0000-dffff

输出lspci -k | grep -A 3 -E "(VGA|3D)"

03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Picasso/Raven 2 [Radeon Vega Series / Radeon Vega Mobile Series] (rev c4)
    Subsystem: Lenovo Picasso
    Kernel driver in use: amdgpu
    Kernel modules: amdgpu

输出inxi -G

Graphics:
  Device-1: AMD Picasso/Raven 2 [Radeon Vega Series / Radeon Mobile Series]
    driver: amdgpu v: kernel
  Device-2: Chicony Integrated Camera type: USB driver: uvcvideo
  Display: server: X.Org v: 1.21.1.4 driver: X: loaded: amdgpu gpu: amdgpu
    resolution: 1920x1080~60Hz
  OpenGL: renderer: N/A v: N/A

我假设发生这种情况是因为我没有 OpenGL 渲染器

我尝试过的事情

  • 安装最新稳定版本的 Mesa 驱动程序
  • 使用amd-install命令安装 amd gpu 堆栈
  • 卸载并重新安装 x11、xorg 和 xserver-xorg-video-amdgpu
  • 安装 freeglut3-dev(OpenGL)

我已经删除了最新版本的 mesa 驱动程序的 ppa,因为这并不能解决问题。我还删除了它,amdgpu-install因为安装 amd gpu 堆栈也无法解决问题。

当我安装 amd gpu 堆栈时,一些图形应用程序(如 glxinfo,但不是我的窗口管理器 dwm)会返回段错误

答案1

正如“DRI 驱动程序不是来自此 Mesa 版本”所提示的,您仍然有来自不同 Mesa 版本的文件。让我们删除冲突的软件包。

通常情况下,你会使用ppa-purge作为PPA 本身建议

sudo apt-get install ppa-purge
sudo ppa-purge ppa:oibaf/graphics-drivers

如果这不起作用,我们可以针对dpkg -S radeonsi具体包含以下内容的包:

sudo dpkg --force-all -P libgl1-mesa-dri:i386 libgl1-mesa-dri:amd64 mesa-opencl-icd:amd64
sudo apt install -f

删除 PPA 不会删除已安装的软件包,因此您必须单独删除软件包。至少部分amdgpu-install与内核驱动程序有关,而这里的问题是用户空间驱动程序。

Oibaf 回复了我的电子邮件。对于错误报告,请使用错误跟踪器链接,而不是电子邮件。

关于 ppa-purge 不工作:请确保在清除之前启用 ppa(否则 ppa-purge 不知道要恢复哪些包)。

相关内容