Aar*_*ard 11 apt dependencies amdgpu 22.04
我有一台配备 AMD Radeon Vega 卡的 ryzen 电脑,运行 ubuntu 22.04LTS,并且我正在尝试安装 amdgpu-install_22.10.2.50102-1_all 驱动程序,以便我可以使用 Blender 3.2 并获得 HIP 支持。然而,我过得很糟糕,我所有的努力都白费了。
当我运行命令时amdgpu-install -y --opencl=rocr
我得到以下输出:
linux-headers-5.15.0-40-generic is already the newest version (5.15.0-40.43).
linux-headers-5.15.0-40-generic set to manually installed.
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:
apt : Depends: libapt-pkg6.0 (>= 2.4.5) but it is not going to be installed
grub-efi-amd64-signed : Depends: grub-efi-amd64-bin (= 2.06-2ubuntu7)
Depends: grub-efi-amd64 or
grub-pc but it is not going to be installed
init : PreDepends: systemd-sysv
libegl1-amdgpu-mesa : Depends: libudev1 but it is not installable or
libudev0 but it is not going to be installed
libegl1-amdgpu-mesa-drivers : Depends: libudev1 but it is not installable or
libudev0 but it is not going to be installed
libgbm1-amdgpu : Depends: libudev1 but it is not installable or
libudev0 but it is not going to be installed
libgl1-amdgpu-mesa-glx : Depends: libudev1 but it is not installable or
libudev0 but it is not going to be installed
rocm-llvm : Depends: python but it is not installable
Depends: libstdc++-5-dev but it is not installable or
libstdc++-7-dev but it is not installable
Depends: libgcc-5-dev but it is not installable or
libgcc-7-dev but it is not installable
Recommends: gcc-multilib but it is not going to be installed
Recommends: g++-multilib but it is not going to be installed
util-linux : PreDepends: libudev1 (>= 183) but it is not installable
xserver-xorg-amdgpu-video-amdgpu : Depends: libudev1 (>= 183) but it is not
installable
Depends: xorg-video-abi-24 but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held
packages.
Run Code Online (Sandbox Code Playgroud)
我的印象是 Ubuntu 22.04LTS 支持该驱动程序。我是 Ubuntu 新手,如果它们无法安装,或者这一切都是不可能的,我该如何安装它们?
小智 14
我也有同样的问题。现在我修好了。
dpkg -L amdgpu 安装
/etc/apt/sources.list.d/amdgpu.list /etc/apt/sources.list.d/rocm.list
尝试将 改为focal,jammy如“Jammy Jellyfish”中所示。
我安装成功如下。
amdgpu-install --usecase=graphics,opencl --vulkan=amdvlk,pro
小智 12
尝试:
amdgpu-install --usecase=opencl,图形-y
问题是默认的“usecase”包括 hip,由于 python 依赖问题,22.04 尚不支持 hip。仅安装图形(mesa)和opencl应该没问题。
因此,尽管 AMD 发布了 Ubuntu 22 的官方驱动程序包,但他们实际上并没有确保依赖项是兼容的。他们已经意识到这一点并承诺修复它,您可以在这两期中遵循这一点,这里和这里。
其中一个问题线程中有以下解决方法:
我们本质上是要下载该rocm-llvm包,解压它,修改它,再次编译它,然后安装它,以满足 AMD 驱动程序需要安装的依赖项。
我没有遇到错误libegl,libgbm1因此它们可能与其他内容有关,或者它们可能已被我拥有的最新 amdgpu-install 修复: version 22.20.50200。
打开终端,创建一个新目录并进入其中。
mkdir temp cd temp
下载 rocm-llvm 包apt download rocm-llvm。是 695MB。
提取它ar x rocm-llvm_14.0.0.22204.50200-65_amd64.deb
提取control.tar.xztar xf control.tar.xz
control在文本编辑器中打开gedit control
找到以以下开头的行Depends并将其替换为:
Depends: python3, libc6, libstdc++6|libstdc++8, libstdc++-5-dev|libstdc++-7-dev|libstdc++-10-dev, libgcc-5-dev|libgcc-7-dev|libgcc-10-dev, rocm-core
保存文件并关闭编辑器。
重建control.tar.xztar c postinst prerm control | xz -c > control.tar.xz
重建 .deb 文件ar rcs rocm-llvm_14.0.0.22204.50200-65_amd64.deb debian-binary control.tar.xz data.tar.xz
安装新的依赖项sudo apt-get install libstdc++-10-dev libgcc-10-dev
安装新的 .deb 文件sudo dpkg -i rocm-llvm_14.0.0.22204.50200-65_amd64.deb
安装 rocm 的依赖项sudo apt install rocm-core
下载最新的 Ubuntu 驱动程序安装程序wget https://repo.radeon.com/amdgpu-install/22.20/ubuntu/jammy/amdgpu-install_22.20.50200-1_all.deb
安装最新的 Ubuntu 驱动程序安装程序。如果它询问您是否要覆盖任何源文件,您需要键入Y,这样它就会执行此操作,如果您从 20.04 升级,它会询问您是否想用新的 22.04 版本替换旧的 20.04 源。
再次运行驱动程序安装程序:
sudo amdgpu-install --opencl=rocr -y
如果在安装结束时显示
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/amdgpu/5.13.11.21.50-1384495/source/dkms.conf does not exist.
WARNING: amdgpu dkms failed for running kernel
Run Code Online (Sandbox Code Playgroud)
然后运行sudo dpkg-reconfigure amdgpu-dkms它应该可以解决它。
小智 8
在将计算机升级到 22.04.1 LTS 并使用内核版本为 5.15.0-56 的旧版 RX 580 GPU 后,我也遇到了这个问题。如果有人和我有同样的情况并来到这里,截至撰写本文时(2022 年 12 月),以下方法对我有用:
sudo amdgpu-install --usecase=workstation -y --opencl=rocr --vulkan=pro --accept-eula --no-32sudo apt install -y mesa-opencl-icd并-y跳过--accept-eulaEULA 提示和apt提示。 --usecase=workstation、--opencl=rocr和--vulkan=pro安装选项会安装图形和 OpenCL 组件,跳过开源 vulkan。最后,--no-32跳过安装 32 位组件,这也给我的一些尝试带来了问题。
mesa-opencl-icd为了libMesaOpenCL.so.1在我的系统上获取该库,需要。安装后,我可以通过以下方式查看我的 GPU clinfo -l:
$> sudo clinfo -l
Platform #0: AMD Accelerated Parallel Processing
Platform #1: Clover
`-- Device #0: Radeon RX 580 Series (polaris10, LLVM 13.0.1, DRM 3.49, 5.15.0-56-generic)
Platform #2: Portable Computing Language
`-- Device #0: pthread-Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
37133 次 |
| 最近记录: |