Hello, I am trying to install amdgpu 21.50 Drivers on my Ubuntu 20.04.4 with on kernel Release 5.13.0-30-generic. I am trying to use the command:
amdgpu-install --opencl=legacy --vulkan=amdvlk,pro --accept-eula
with output:
Hit:1 http://de.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:4 https://linux.teamviewer.com/deb stable InRelease
Get:5 http://de.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:6 https://repo.radeon.com/amdgpu/21.50/ubuntu bionic InRelease [5.460 B]
Get:7 https://repo.radeon.com/rocm/apt/5.0 ubuntu InRelease [1.814 B]
Get:8 https://repo.radeon.com/amdgpu/21.50/ubuntu bionic/proprietary amd64 Packages [3.540 B]
Get:9 https://repo.radeon.com/amdgpu/21.50/ubuntu bionic/proprietary i386 Packages [2.868 B]
Get:10 https://repo.radeon.com/amdgpu/21.50/ubuntu bionic/main i386 Packages [12,7 kB]
Get:11 https://repo.radeon.com/amdgpu/21.50/ubuntu bionic/main amd64 Packages [13,7 kB]
Get:12 https://repo.radeon.com/rocm/apt/5.0 ubuntu/main amd64 Packages [27,0 kB]
Fetched 403 kB in 1s (368 kB/s)
Reading package lists... Done
Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:2 http://de.archive.ubuntu.com/ubuntu focal InRelease
Hit:3 https://linux.teamviewer.com/deb stable InRelease
Get:4 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:5 http://de.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Hit:6 https://repo.radeon.com/amdgpu/21.50/ubuntu bionic InRelease
Hit:7 https://repo.radeon.com/rocm/apt/5.0 ubuntu InRelease
Fetched 336 kB in 1s (430 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-5.13.0-30-generic is already the newest version (5.13.0-30.33~20.04.1).
linux-headers-5.13.0-30-generic set to manually installed.
linux-modules-extra-5.13.0-30-generic is already the newest version (5.13.0-30.33~20.04.1).
linux-modules-extra-5.13.0-30-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:
amdgpu-lib : Depends: libwayland-amdgpu-client0 but it is not going to be installed
Depends: libwayland-amdgpu-server0 but it is not going to be installed
Depends: libgbm1-amdgpu but it is not going to be installed
Depends: libegl1-amdgpu-mesa but it is not going to be installed
Depends: libegl1-amdgpu-mesa-drivers but it is not going to be installed
Depends: xserver-xorg-amdgpu-video-amdgpu but it is not going to be installed
amdgpu-lib32 : Depends: libwayland-amdgpu-client0:i386
Depends: libwayland-amdgpu-server0:i386
Depends: libgbm1-amdgpu:i386
Depends: libegl1-amdgpu-mesa:i386
Depends: libegl1-amdgpu-mesa-drivers:i386
rocm-hip-runtime : Depends: rocm-language-runtime but it is not going to be installed
Depends: rocminfo but it is not going to be installed
Depends: hip-rocclr
vulkan-amdgpu : Depends: libwayland-amdgpu-client0 but it is not going to be installed
vulkan-amdgpu-pro : Depends: libwayland-amdgpu-client0 but it is not going to be installed
vulkan-amdgpu-pro:i386 : Depends: libwayland-amdgpu-client0:i386 but it is not going to be installed
Depends: libvulkan1:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Hit:1 http://de.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:3 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Hit:4 https://linux.teamviewer.com/deb stable InRelease
Get:5 http://de.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Hit:6 https://repo.radeon.com/amdgpu/21.50/ubuntu bionic InRelease
Hit:7 https://repo.radeon.com/rocm/apt/5.0 ubuntu InRelease
Fetched 336 kB in 1s (431 kB/s)
Reading package lists... Done
Hit:1 http://de.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Hit:3 https://linux.teamviewer.com/deb stable InRelease
Get:4 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:5 http://de.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Hit:6 https://repo.radeon.com/amdgpu/21.50/ubuntu bionic InRelease
Hit:7 https://repo.radeon.com/rocm/apt/5.0 ubuntu InRelease
Fetched 336 kB in 1s (433 kB/s)
Reading package lists... Done
or
amdgpu-install --opencl=legacy --vulkan=amdvlk,pro
with output:
Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:2 http://de.archive.ubuntu.com/ubuntu focal InRelease
Hit:3 https://linux.teamviewer.com/deb stable InRelease
Get:4 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:5 http://de.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Hit:6 https://repo.radeon.com/amdgpu/21.50/ubuntu bionic InRelease
Hit:7 https://repo.radeon.com/rocm/apt/5.0 ubuntu InRelease
Fetched 336 kB in 1s (420 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package clinfo-amdgpu-pro
E: Unable to locate package opencl-legacy-amdgpu-pro-icd
E: Unable to locate package vulkan-amdgpu-pro
E: Unable to locate package vulkan-amdgpu-pro:i386
What else can I try to run, so I can make use of opencl (and use vulkan)?
Hey,
try adding --no-32 to the command. The packages mentioned are all named as i386 which you probably dont want/need as you are running a 64bit system.
Cheers
tuxianer
Still:
E: Unable to locate package clinfo-amdgpu-pro
E: Unable to locate package opencl-legacy-amdgpu-pro-icd
E: Unable to locate package vulkan-amdgpu-pro
Hi,
which command did you ammend?
You need to use this one, as the pro components require hte acceptance of the EULA as they are proprietary.
amdgpu-install --opencl=legacy --vulkan=amdvlk,pro --accept-eula --no-32
When using
amdgpu-install --opencl=legacy --vulkan=amdvlk,pro --no-32 then this is the error:
E: Unable to locate package clinfo-amdgpu-pro
E: Unable to locate package opencl-legacy-amdgpu-pro-icd
E: Unable to locate package vulkan-amdgpu-pro
When using: amdgpu-install --opencl=legacy --vulkan=amdvlk,pro --accept-eula --no-32
then this is the error:
The following packages have unmet dependencies:
amdgpu-lib : Depends: libwayland-amdgpu-client0 but it is not going to be installed
Depends: libwayland-amdgpu-server0 but it is not going to be installed
Depends: libgbm1-amdgpu but it is not going to be installed
Depends: libegl1-amdgpu-mesa but it is not going to be installed
Depends: libegl1-amdgpu-mesa-drivers but it is not going to be installed
Depends: xserver-xorg-amdgpu-video-amdgpu but it is not going to be installed
rocm-hip-runtime : Depends: rocm-language-runtime but it is not going to be installed
Depends: rocminfo but it is not going to be installed
Depends: hip-rocclr
vulkan-amdgpu : Depends: libwayland-amdgpu-client0 but it is not going to be installed
vulkan-amdgpu-pro : Depends: libwayland-amdgpu-client0 but it is not going to be installed
Is there a reason you only add legacy and not ROCR to your opencl statement? Because for the vulkan part you are requesting both open and proprietary?
Admittedly I am not sure if that combination then works. If there is no specific reasn I would add rocr to the opencl components.
amdgpu-install --opencl=legacy,rocr --vulkan=amdvlk,pro --accept-eula --no-32
output:
The following packages have unmet dependencies:
amdgpu-lib : Depends: libwayland-amdgpu-client0 but it is not going to be installed
Depends: libwayland-amdgpu-server0 but it is not going to be installed
Depends: libgbm1-amdgpu but it is not going to be installed
Depends: libegl1-amdgpu-mesa but it is not going to be installed
Depends: libegl1-amdgpu-mesa-drivers but it is not going to be installed
Depends: xserver-xorg-amdgpu-video-amdgpu but it is not going to be installed
rocm-hip-runtime : Depends: rocm-language-runtime but it is not going to be installed
Depends: rocminfo but it is not going to be installed
Depends: hip-rocclr
rocm-opencl-runtime : Depends: rocm-language-runtime but it is not going to be installed
Depends: rocm-opencl but it is not going to be installed
vulkan-amdgpu : Depends: libwayland-amdgpu-client0 but it is not going to be installed
vulkan-amdgpu-pro : Depends: libwayland-amdgpu-client0 but it is not going to be installed
amdgpu-install --opencl=legacy,rocr --vulkan=amdvlk,pro --accept-eula
output:
The following packages have unmet dependencies:
amdgpu-lib : Depends: libwayland-amdgpu-client0 but it is not going to be installed
Depends: libwayland-amdgpu-server0 but it is not going to be installed
Depends: libgbm1-amdgpu but it is not going to be installed
Depends: libegl1-amdgpu-mesa but it is not going to be installed
Depends: libegl1-amdgpu-mesa-drivers but it is not going to be installed
Depends: xserver-xorg-amdgpu-video-amdgpu but it is not going to be installed
amdgpu-lib32 : Depends: libwayland-amdgpu-client0:i386
Depends: libwayland-amdgpu-server0:i386
Depends: libgbm1-amdgpu:i386
Depends: libegl1-amdgpu-mesa:i386
Depends: libegl1-amdgpu-mesa-drivers:i386
rocm-hip-runtime : Depends: rocm-language-runtime but it is not going to be installed
Depends: rocminfo but it is not going to be installed
Depends: hip-rocclr
rocm-opencl-runtime : Depends: rocm-language-runtime but it is not going to be installed
Depends: rocm-opencl but it is not going to be installed
vulkan-amdgpu : Depends: libwayland-amdgpu-client0 but it is not going to be installed
vulkan-amdgpu-pro : Depends: libwayland-amdgpu-client0 but it is not going to be installed
vulkan-amdgpu-pro:i386 : Depends: libwayland-amdgpu-client0:i386 but it is not going to be installed
Depends: libvulkan1:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
amdgpu-install --opencl=legacy,rocr --vulkan=amdvlk,pro --no-32
E: Unable to locate package clinfo-amdgpu-pro
E: Unable to locate package opencl-legacy-amdgpu-pro-icd
E: Unable to locate package vulkan-amdgpu-pro
amdgpu-install --opencl=legacy,rocr --vulkan=amdvlk,pro --no-32 --accept-eula
The following packages have unmet dependencies:
amdgpu-lib : Depends: libwayland-amdgpu-client0 but it is not going to be installed
Depends: libwayland-amdgpu-server0 but it is not going to be installed
Depends: libgbm1-amdgpu but it is not going to be installed
Depends: libegl1-amdgpu-mesa but it is not going to be installed
Depends: libegl1-amdgpu-mesa-drivers but it is not going to be installed
Depends: xserver-xorg-amdgpu-video-amdgpu but it is not going to be installed
rocm-hip-runtime : Depends: rocm-language-runtime but it is not going to be installed
Depends: rocminfo but it is not going to be installed
Depends: hip-rocclr
rocm-opencl-runtime : Depends: rocm-language-runtime but it is not going to be installed
Depends: rocm-opencl but it is not going to be installed
vulkan-amdgpu : Depends: libwayland-amdgpu-client0 but it is not going to be installed
vulkan-amdgpu-pro : Depends: libwayland-amdgpu-client0 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
amdgpu-install --opencl=legacy,rocr --vulkan=amdvlk,pro
E: Unable to locate package clinfo-amdgpu-pro
E: Unable to locate package opencl-legacy-amdgpu-pro-icd
E: Unable to locate package vulkan-amdgpu-pro
E: Unable to locate package vulkan-amdgpu-pro:i386
amdgpu-install --opencl=legacy,rocr --vulkan=amdvlk,pro --accept-eula
The following packages have unmet dependencies:
amdgpu-lib : Depends: libwayland-amdgpu-client0 but it is not going to be installed
Depends: libwayland-amdgpu-server0 but it is not going to be installed
Depends: libgbm1-amdgpu but it is not going to be installed
Depends: libegl1-amdgpu-mesa but it is not going to be installed
Depends: libegl1-amdgpu-mesa-drivers but it is not going to be installed
Depends: xserver-xorg-amdgpu-video-amdgpu but it is not going to be installed
amdgpu-lib32 : Depends: libwayland-amdgpu-client0:i386
Depends: libwayland-amdgpu-server0:i386
Depends: libgbm1-amdgpu:i386
Depends: libegl1-amdgpu-mesa:i386
Depends: libegl1-amdgpu-mesa-drivers:i386
rocm-hip-runtime : Depends: rocm-language-runtime but it is not going to be installed
Depends: rocminfo but it is not going to be installed
Depends: hip-rocclr
rocm-opencl-runtime : Depends: rocm-language-runtime but it is not going to be installed
Depends: rocm-opencl but it is not going to be installed
vulkan-amdgpu : Depends: libwayland-amdgpu-client0 but it is not going to be installed
vulkan-amdgpu-pro : Depends: libwayland-amdgpu-client0 but it is not going to be installed
vulkan-amdgpu-pro:i386 : Depends: libwayland-amdgpu-client0:i386 but it is not going to be installed
Depends: libvulkan1:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Package libffi6_3.2.1-8_amd64.deb will need to be installed for ubuntu 20.04.4.
Version of libffi was bumped to 7 in 20.04.4 but rocm dependencies will fail unless v6 is installed.
Package libffi6_3.2.1-8_amd64.deb was taken from ubuntu 18.04.4.
both v6 and v7 should install and co-exist without a problem, just install via "dpkg -i"
Installing this version of the library fixed this issue for me.
Which drivers are you using and which command did you used?
The same drivers and same version of Ubuntu as you.
I downloaded libffi6_3.2.1-8_amd64.deb and libffi6_3.2.1-8_i386.deb and installed them using 'dpkg -i'.
amdgpu-install --usecase=workstation -y --vulkan=pro --opencl=rocr,legacy
I am getting this error when running your command and installing libffi6_3.2.1-8_amd64.deb and libffi6_3.2.1-8_i386.deb
E: Unable to locate package amdgpu-pro
E: Unable to locate package amdgpu-pro-lib32
E: Unable to locate package clinfo-amdgpu-pro
E: Unable to locate package opencl-legacy-amdgpu-pro-icd
E: Unable to locate package vulkan-amdgpu-pro
E: Unable to locate package vulkan-amdgpu-pro:i386
Are you using the new 21.50.2 Drivers or the normal 21.50?
amdgpu-install_21.50.2.50002-1_all.deb
First of all check you kernel version - this is critical and can be root of of failures.
for ubuntu
amdgpu / kernel version
amdgpu 21.40 - Linux 5.11.32
amdgpu 21.50.2 - Linux 5.13.11
amdgpu 21.50 - Linux 5.13.11.21
amdgpu 22.10 - Linux 5.13.20.5.1
amdgpu 22.10.1 - Linux 5.13.20.22.10 [x]
amdgpu 22.20 - 5.16.9
amdgpu 22.20.1 - 5.16.9.22
latest - 5.16
## I don't know why there is such asymmetry from amd side. they recommending amdgpu for kernels check here >> packages.ubuntu.com/search?keywords=linux-generic
ubuntu bionic 18.04 LTS - latest generic 4.15.20 (no matching amdgpu for lastest )
ubuntu focal 20.04 LTS - lastest generic 5.4.026 / 5.4.0.122 (no matching amdgpu for lastest)
ubuntu jammy 22.04 LTS - latest 5.15.041 / 5.15.025 (no matching amdgpu for lastest)
##
in most case this require owners of UBUNTU to rollback kernels to compatible with AMDGPU versions.
on 22.04 this is a great solution for my legacy polaris based gpu,
but only after installed a renewed .deb file from here
https://repo.radeon.com/amdgpu-install/22.20.3/ubuntu/jammy/
the original .deb file amdgpu-install from the AMD website directly would lead Ubuntu to conclude there are files missing hence it would not install properly.