It's completely impossible, I'm running:
sudo amdgpu-install --usecase=opencl,graphics -y
Which gets me past the unmet dependencies issue reported here, but I run into a new issue altogether:
Error! Bad return status for module build on kernel: 5.15.0-53-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.16.9.22.20-1438747~22.04/build/make.log for more information.
dpkg: error processing package amdgpu-dkms (--configure):
installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
amdgpu-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
The log itself starts out with these worrying two lines:
"Local GCC version 110303 does not match kernel compiler GCC version 110200"
"This may cause unexpected and hard-to-isolate compiler-related issues"
(weirdly, I'm not allowed to post more detailed logs as apparently it's "not permitted in this community")
And the error it fails with is:
/var/lib/dkms/amdgpu/5.16.9.22.20-1438747~22.04/build/amd/amdgpu/amdgpu_ttm.c: In function ‘amdgpu_ssg_init’:
/var/lib/dkms/amdgpu/5.16.9.22.20-1438747~22.04/build/amd/amdgpu/amdgpu_ttm.c:2313:31: error: incompatible types when assigning to type ‘struct percpu_ref’ from type ‘struct percpu_ref *’
2313 | adev->ssg.pgmap.ref = &adev->ssg.ref;
What do I do? I thought I was compatible with the latest driver release:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
$ uname -r
5.15.0-53-generic
I also don't seem to be the only person running into this issue as reported here.
Btw, what's also super infuriating is that it's broken my system, I can't upgrade or even uninstall amdgpu-install, as it fails with the same error:
udo apt-get purge amdgpu-install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED
amdgpu-install*
...
Error! Bad return status for module build on kernel: 5.15.0-53-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.16.9.22.20-1438747~22.04/build/make.log for more information.
dpkg: error processing package amdgpu-dkms (--configure):
installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
amdgpu-dkms
Solved! Go to Solution.
Hi, I've stumble on the same problem than you and manage to find a way to get it working.
The version advertised on the AMD driver's page (https://www.amd.com/fr/support/graphics/amd-radeon-6000-series/amd-radeon-6800-series/amd-radeon-rx-... is not the most up-to-date.
It seems that the URL they give gives access to a open repository that you can browse : https://repo.radeon.com/amdgpu-install/
What I did is that I installed the latest version from there (22.20.5 at the time of writing) for Ubuntu 22.04 (Jammy). I think you can do the same, here is the link : https://repo.radeon.com/amdgpu-install/22.20.5/ubuntu/jammy/amdgpu-install_22.20.50205-1_all.deb
Try to purge your current installation on your device before though because it seems that the error we had let some things in an invalid state.
Have a nice day !
Hi, I've stumble on the same problem than you and manage to find a way to get it working.
The version advertised on the AMD driver's page (https://www.amd.com/fr/support/graphics/amd-radeon-6000-series/amd-radeon-6800-series/amd-radeon-rx-... is not the most up-to-date.
It seems that the URL they give gives access to a open repository that you can browse : https://repo.radeon.com/amdgpu-install/
What I did is that I installed the latest version from there (22.20.5 at the time of writing) for Ubuntu 22.04 (Jammy). I think you can do the same, here is the link : https://repo.radeon.com/amdgpu-install/22.20.5/ubuntu/jammy/amdgpu-install_22.20.50205-1_all.deb
Try to purge your current installation on your device before though because it seems that the error we had let some things in an invalid state.
Have a nice day !
Thank you, I messed around for hours following error messages, found OP with it and 50205 install package worked. With Mint 21, Vanessa.
Had to use amdgpu-install --usecase=opencl,graphics -y
or it was giving some depend errors. from https://askubuntu.com/questions/1417418/unmet-dependencies-ubuntu-22-04-amdgpu-hip-support
AMD needs to update main driver page ASAP.
Thank you, I finally got it to work with 50205 on Kubuntu 22.04!
For anyone reading this, if you are like me and you had some leftover packages from 50200, which broke your apt because of unmet dependencies error. In my case, there was a problem with libllvm14.0.50200-amdgpu package. It could not be upgraded to 50205 because it was trying to overwrite a file used by 50200 version, and that resulted in dpkg error:
trying to overwrite '/opt/amdgpu/lib/x86_64-linux-gnu/llvm-14.0/lib/libLLVM-14.so', which is also in package libllvm14.0.50200-amdgpu:amd64 1:14.0.50200-1438747~22.04
Fortunately, I was able to bring everything under control after force-removing it with dpkg:
sudo dpkg --remove --force-all libllvm14.0.50200-amdgpu
And then:
sudo apt -f install
sudo apt update
sudo apt upgrade
Thank you all, that seemed to do it, had to download both the correct version of the drivers and remove the old llvm version. Now I need to fix xrandr not recognising resolutions over 1920x1080 on the i3 window manager (but at least have ubuntu's own one to fall back on, 4k and 60hz work there correctly).