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

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 %