[OpenCL] Problem installing AMD driver 22.20 for Radeon RX 6600 on jammy (22.04.1 LTS)

I have recently built a new system based on a Radeon RX and Jammy Jellyfish:

# cat /etc/os-release 
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
# lspci | grep VGA
06:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 23 [Radeon RX 6600/6600 XT/6600M] (rev c7)
#

Following the official AMD "Drivers & support" link from the RX6600 article I was hinted to download the "Radeon™ Software for Linux® installer version 22.20 for Ubuntu 22.04 and 22.04.01" under the "Ubuntu x86 64-Bit" which is located at https://www.amd.com/en/support/linux-drivers

Installing that 14k package was very easy:

# dpkg -i amdgpu-install_22.20.50200-1_all.deb 
Selecting previously unselected package amdgpu-install.
(Reading database ... 389158 files and directories currently installed.)
Preparing to unpack amdgpu-install_22.20.50200-1_all.deb ...
Unpacking amdgpu-install (22.20.50200-1438747~22.04) ...
Setting up amdgpu-install (22.20.50200-1438747~22.04) ...
#

And then the radeon.com depots showed up as Hit 8 & 9 so that felt refreshing as for once this was a fun end-user experience:

# apt update && apt upgrade -y
Get:1 file:/var/opt/amdgpu-pro-local ./ InRelease
Ign:1 file:/var/opt/amdgpu-pro-local ./ InRelease
Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
Get:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg                                                         
Ign:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg                                                         
Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease                                                     
Hit:5 http://ca.archive.ubuntu.com/ubuntu jammy InRelease                                                            
Hit:6 http://ca.archive.ubuntu.com/ubuntu jammy-updates InRelease      
Hit:7 http://ca.archive.ubuntu.com/ubuntu jammy-backports InRelease    
Hit:8 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy InRelease     
Hit:9 https://repo.radeon.com/rocm/apt/5.2 ubuntu InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
Try Ubuntu Pro beta with a free personal subscription on up to 5 machines.
Learn more at https://ubuntu.com/pro
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
#

