I was really looking forward to my graphics card yesterday, because i didn't have any until now. after the installation into the case the trouble started. Installing the graphics driver is not fun and I just can't get it. When I tried to install the driver with amdgpu-install I got this error message:
Loading new amdgpu-5.18.13-1577590.22.04 DKMS files...
Building for 6.1.0-1009-oem
Building for architecture x86_64
Building initial module for 6.1.0-1009-oem
Error! Bad return status for module build on kernel: 6.1.0-1009-oem (x86_64)
Consult /var/lib/dkms/amdgpu/5.18.13-1577590.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
I then read on a page that before I start new installation attempts I should first delete the faulty ones. I did that, but since then I've always gotten this displayed in the console
Reading package lists... Done
Building dependency tree... Done
Status information is read in... Done
Try "apt --fix-broken install" to fix this.
The following packages have unmet dependencies:
libgl1-amdgpu-mesa-dri : Depends on (before): mesa-amdgpu-va-drivers (= 1:22.3.0.50403-1538762.22.04) but 1:22.3.0.50405-1577590.22.04 should be installed
Recommends: libtxc-dxtn-s2tc0 but is not installable or
But libtxc-dxtn0 is not installable
libgl1-amdgpu-mesa-dri:i386 : Depends on (before): mesa-amdgpu-va-drivers:i386 (= 1:22.3.0.50403-1538762.22.04) but 1:22.3.0.50405-1577590.22.04 should be installed become
Recommends: libtxc-dxtn-s2tc0:i386 but is not installable or
However, libtxc-dxtn0:i386 cannot be installed
mesa-amdgpu-va-drivers : Depends on: libllvm15.0.50405-amdgpu but should not be installed
mesa-amdgpu-va-drivers:i386 : Depends on: libllvm15.0.50405-amdgpu:i386 but should not be installed
E: Unmet dependencies. Try "apt --fix-broken install" without specifying a package (or provide a solution).
One would think that if you get a graphics card for 1000$, it would run without any problems, but with such a mess, one might think that the graphics card isn't worth the money. I don't know what to do. I just want what I buy to work. Do i expect to much?
Anyone know how I get rid of these errors I have. And maybe how to install an AMD 7900XTX on Ubuntu 22.04?
I have now at least solved the problem with the unmet dependencies. I have with
sudo dpkg --configure --pending
searched for all unmet dependencies. Then I forcibly removed them all
sudo dpkg --purge --force-all "package"
after then
sudo apt autoclean
and then
sudo apt update
sudo apt upgrade
Now i have a clean system without any unmet dependencies.
Now I still have to get the graphics card installed, but before I risk system chaos like this again, I urgently need to find out what kind of kernel I should use with Ubuntu 22.04.2 for the AMD 7900XTX