I have new computer with:
- CPU: AMD Ryzen 7950x
- GPU: Powercolor Red Devil 7900 xtx
- M.2: kingston skc3000s1024g
- PSU: Gigabyte UD1000GM
- Motherboard: Asus Tuf x670e gaming plus wifi
I tried dual booting Ubuntu with Windows 11. But, still didn't work.
The problem I have is that I have tried installing Ubuntu before. After, booting (HDMI plugged in Motherboard, else it doesn't work) I have updated drivers to Linux 6.2 and 6.1, than installing AMD drivers.
However, every time I installed drivers it crashed and didn't turn on anymore.
Before crashing it gave this error:

I think the driver update may have something wrong with it (twice - with Linux 6.2 and 6.1), because at the end of installation it said something about dkpg failing to install, because it didn't find something.
I quite liked making it work, but at the end it threw me into Grub terminal, and computer booted for longer. So I stopped, because I don't want to destroy my computer. Though I don't think I can, still I'm a beginner.
My goal was to install ROCm for deep learning.
Can anyone please help me? I'm really desperate.
Is there any other way to install ROCm on computer (it can also be CentOS) and make it work, without that much hassle.