At this point those are the AMD-related packages that were installed on my system (And perhaps that "libdrm-amdgpu1:amd64" and "xserver-xorg-video-amdgpu" were just garbage of a previously install/uninstall/purge quest that didn't ended up so well...)

# dpkg -l | grep -i amdgpu
ii  amdgpu-install                                              22.20.50200-1438747~22.04                  all          AMDGPU driver repository and installer
ii  libdrm-amdgpu1:amd64                                        2.4.110-1ubuntu1                           amd64        Userspace interface to amdgpu-specific kernel DRM services -- runtime
ii  xserver-xorg-video-amdgpu                                   22.0.0-1ubuntu0.1                          amd64        X.Org X server -- AMDGPU display driver
# 

FACT: There seems to be VERY LITTLE documentation concerning Radeon drivers on Linux Ubuntu 22.04.1 but still I found this article which seemed to me like it could still hold onto some present day relevancy Installing or Uninstalling the AMDGPU stack — amdgpu graphics and compute stack unknown-build documentation

While at it I was also trying to go through all of this process via SSH but referencing the previous article made me realize I could possibly have better luck using TTY7 (There's a EULA to accept).

So I went in front of the box' monitor, logged on TTY7, opened a terminal then issued the following:

$ /usr/bin/amdgpu-install

And the Fight begins!

Get:1 file:/var/opt/amdgpu-pro-local ./ InRelease
Ign:1 file:/var/opt/amdgpu-pro-local ./ InRelease
Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
Get:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg                                                     
Ign:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg                                                     
Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease                                        
Hit:5 http://ca.archive.ubuntu.com/ubuntu jammy InRelease                                               
Hit:6 http://ca.archive.ubuntu.com/ubuntu jammy-updates InRelease     
Hit:7 http://ca.archive.ubuntu.com/ubuntu jammy-backports InRelease   
Hit:8 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy InRelease     
Hit:9 https://repo.radeon.com/rocm/apt/5.2 ubuntu InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
linux-headers-5.15.0-52-generic is already the newest version (5.15.0-52.58).
linux-modules-extra-5.15.0-52-generic is already the newest version (5.15.0-52.58).
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 resolve the situation:

The following packages have unmet dependencies:
 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
E: Unable to correct problems, you have held broken packages.

The previously referenced article suggests to execute the amdgpu-install command as a regular user (per the "$" in front of it) but my spider senses told me to sudo it. Which also failed but with different packages:

$ sudo amdgpu-install -y --usecase=workstation
Get:1 file:/var/opt/amdgpu-pro-local ./ InRelease
Ign:1 file:/var/opt/amdgpu-pro-local ./ InRelease
Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
Get:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg
Ign:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg
Hit:4 http://ca.archive.ubuntu.com/ubuntu jammy InRelease
Hit:5 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy InRelease            
Hit:6 http://ca.archive.ubuntu.com/ubuntu jammy-updates InRelease            
Hit:7 https://repo.radeon.com/rocm/apt/5.2 ubuntu InRelease         
Hit:8 http://ca.archive.ubuntu.com/ubuntu jammy-backports InRelease 
Hit:9 http://security.ubuntu.com/ubuntu jammy-security InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
linux-headers-5.15.0-52-generic is already the newest version (5.15.0-52.58).
linux-modules-extra-5.15.0-52-generic is already the newest version (5.15.0-52.58).
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 resolve the situation:

The following packages have unmet dependencies:
 amdgpu-pro : Depends: amdgpu (= 20.20-1098277) but 22.20.50200-1438747~22.04 is to be installed
 amdgpu-pro-lib32 : Depends: amdgpu (= 20.20-1098277) but 22.20.50200-1438747~22.04 is to be installed or
                             amdgpu-hwe (= 20.20-1098277) but it is not installable
                    Depends: amdgpu-lib32 (= 20.20-1098277) but 22.20.50200-1438747~22.04 is to be installed
E: Unable to correct problems, you have held broken packages.
$

I did then tried a couple of things:

$ sudo apt install amdgpu -y    
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  amdgpu-core amdgpu-dkms amdgpu-dkms-firmware amdgpu-lib autoconf automake autotools-dev dctrl-tools
  dkms gst-omx-amdgpu libdrm-amdgpu-amdgpu1 libdrm-amdgpu-common libdrm-amdgpu-radeon1 libdrm2-amdgpu
  libegl1-amdgpu-mesa libegl1-amdgpu-mesa-drivers libgbm1-amdgpu libgl1-amdgpu-mesa-dri
  libgl1-amdgpu-mesa-glx libglapi-amdgpu-mesa libllvm14.0.50200-amdgpu libomxil-bellagio-bin
  libomxil-bellagio0 libwayland-amdgpu-client0 libwayland-amdgpu-egl1 libwayland-amdgpu-server0
  libxatracker2-amdgpu m4 mesa-amdgpu-omx-drivers mesa-amdgpu-va-drivers mesa-amdgpu-vdpau-drivers
  xserver-xorg-amdgpu-video-amdgpu
Suggested packages:
  autoconf-archive gnu-standards autoconf-doc libtool debtags libglide3
  libomxil-bellagio0-components-base m4-doc
Recommended packages:
  libtxc-dxtn-s2tc0 | libtxc-dxtn0
The following NEW packages will be installed:
  amdgpu amdgpu-core amdgpu-dkms amdgpu-dkms-firmware amdgpu-lib autoconf automake autotools-dev
  dctrl-tools dkms gst-omx-amdgpu libdrm-amdgpu-amdgpu1 libdrm-amdgpu-common libdrm-amdgpu-radeon1
  libdrm2-amdgpu libegl1-amdgpu-mesa libegl1-amdgpu-mesa-drivers libgbm1-amdgpu libgl1-amdgpu-mesa-dri
  libgl1-amdgpu-mesa-glx libglapi-amdgpu-mesa libllvm14.0.50200-amdgpu libomxil-bellagio-bin
  libomxil-bellagio0 libwayland-amdgpu-client0 libwayland-amdgpu-egl1 libwayland-amdgpu-server0
  libxatracker2-amdgpu m4 mesa-amdgpu-omx-drivers mesa-amdgpu-va-drivers mesa-amdgpu-vdpau-drivers
  xserver-xorg-amdgpu-video-amdgpu
0 upgraded, 33 newly installed, 0 to remove and 0 not upgraded.
Need to get 53.1 MB/53.4 MB of archives.
After this operation, 536 MB of additional disk space will be used.
Get:1 http://ca.archive.ubuntu.com/ubuntu jammy/main amd64 m4 amd64 1.4.18-5ubuntu2 [199 kB]
Get:2 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy/main amd64 amdgpu-dkms-firmware all 1:5.16.9.22.20.50200-1438747~22.04 [9,987 kB]
Get:3 http://ca.archive.ubuntu.com/ubuntu jammy/main amd64 autoconf all 2.71-2 [338 kB]
Get:4 http://ca.archive.ubuntu.com/ubuntu jammy/main amd64 autotools-dev all 20220109.1 [44.9 kB]
Get:5 http://ca.archive.ubuntu.com/ubuntu jammy/main amd64 automake all 1:1.16.5-1.3 [558 kB]
Get:6 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy/main amd64 amdgpu-dkms all 1:5.16.9.22.20.50200-1438747~22.04 [7,836 kB]
Get:7 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy/main amd64 amdgpu-core all 22.20.50200-1438747~22.04 [2,228 B]
Get:8 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy/main amd64 libdrm2-amdgpu amd64 1:2.4.110.50200-1438747~22.04 [36.2 kB]
Get:9 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy/main amd64 libdrm-amdgpu-common all 1.0.0.50200-1438747~22.04 [4,904 B]
Get:10 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy/main amd64 libdrm-amdgpu-amdgpu1 amd64 1:2.4.110.50200-1438747~22.04 [21.1 kB]
Get:11 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy/main amd64 libdrm-amdgpu-radeon1 amd64 1:2.4.110.50200-1438747~22.04 [22.7 kB]
Get:12 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy/main amd64 libllvm14.0.50200-amdgpu amd64 1:14.0.50200-1438747~22.04 [19.5 MB]
Get:13 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy/main amd64 mesa-amdgpu-va-drivers amd64 1:22.1.0.50200-1438747~22.04 [2,467 kB]
Get:14 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy/main amd64 libglapi-amdgpu-mesa amd64 1:22.1.0.50200-1438747~22.04 [25.2 kB]
Get:15 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy/main amd64 libgl1-amdgpu-mesa-dri amd64 1:22.1.0.50200-1438747~22.04 [5,270 kB]
Get:16 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy/main amd64 mesa-amdgpu-vdpau-drivers amd64 1:22.1.0.50200-1438747~22.04 [2,459 kB]
Get:17 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy/main amd64 libwayland-amdgpu-egl1 amd64 1.20.0.50200-1438747~22.04 [4,304 B]
Get:18 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy/main amd64 libxatracker2-amdgpu amd64 1:22.1.0.50200-1438747~22.04 [1,498 kB]
Get:19 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy/main amd64 libgbm1-amdgpu amd64 1:22.1.0.50200-1438747~22.04 [28.6 kB]
Get:20 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy/main amd64 libegl1-amdgpu-mesa amd64 1:22.1.0.50200-1438747~22.04 [114 kB]
Get:21 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy/main amd64 libegl1-amdgpu-mesa-drivers amd64 1:22.1.0.50200-1438747~22.04 [4,348 B]
Get:22 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy/main amd64 libgl1-amdgpu-mesa-glx amd64 1:22.1.0.50200-1438747~22.04 [140 kB]
Get:23 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy/main amd64 mesa-amdgpu-omx-drivers amd64 1:22.1.0.50200-1438747~22.04 [2,477 kB]
Get:24 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy/main amd64 xserver-xorg-amdgpu-video-amdgpu amd64 1:22.0.0.50200-1438747~22.04 [58.1 kB]
Get:25 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy/main amd64 gst-omx-amdgpu amd64 1:1.0.0.1.50200-1438747~22.04 [58.8 kB]
Get:26 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy/main amd64 amdgpu-lib amd64 22.20.50200-1438747~22.04 [2,108 B]
Get:27 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy/main amd64 amdgpu amd64 22.20.50200-1438747~22.04 [1,684 B]
Fetched 53.1 MB in 2s (35.4 MB/s)
Extracting templates from packages: 100%
Selecting previously unselected package amdgpu-dkms-firmware.
(Reading database ... 389401 files and directories currently installed.)
Preparing to unpack .../0-amdgpu-dkms-firmware_1%3a5.16.9.22.20.50200-1438747~22.04_all.deb ...
Unpacking amdgpu-dkms-firmware (1:5.16.9.22.20.50200-1438747~22.04) ...
Selecting previously unselected package dctrl-tools.
Preparing to unpack .../1-dctrl-tools_2.24-3build2_amd64.deb ...
Unpacking dctrl-tools (2.24-3build2) ...
Selecting previously unselected package dkms.
Preparing to unpack .../2-dkms_2.8.7-2ubuntu2_all.deb ...
Unpacking dkms (2.8.7-2ubuntu2) ...
Selecting previously unselected package m4.
Preparing to unpack .../3-m4_1.4.18-5ubuntu2_amd64.deb ...
Unpacking m4 (1.4.18-5ubuntu2) ...
Selecting previously unselected package autoconf.
Preparing to unpack .../4-autoconf_2.71-2_all.deb ...
Unpacking autoconf (2.71-2) ...
Selecting previously unselected package autotools-dev.
Preparing to unpack .../5-autotools-dev_20220109.1_all.deb ...
Unpacking autotools-dev (20220109.1) ...
Selecting previously unselected package automake.
Preparing to unpack .../6-automake_1%3a1.16.5-1.3_all.deb ...
Unpacking automake (1:1.16.5-1.3) ...
Setting up amdgpu-dkms-firmware (1:5.16.9.22.20.50200-1438747~22.04) ...
Selecting previously unselected package amdgpu-dkms.
(Reading database ... 390237 files and directories currently installed.)
Preparing to unpack .../0-amdgpu-dkms_1%3a5.16.9.22.20.50200-1438747~22.04_all.deb ...
Unpacking amdgpu-dkms (1:5.16.9.22.20.50200-1438747~22.04) ...
Selecting previously unselected package amdgpu-core.
Preparing to unpack .../1-amdgpu-core_22.20.50200-1438747~22.04_all.deb ...
Unpacking amdgpu-core (22.20.50200-1438747~22.04) ...
Selecting previously unselected package libdrm2-amdgpu:amd64.
Preparing to unpack .../2-libdrm2-amdgpu_1%3a2.4.110.50200-1438747~22.04_amd64.deb ...
Unpacking libdrm2-amdgpu:amd64 (1:2.4.110.50200-1438747~22.04) ...
Selecting previously unselected package libdrm-amdgpu-common.
Preparing to unpack .../3-libdrm-amdgpu-common_1.0.0.50200-1438747~22.04_all.deb ...
Unpacking libdrm-amdgpu-common (1.0.0.50200-1438747~22.04) ...
Selecting previously unselected package libdrm-amdgpu-amdgpu1:amd64.
Preparing to unpack .../4-libdrm-amdgpu-amdgpu1_1%3a2.4.110.50200-1438747~22.04_amd64.deb ...
Unpacking libdrm-amdgpu-amdgpu1:amd64 (1:2.4.110.50200-1438747~22.04) ...
Selecting previously unselected package libdrm-amdgpu-radeon1:amd64.
Preparing to unpack .../5-libdrm-amdgpu-radeon1_1%3a2.4.110.50200-1438747~22.04_amd64.deb ...
Unpacking libdrm-amdgpu-radeon1:amd64 (1:2.4.110.50200-1438747~22.04) ...
Selecting previously unselected package libllvm14.0.50200-amdgpu:amd64.
Preparing to unpack .../6-libllvm14.0.50200-amdgpu_1%3a14.0.50200-1438747~22.04_amd64.deb ...
Unpacking libllvm14.0.50200-amdgpu:amd64 (1:14.0.50200-1438747~22.04) ...
Selecting previously unselected package mesa-amdgpu-va-drivers:amd64.
Preparing to unpack .../7-mesa-amdgpu-va-drivers_1%3a22.1.0.50200-1438747~22.04_amd64.deb ...
Unpacking mesa-amdgpu-va-drivers:amd64 (1:22.1.0.50200-1438747~22.04) ...
Selecting previously unselected package libglapi-amdgpu-mesa:amd64.
Preparing to unpack .../8-libglapi-amdgpu-mesa_1%3a22.1.0.50200-1438747~22.04_amd64.deb ...
Unpacking libglapi-amdgpu-mesa:amd64 (1:22.1.0.50200-1438747~22.04) ...
Setting up amdgpu-core (22.20.50200-1438747~22.04) ...
Setting up libdrm2-amdgpu:amd64 (1:2.4.110.50200-1438747~22.04) ...
Setting up libdrm-amdgpu-common (1.0.0.50200-1438747~22.04) ...
Setting up libdrm-amdgpu-amdgpu1:amd64 (1:2.4.110.50200-1438747~22.04) ...
Setting up libdrm-amdgpu-radeon1:amd64 (1:2.4.110.50200-1438747~22.04) ...
Setting up libllvm14.0.50200-amdgpu:amd64 (1:14.0.50200-1438747~22.04) ...
Setting up mesa-amdgpu-va-drivers:amd64 (1:22.1.0.50200-1438747~22.04) ...
Selecting previously unselected package libgl1-amdgpu-mesa-dri:amd64.
(Reading database ... 392916 files and directories currently installed.)
Preparing to unpack .../00-libgl1-amdgpu-mesa-dri_1%3a22.1.0.50200-1438747~22.04_amd64.deb ...
Unpacking libgl1-amdgpu-mesa-dri:amd64 (1:22.1.0.50200-1438747~22.04) ...
Selecting previously unselected package mesa-amdgpu-vdpau-drivers:amd64.
Preparing to unpack .../01-mesa-amdgpu-vdpau-drivers_1%3a22.1.0.50200-1438747~22.04_amd64.deb ...
Unpacking mesa-amdgpu-vdpau-drivers:amd64 (1:22.1.0.50200-1438747~22.04) ...
Selecting previously unselected package libwayland-amdgpu-client0:amd64.
Preparing to unpack .../02-libwayland-amdgpu-client0_1.20.0.50200-1438747~22.04_amd64.deb ...
Unpacking libwayland-amdgpu-client0:amd64 (1.20.0.50200-1438747~22.04) ...
Selecting previously unselected package libwayland-amdgpu-server0:amd64.
Preparing to unpack .../03-libwayland-amdgpu-server0_1.20.0.50200-1438747~22.04_amd64.deb ...
Unpacking libwayland-amdgpu-server0:amd64 (1.20.0.50200-1438747~22.04) ...
Selecting previously unselected package libwayland-amdgpu-egl1:amd64.
Preparing to unpack .../04-libwayland-amdgpu-egl1_1.20.0.50200-1438747~22.04_amd64.deb ...
Unpacking libwayland-amdgpu-egl1:amd64 (1.20.0.50200-1438747~22.04) ...
Selecting previously unselected package libxatracker2-amdgpu:amd64.
Preparing to unpack .../05-libxatracker2-amdgpu_1%3a22.1.0.50200-1438747~22.04_amd64.deb ...
Unpacking libxatracker2-amdgpu:amd64 (1:22.1.0.50200-1438747~22.04) ...
Selecting previously unselected package libgbm1-amdgpu:amd64.
Preparing to unpack .../06-libgbm1-amdgpu_1%3a22.1.0.50200-1438747~22.04_amd64.deb ...
Unpacking libgbm1-amdgpu:amd64 (1:22.1.0.50200-1438747~22.04) ...
Selecting previously unselected package libegl1-amdgpu-mesa:amd64.
Preparing to unpack .../07-libegl1-amdgpu-mesa_1%3a22.1.0.50200-1438747~22.04_amd64.deb ...
Unpacking libegl1-amdgpu-mesa:amd64 (1:22.1.0.50200-1438747~22.04) ...
Selecting previously unselected package libegl1-amdgpu-mesa-drivers:amd64.
Preparing to unpack .../08-libegl1-amdgpu-mesa-drivers_1%3a22.1.0.50200-1438747~22.04_amd64.deb ...
Unpacking libegl1-amdgpu-mesa-drivers:amd64 (1:22.1.0.50200-1438747~22.04) ...
Selecting previously unselected package libgl1-amdgpu-mesa-glx:amd64.
Preparing to unpack .../09-libgl1-amdgpu-mesa-glx_1%3a22.1.0.50200-1438747~22.04_amd64.deb ...
Unpacking libgl1-amdgpu-mesa-glx:amd64 (1:22.1.0.50200-1438747~22.04) ...
Selecting previously unselected package libomxil-bellagio0.
Preparing to unpack .../10-libomxil-bellagio0_0.9.3-7ubuntu1_amd64.deb ...
Unpacking libomxil-bellagio0 (0.9.3-7ubuntu1) ...
Selecting previously unselected package mesa-amdgpu-omx-drivers:amd64.
Preparing to unpack .../11-mesa-amdgpu-omx-drivers_1%3a22.1.0.50200-1438747~22.04_amd64.deb ...
Unpacking mesa-amdgpu-omx-drivers:amd64 (1:22.1.0.50200-1438747~22.04) ...
Selecting previously unselected package xserver-xorg-amdgpu-video-amdgpu.
Preparing to unpack .../12-xserver-xorg-amdgpu-video-amdgpu_1%3a22.0.0.50200-1438747~22.04_amd64.deb ...
Unpacking xserver-xorg-amdgpu-video-amdgpu (1:22.0.0.50200-1438747~22.04) ...
Selecting previously unselected package gst-omx-amdgpu.
Preparing to unpack .../13-gst-omx-amdgpu_1%3a1.0.0.1.50200-1438747~22.04_amd64.deb ...
Unpacking gst-omx-amdgpu (1:1.0.0.1.50200-1438747~22.04) ...
Selecting previously unselected package amdgpu-lib.
Preparing to unpack .../14-amdgpu-lib_22.20.50200-1438747~22.04_amd64.deb ...
Unpacking amdgpu-lib (22.20.50200-1438747~22.04) ...
Selecting previously unselected package amdgpu.
Preparing to unpack .../15-amdgpu_22.20.50200-1438747~22.04_amd64.deb ...
Unpacking amdgpu (22.20.50200-1438747~22.04) ...
Selecting previously unselected package libomxil-bellagio-bin.
Preparing to unpack .../16-libomxil-bellagio-bin_0.9.3-7ubuntu1_amd64.deb ...
Unpacking libomxil-bellagio-bin (0.9.3-7ubuntu1) ...
Setting up libxatracker2-amdgpu:amd64 (1:22.1.0.50200-1438747~22.04) ...
Setting up libomxil-bellagio-bin (0.9.3-7ubuntu1) ...
Setting up libwayland-amdgpu-server0:amd64 (1.20.0.50200-1438747~22.04) ...
Setting up libgbm1-amdgpu:amd64 (1:22.1.0.50200-1438747~22.04) ...
Setting up libwayland-amdgpu-egl1:amd64 (1.20.0.50200-1438747~22.04) ...
Setting up libomxil-bellagio0 (0.9.3-7ubuntu1) ...
Setting up libglapi-amdgpu-mesa:amd64 (1:22.1.0.50200-1438747~22.04) ...
Setting up mesa-amdgpu-vdpau-drivers:amd64 (1:22.1.0.50200-1438747~22.04) ...
Setting up m4 (1.4.18-5ubuntu2) ...
Setting up autotools-dev (20220109.1) ...
Setting up autoconf (2.71-2) ...
Setting up xserver-xorg-amdgpu-video-amdgpu (1:22.0.0.50200-1438747~22.04) ...
Setting up mesa-amdgpu-omx-drivers:amd64 (1:22.1.0.50200-1438747~22.04) ...
Setting up libwayland-amdgpu-client0:amd64 (1.20.0.50200-1438747~22.04) ...
Setting up libgl1-amdgpu-mesa-glx:amd64 (1:22.1.0.50200-1438747~22.04) ...
Setting up dctrl-tools (2.24-3build2) ...
Setting up automake (1:1.16.5-1.3) ...
update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode
Setting up libgl1-amdgpu-mesa-dri:amd64 (1:22.1.0.50200-1438747~22.04) ...
Setting up gst-omx-amdgpu (1:1.0.0.1.50200-1438747~22.04) ...
Setting up dkms (2.8.7-2ubuntu2) ...
Setting up amdgpu-dkms (1:5.16.9.22.20.50200-1438747~22.04) ...
Loading new amdgpu-5.16.9.22.20-1438747~22.04 DKMS files...
Building for 5.15.0-52-generic
Building for architecture x86_64
Building initial module for 5.15.0-52-generic
Can't load /var/lib/shim-signed/mok/.rnd into RNG
40C7E4780E7F0000:error:12000079:random number generator:RAND_load_file:Cannot open file:../crypto/rand/ra
ndfile.c:106:Filename=/var/lib/shim-signed/mok/.rnd
.............+.+..+.......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+..........+
........+...+.......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.....+.....+.+...+.
.+..........+.....+.............+......+...+...........+.+.....+....+...............+...........+...+....
...+...+......+..+.......+........+.......+......+......+......+.....+.........+....+.....+..............
.....+.....+......+.......+...............+.........+...+.....+...+...............+............+.......+.
.....+.........+......+..+.......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.......+.....+....+.....+.+...+.....+..........+...+..............+.........+............+...+.+...+..+..
..+.....+...................+......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*....
.+.......+..+.+..................+.....+.+..............+.......+...+.........+..+...+.+..............+..
.+...+....+.....+.+......+........+......+..........+............+..+......+......+.+.....+...+....+..+.+
...+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*......+.............+......+...+.
.+...+..........+...+...+.....+.+.....+.+...+...........+....+..+..........+..+..................+.......
+..+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-----
Secure Boot not enabled on this system.
Done.
Forcing installation of amdgpu

amdgpu.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/5.15.0-52-generic/updates/dkms/

amdttm.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/5.15.0-52-generic/updates/dkms/

amdkcl.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/5.15.0-52-generic/updates/dkms/

amd-sched.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/5.15.0-52-generic/updates/dkms/

amddrm_ttm_helper.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/5.15.0-52-generic/updates/dkms/

Running the post_install script:

depmod....
update-initramfs: Generating /boot/initrd.img-5.15.0-52-generic
W: Possible missing firmware /lib/firmware/amdgpu/ip_discovery.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi12_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/aldebaran_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi10_mes.bin for module amdgpu
Setting up libegl1-amdgpu-mesa:amd64 (1:22.1.0.50200-1438747~22.04) ...
Setting up libegl1-amdgpu-mesa-drivers:amd64 (1:22.1.0.50200-1438747~22.04) ...
Setting up amdgpu-lib (22.20.50200-1438747~22.04) ...
Setting up amdgpu (22.20.50200-1438747~22.04) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for install-info (6.8-4build1) ...
#

And now the failed package selection has been harmonized either with or without using sudo:

$ /usr/bin/amdgpu-install
Get:1 file:/var/opt/amdgpu-pro-local ./ InRelease
Ign:1 file:/var/opt/amdgpu-pro-local ./ InRelease
Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
Get:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg                                                     
Ign:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg                                                     
Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease                                        
Hit:5 http://ca.archive.ubuntu.com/ubuntu jammy InRelease                                               
Hit:6 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy InRelease                     
Hit:7 http://ca.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:8 https://repo.radeon.com/rocm/apt/5.2 ubuntu InRelease
Hit:9 http://ca.archive.ubuntu.com/ubuntu jammy-backports InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
linux-headers-5.15.0-52-generic is already the newest version (5.15.0-52.58).
linux-modules-extra-5.15.0-52-generic is already the newest version (5.15.0-52.58).
amdgpu-dkms is already the newest version (1:5.16.9.22.20.50200-1438747~22.04).
amdgpu-dkms set to manually installed.
amdgpu-lib is already the newest version (22.20.50200-1438747~22.04).
amdgpu-lib 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 resolve the situation:

The following packages have unmet dependencies:
 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
E: Unable to correct problems, you have held broken packages.

I swear I had this going on by now in 18.04|20.04 days.

More stuff I tried:

# apt install gcc-multilib g++-multilib libgcc-7-dev libstdc++-7-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libgcc-7-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libstdc++-7-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libgcc-7-dev' has no installation candidate
E: Package 'libstdc++-7-dev' has no installation candidate
# apt search libgcc-7-dev                                                
Sorting... Done
Full Text Search... Done
#

The first thing I did before posting this was to search for "amd radeon" in this community's forum and even though I did found some posts about the subject that none were related to the drivers themselves in 22.04.x.

The closest thread I could find was left abandoned over 2 years ago Dedicated video driver not working - #3 by razvan_teodor

So tell me, oh dear Community, did anybody ever got it easy with AMD Drivers and 22.04.1? Like, for real?

What problem were you trying to solve? Are you saying that the RX 6600 did not function when you installed 22.04? Normally you don't need to do anything with AMD GPU's.

1 Like

So tell me, oh dear Community, did anybody ever got it easy with AMD Drivers and 22.04.1? Like, for real?

YES! I have it easy with the official AMDGPU drivers.

DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"
Graphics:
  Device-1: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
    driver: amdgpu v: kernel
  Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: amdgpu,ati
    unloaded: fbdev,modesetting,vesa gpu: amdgpu resolution: 1920x1080~60Hz
  OpenGL: renderer: AMD Radeon RX 570 Series (polaris10 LLVM 13.0.1 DRM
    3.42 5.15.0-50-generic)
    v: 4.6 Mesa 22.0.5

They are, just like intel and contrary to nVidia drivers, already built-in in the kernel.

I don't have to install anything. And very likely neither do you !

What you probably think to be the official drivers are only a few proprietary driver extensions, also known as AMDGPU-PRO which are only needed for some (very few) special cases.

The AMDGPU-PRO extensions could actually make your graphics slower.

AMD opensourced their drivers years ago, added them to the kerneltree and actively maintain them !

Result: Every kernel update also delivers you the best and newest AMD drivers.

if you really really must have the newest drivers, install the newest HWE kernel

it is as simple as that

Read this:
https://wiki.gentoo.org/wiki/AMDGPU-PRO

quote:

Users whose main use for their graphics card is gaming and other general home-use graphical hardware acceleration should use the open source AMDGPU drivers instead, since the performance of the open source drivers can be as much 100% more compared to AMDGPU-PRO.

And read this:

So why on earth are you installing the mostly unneeded proprietary extensions ??

Following the official AMD "Drivers & support" link from the RX6600 article I was hinted to download the "Radeon™ Software for Linux® installer version 22.20 for Ubuntu 22.04 and 22.04.01"

That was really bad advice.
If you don't have a special use case, don't install AMDGPU-PRO

3 Likes

Thanks a bunch for your fast (and conceive) replies. That helped me understanding the problem a little bit more.

That being said, I wish to use OpenCL therefore I have no choice but to go through this installation process. The proprietary one.

Sadly this thread needs to stay open for now it seems :frowning:

1 Like

That makes sense.

If I wanted to use OpenCL on AMD I would try for a later kernel such as 5.19 that comes with the just released 22.10 for Ubuntu, soon for U-Mate. Not because I have any direct experience with it but because of articles that I read.

Hope it works out and let us know. I just ordered an ASUS RX 6600 so I would be interested. OpenCL is one of those topics I keep looking at and maybe someday will play around with it.

2 Likes

So what you're implying is that I should manually download and install kernel 5.19? Having never done that (yet) I am both stressed on the result and unsure on how to proceed.

But I will duck (As in duckduck) it out and follow-up with results hopefully helping the whole Community out.

More like a clean install of 22.10. But yes, if you want to stick with 22.04, I know there are procedures for updating the kernel. As you suggested, search is your friend.

Hope it works.

I guess the next problem you will be facing will be that the current AMD driver (v22.20) is only compatible with Ubuntu 22.04 and 22.04.01.

Guess we're back to square one.

Maybe this could be of some help.
https://math.dartmouth.edu/~sarunas/amdgpu.html

Thanks for bringing that up. Here's what happened:

 ~/Downloads % ls -lsa
total 24
 4 drwxr-xr-x  2 user user  4096 Oct 23 20:59 .
 4 drwxr-x--- 15 user user  4096 Oct 23 20:59 ..
16 -rw-rw-r--  1 user user 13924 Oct 23 20:59 amdgpu-install_22.20.50200-1_all.deb
 ~/Downloads % sudo dpkg -i amdgpu-install_22.20.50200-1_all.deb 
[sudo] password for user: 
Selecting previously unselected package amdgpu-install.
(Reading database ... 389861 files and directories currently installed.)
Preparing to unpack amdgpu-install_22.20.50200-1_all.deb ...
Unpacking amdgpu-install (22.20.50200-1438747~22.04) ...
Setting up amdgpu-install (22.20.50200-1438747~22.04) ...
 ~/Downloads % which amdgpu-install
/usr/bin/amdgpu-install
 ~/Downloads % /usr/bin/amdgpu-install --opencl=legacy --headless --no-dkms
ERROR: using '--no-dkms' with '--opencl=legacy' is not supported
 ~/Downloads % /usr/bin/amdgpu-install --opencl=legacy --headless          
Get:1 file:/var~/Downloads/amdgpu-pro-local ./ InRelease
Ign:1 file:/var~/Downloads/amdgpu-pro-local ./ InRelease
Get:2 file:/var~/Downloads/amdgpu-pro-local ./ Release [816 B]
Get:2 file:/var~/Downloads/amdgpu-pro-local ./ Release [816 B]
Get:3 file:/var~/Downloads/amdgpu-pro-local ./ Release.gpg                                                         
Ign:3 file:/var~/Downloads/amdgpu-pro-local ./ Release.gpg                                                         
Hit:4 http://ca.archive.ubuntu.com/ubuntu jammy InRelease                                                   
Get:5 http://ca.archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]                                  
Get:6 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy InRelease [5,457 B]    
Get:7 https://repo.radeon.com/rocm/apt/5.2 ubuntu InRelease [2,603 B]          
Get:8 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]      
Get:9 http://ca.archive.ubuntu.com/ubuntu jammy-backports InRelease [99.8 kB]
Get:10 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy/main i386 Packages [10.3 kB]
Get:11 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy/main amd64 Packages [11.7 kB]
Get:12 https://repo.radeon.com/rocm/apt/5.2 ubuntu/main amd64 Packages [27.0 kB]
Get:13 http://ca.archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages [344 kB]
Get:14 http://ca.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [662 kB]
Get:15 http://ca.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [435 kB]
Get:16 http://ca.archive.ubuntu.com/ubuntu jammy-updates/universe i386 Packages [283 kB]
Fetched 2,106 kB in 1s (1,415 kB/s)                   
Reading package lists... Done
E: Command line option --headless is not understood in combination with the other options
 ~/Downloads % /usr/bin/amdgpu-install -h                        
Usage: amdgpu-install [options...]

Options:
  -h|--help                Display this help message
  --rocmrelease=           Install a specific ROCm release. By default only
                           one release of ROCm can be installed. Using this
                           option will allow installation of multiple releases.
                           Note: when used during uninstall, the specific rocm
                                 release will be removed. Use --rocmrelease=all
                                 to uninstall all rocm releases.
  --dryrun                 Print list of commands to run and exit
  --pro                    (DEPRECATED) Install legacy OpenGL, pro Vulkan, and
                           open source multimedia. This is equivalenuser usero:
                           amdgpu-install --usecase=workstation --vulkan=pro
  --usecase=               Install a set of libraries for a specific use case
  --list-usecase           Show all available usecases and descriptions
  --opencl=                Install a specific OpenCL implementation. This
                           option implies the addition of the opencl usecase.
                           Available implementations:
                           rocr        (ROCr/KFD based OpenCL)
                           legacy      (Legacy OpenCL)
  --opengl=                Install a specific OpenGL implementation. This
                           option implies the addition of the graphics usecase.
                           Available implementations:
                           mesa        (Open source Mesa 3D)
                           oglp        (Cloud/Other use, Ubuntu 20.04 only)
  --vulkan=                Install a specific vulkan implementation
                           Available implementations:
                           amdvlk      (AMD open source implementation)
                           pro         (AMD closed source implementation)
  --no-dkms                Do not install dkms and use built-in kernel driver
  --no-32                  Do not install 32 bit graphics runtime support
  --accept-eula            Accept EULA for this run only (for non-free install)
                           Note: only use this option if you accepuser userhe EULA
  --uninstall              Uninstall the graphics driver

  Options --opencl/--vulkan/--usecase can be used together, e.g.:
  amdgpu-install --usecase=graphics --vulkan=amdvlk --opencl=rocr

  Multiple implementations can be selected if comma separated, e.g.:
  amdgpu-install --usecase=graphics,opencl --opencl=rocr,legacy --vulkan=amdvlk,pro

  Unless the -h|--help option is given, 'apt-get' options may be present

 ~/Downloads % 

According to the link, that was expected:

N.B.:

  • As of AMDGPU-PRO 20.45-1188099-ubuntu-20.04 (and perhaps earlier), amdgpu-install does not honor --no-dkms option when run with --opencl=rocr, i.e. amdgpu-dkms is intalled and kernel module amdgpu.ko is compiled, replacing the one from Linux kernel tree.

These options are mutually exclusive:

--opencl=legacy  --no-dkms

These options are also mutually exclusive:

--opencl=legacy --headless  

To get back to your earlier question; the reason for me posting the link in question was this:

I guess the next problem you will be facing will be that the current AMD driver (v22.20) is only compatible with Ubuntu 22.04 and 22.04.01.

To which the linked article has this to say:

amdgpu-install may complain that it can't install, because this is not Ubuntu version expected. Edit /etc/os-release and replace Ubuntu version with what installer wants. After amdgpu-install completes /etc/os-release may be changed back.

Anyway, let's get back on track:
The code below might just work and will probably do what you want:

 /usr/bin/amdgpu-install --usecase=opencl  --opencl=legacy  

Rest to say that it keeps me wondering how closed this openCL actually is :slight_smile:

Thanks for your time and effort with this problem, I really appreciate it.

But I have 2 issues with your last reply:

#1

Blockquote
Edit /etc/os-release and replace Ubuntu version with what installer wants.

The installer fails at a distribution dependency update with no arguments:

$ sudo apt install amdgpu -y 
[...]
The following packages have unmet dependencies:
 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
E: Unable to correct problems, you have held broken packages.

And never once did it complained about Linux version.

#2.
By downloading The Official AMD Driver which markets this specific version of Ubuntu it still doesn't work natively. Then why isn't AMD keen enough to provide the source and avoid all of this mess?

But you are right: let's focus on the matter at hand. Here's the result of the command:

~ % /usr/bin/amdgpu-install --usecase=opencl --opencl=legacy
[sudo] password for user: 
Get:1 file:/var/opt/amdgpu-pro-local ./ InRelease
Ign:1 file:/var/opt/amdgpu-pro-local ./ InRelease
Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
Get:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg                         
Ign:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg                         
Hit:4 http://ca.archive.ubuntu.com/ubuntu jammy InRelease                                                   
Get:5 http://ca.archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]                                           
Hit:6 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy InRelease                                                    
Hit:7 https://repo.radeon.com/rocm/apt/5.2 ubuntu InRelease                                                          
Get:8 http://ca.archive.ubuntu.com/ubuntu jammy-backports InRelease [99.8 kB]
Get:9 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:10 http://ca.archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages [344 kB]
Get:11 http://ca.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [662 kB]
Get:12 http://ca.archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [9,404 B]
Get:13 http://ca.archive.ubuntu.com/ubuntu jammy-updates/universe i386 Packages [283 kB]
Get:14 http://ca.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [435 kB]
Get:15 http://ca.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 c-n-f Metadata [356 B]
Get:16 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [367 kB]
Get:17 http://security.ubuntu.com/ubuntu jammy-security/restricted Translation-en [56.5 kB]
Fetched 2,483 kB in 2s (1,200 kB/s)   
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package opencl-legacy-amdgpu-pro-icd
~ % sudo apt search opencl-legacy-amdgpu-pro-icd
Sorting... Done
Full Text Search... Done
~ %

At this point I had to apt search opencl and there are several hits. But I believe this one matters the most here:

% sudo apt install opencl-amdgpu-pro
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
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 resolve the situation:

The following packages have unmet dependencies:
 opencl-amdgpu-pro : Depends: amdgpu-dkms (= 1:5.6.0.15-1098277) but 1:5.16.9.22.20.50200-1438747~22.04 is to be installed
                     Depends: libdrm2-amdgpu (= 1:2.4.100-1098277) but 1:2.4.110.50200-1438747~22.04 is to be installed
                     Depends: libdrm-amdgpu-amdgpu1 (= 1:2.4.100-1098277) but 1:2.4.110.50200-1438747~22.04 is to be installed
                     Depends: libdrm-amdgpu-common (= 1.0.0-1098277) but 1.0.0.50200-1438747~22.04 is to be installed
E: Unable to correct problems, you have held broken packages.
% 

More problems, yaaa! And this sadly didn't fixed it:

% sudo apt install amdgpu-dkms libdrm2-amdgpu libdrm-amdgpu-common libdrm-amdgpu-amdgpu1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libdrm-amdgpu-amdgpu1 is already the newest version (1:2.4.110.50200-1438747~22.04).
libdrm-amdgpu-amdgpu1 set to manually installed.
libdrm-amdgpu-common is already the newest version (1.0.0.50200-1438747~22.04).
libdrm-amdgpu-common set to manually installed.
libdrm2-amdgpu is already the newest version (1:2.4.110.50200-1438747~22.04).
libdrm2-amdgpu set to manually installed.
The following packages were automatically installed and are no longer required:
  libgles1-amdgpu-mesa libgles2-amdgpu-mesa libllvm10.0-amdgpu libosmesa6-amdgpu
Use 'sudo apt autoremove' to remove them.
Suggested packages:
  debtags
The following NEW packages will be installed:
  amdgpu-dkms amdgpu-dkms-firmware dctrl-tools dkms
0 upgraded, 4 newly installed, 0 to remove and 5 not upgraded.
Need to get 18.0 MB of archives.
After this operation, 393 MB of additional disk space will be used.
Get:1 http://ca.archive.ubuntu.com/ubuntu jammy/main amd64 dctrl-tools amd64 2.24-3build2 [66.9 kB]
Get:2 http://ca.archive.ubuntu.com/ubuntu jammy/main amd64 dkms all 2.8.7-2ubuntu2 [69.6 kB]
Get:3 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy/main amd64 amdgpu-dkms-firmware all 1:5.16.9.22.20.50200-1438747~22.04 [9,987 kB]
Get:4 https://repo.radeon.com/amdgpu/22.20/ubuntu jammy/main amd64 amdgpu-dkms all 1:5.16.9.22.20.50200-1438747~22.04 [7,836 kB]
Fetched 18.0 MB in 1s (16.5 MB/s)      
Selecting previously unselected package amdgpu-dkms-firmware.
(Reading database ... 389890 files and directories currently installed.)
Preparing to unpack .../amdgpu-dkms-firmware_1%3a5.16.9.22.20.50200-1438747~22.04_all.deb ...
Unpacking amdgpu-dkms-firmware (1:5.16.9.22.20.50200-1438747~22.04) ...
Selecting previously unselected package dctrl-tools.
Preparing to unpack .../dctrl-tools_2.24-3build2_amd64.deb ...
Unpacking dctrl-tools (2.24-3build2) ...
Selecting previously unselected package dkms.
Preparing to unpack .../dkms_2.8.7-2ubuntu2_all.deb ...
Unpacking dkms (2.8.7-2ubuntu2) ...
Setting up amdgpu-dkms-firmware (1:5.16.9.22.20.50200-1438747~22.04) ...
Selecting previously unselected package amdgpu-dkms.
(Reading database ... 390440 files and directories currently installed.)
Preparing to unpack .../amdgpu-dkms_1%3a5.16.9.22.20.50200-1438747~22.04_all.deb ...
Unpacking amdgpu-dkms (1:5.16.9.22.20.50200-1438747~22.04) ...
Setting up dctrl-tools (2.24-3build2) ...
Setting up dkms (2.8.7-2ubuntu2) ...
Setting up amdgpu-dkms (1:5.16.9.22.20.50200-1438747~22.04) ...
Loading new amdgpu-5.16.9.22.20-1438747~22.04 DKMS files...
Building for 5.15.0-52-generic
Building for architecture x86_64
Building initial module for 5.15.0-52-generic
Secure Boot not enabled on this system.
Done.
Forcing installation of amdgpu

amdgpu.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/5.15.0-52-generic/updates/dkms/

amdttm.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/5.15.0-52-generic/updates/dkms/

amdkcl.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/5.15.0-52-generic/updates/dkms/

amd-sched.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/5.15.0-52-generic/updates/dkms/

amddrm_ttm_helper.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/5.15.0-52-generic/updates/dkms/

Running the post_install script:

depmod....
update-initramfs: Generating /boot/initrd.img-5.15.0-52-generic
W: Possible missing firmware /lib/firmware/amdgpu/ip_discovery.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi12_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/aldebaran_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi10_mes.bin for module amdgpu
Processing triggers for man-db (2.10.2-1) ...
% sudo apt install opencl-amdgpu-pro                                                    
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
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 resolve the situation:

The following packages have unmet dependencies:
 opencl-amdgpu-pro : Depends: amdgpu-dkms (= 1:5.6.0.15-1098277) but 1:5.16.9.22.20.50200-1438747~22.04 is to be installed
                     Depends: libdrm2-amdgpu (= 1:2.4.100-1098277) but 1:2.4.110.50200-1438747~22.04 is to be installed
                     Depends: libdrm-amdgpu-amdgpu1 (= 1:2.4.100-1098277) but 1:2.4.110.50200-1438747~22.04 is to be installed
                     Depends: libdrm-amdgpu-common (= 1.0.0-1098277) but 1.0.0.50200-1438747~22.04 is to be installed
E: Unable to correct problems, you have held broken packages.
%

I think my next video card on Linux will be a NVIDIA :smiley:

2 Likes

The AMD package seems to be corrupt or incomplete. At least one package is missing:

Unable to locate package opencl-legacy-amdgpu-pro-icd

(The rest of the errors, the unmet dependencies, seem to originate from manually installing the wrong version 'opencl-amdgpu-pro')

Best to open a bugreport on launchpad.net mentioning the error 'Unable to locate package opencl-legacy-amdgpu-pro-icd'
Also open a bugreport on bugzilla.freedesktop.org

Several AMD linux-devs are regulars on bugzilla and they always help out where they can.

I have very fond memories of the time I had some problems, after a kernel update, to get an ancient AMD GPU working that was already more than a decade out of production.

I filed a bugreport and before I knew it I had contact with the main devs from AMD HQ in Germany who offered lots of help. Following my findings they incorporated patches for it in the driver tree in no time.
You can imagine that that was a totally stunning but very joyful experience. :slight_smile:

I think my next video card on Linux will be a NVIDIA

Understandably so. OpenCL on nVidia is more mature at the moment.

For gaming on Linux though, I would choose AMD over nVidia any day. :slight_smile:

2 Likes

I have done so for launchpad @ Bug #1994085 “Unable to locate package opencl-legacy-amdgpu-pro-...” : Bugs : Ubuntu MATE

But for bugzilla I am not so sure:

I get you for gaming that you would choose AMD over NVIDIA and if there is anything I will remember from this story is definitely that.

Let's hope AMD hasn't done any cuts in Germany now :wink:

2 Likes

It seems that AMD bugreporting has been moved to 'https://bugzilla.kernel.org/'

I also spotted the top AMDGPU devs there :slight_smile:

2 Likes

You got quite the eye I must admit :wink:

And done @ Bug #1994440 “Unable to locate package opencl-legacy-amdgpu-pro-...” : Bugs : ubiquity package : Ubuntu

2 Likes

I'm not a developer, I mine crypto with OpenCL packages from AMD.

I recently bought an AMD RX 6600 to go in my main slot so I can retire my RX 580 and set it to just mine crypto.

Here's what I did:
Dowloaded version 22.20.50200-1
I ran this command to install the driver:
amdgpu-install --usecase=workstation -y --vulkan=pro --opencl=rocr,legacy

Then what happened was unexpected. I was unable to run clinfo as before in 20.04 LTS and I was unable to utilize OpenCL to mine crypto on the RX 6600. The miners kept complaining that there was only one device.

So I uninstalled the amdgpu-pro stack (leaving the repos) and pulled out the old card (RX 580).
Then I just went into synaptic package manager and searched for "rocm" and installed the package called rocm-core. It pulled the amdgpu-core packages and all the needed dependencies.

After that I was able to mine with OpenCL on my RX 6600, and I can also use it for gaming which is good. Haven't had any problems yet with just the 6600 in the machine. What sucks is that I used to use the GPU for compute cycles in Blender, but blender dropped OpenCL support in latest versions. LOL After that I felt I was going in circles.

I really wish I could tell you what really happened with details, but I'd have to test it by putting the old GPU back and re-installing, which I might do eventually because I really wanted the two GPUs in one machine.

1 Like