I have a ryzen pc with an AMD Radeon Vega card, running ubuntu 22.04LTS, and I'm trying to install the amdgpu-install_22.10.2.50102-1_all driver so that I can use Blender 3.2 and have HIP support. However, I'm having a terrible time, and all my efforts have been for nought.
When I run the command amdgpu-install -y --opencl=rocr
I get the following ouput:
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.
I was under the impression that the driver was supported in Ubuntu 22.04LTS. I am new to Ubuntu so how do I get these installed if they're not installable, or is it all impossible?
sudo apt update && apt upgrade
first, of course, but try runningsudo depmod
, which will regenerate the kernel module dependency database/list. Then, re-try your command. Other factors may be at work but this may eliminate some of them.