安装 AMD GPU 驱动程序时出错 | amdgpu-lib32 依赖关系未满足 | 尝试设置 ROCm

安装 AMD GPU 驱动程序时出错 | amdgpu-lib32 依赖关系未满足 | 尝试设置 ROCm

我正在使用 Linux Kernel 6.2.0-23-generic、Ubuntu 23.04 和 AMD Radeon RX 7900 XT(不是 XTX!)。

我的电脑上插着 3 台显示器,其中 2 台通过 Display Port 转 HDMI 转换器连接,1 台直接插入 GPU 上的 HDMI 端口。使用 DP-HDMI 转换器的两台显示器无法再打开。我最初尝试为 TensorFlow 设置 ROCm,并按照安装过程进行操作AMD 官方文档,当我被要求重新启动 PC 时,只有一个显示器打开,我无法修复它。研究建议简单地卸载并重新安装所有驱动程序,但现在我遇到了以下问题:

mentrix@mentrix:~/Downloads$ sudo apt-get install ./amdgpu-install_5.4.50406-1_all.deb 
[...]
N: Download is performed unsandboxed as root as file '/home/mentrix/Downloads/amdgpu-install_5.4.50406-1_all.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

其次是:

mentrix@mentrix:~/Downloads$ amdgpu-install -y --accept-eula
[...]
linux-headers-6.2.0-23-generic is already the newest version (6.2.0-23.23).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 amdgpu-lib32 : Depends: libdrm2-amdgpu:i386 but it is not installable
                Depends: libdrm-amdgpu-amdgpu1:i386 but it is not installable
                Depends: libllvm-amdgpu:i386 but it is not installable
                Depends: libwayland-amdgpu-client0:i386 but it is not installable or
                         libwayland-client0:i386 but it is not installable
                Depends: libwayland-amdgpu-server0:i386 but it is not installable or
                         libwayland-server0:i386 but it is not installable
                Depends: libwayland-amdgpu-egl1:i386 but it is not installable or
                         libwayland-egl1:i386 but it is not installable
                Depends: libxatracker2-amdgpu:i386 but it is not installable
                Depends: libgbm1-amdgpu:i386 but it is not installable
                Depends: libegl1-amdgpu-mesa:i386 but it is not installable
                Depends: libegl1-amdgpu-mesa-drivers:i386 but it is not installable
                Depends: libglapi-amdgpu-mesa:i386 but it is not installable
                Depends: libgl1-amdgpu-mesa-glx:i386 but it is not installable
                Depends: libgl1-amdgpu-mesa-dri:i386 but it is not installable
                Depends: mesa-amdgpu-va-drivers:i386 but it is not installable
                Depends: mesa-amdgpu-vdpau-drivers:i386 but it is not installable
E: Unable to correct problems, you have held broken packages.
[...]
Reading package lists... Done

据我所知,我需要安装 amdgpu-lib32,但依赖项不可用。当我第一次在 Ubuntu 23.04 上设置我的 PC 时,我已经设置过一次了,操作与我现在完全相同,一切正常。现在,由于某种原因,它不起作用,我不知道该怎么办了。

我已经尝试设置我的 PC 以将 GPU 与 TensorFlow 结合使用 8 周了,我已经忘记了一路上所有的紧张情绪。如果这里有人能帮助我正确设置它,那就太好了。我只希望我的 GPU 再次将图像输出到我的 3 个显示器并使用 ROCm 显示在 TensorFlow 中。

非常感谢您的帮助!谢谢!<3

相关内容