问题
某些图形应用程序会在终端中返回此错误并拒绝运行。最近更新和升级后出现此问题
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-generic
窗口管理: dwm
窗口系统显示服务器:x11/xorg
我正在使用 kernals aggpu 驱动程序
的输出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)
此后,我删除了最新版本台面驱动程序的 ppa,因为这没有解决问题。我也删除了,amdgpu-install
因为安装 amd gpu 堆栈也没有解决问题。
当我安装 amd gpu 堆栈时,一些图形应用程序(例如 glxinfo)(但不是我的窗口管理器 dwm)将返回段错误
您仍然拥有来自不同 Mesa 版本的文件的混合,因为“DRI 驱动程序不是来自此 Mesa 版本”告诉您。让我们删除冲突的包。
ppa-purge
通常,您会按照PPA 本身的建议使用:如果这不起作用,我们可以专门针对包含
dpkg -S radeonsi
以下内容的包:删除 PPA 不会删除已安装的软件包,因此您必须单独删除这些软件包。至少有部分
amdgpu-install
与内核驱动有关,而这里的问题是用户空间驱动。Oibaf 回复了我的电子邮件。对于错误报告,请使用错误跟踪器链接而不是电子邮件。