20

How do you install AMD GPU drivers for Ubuntu 22.04 LTS (Desktop)? It only installs the archive and not the drivers.

Aiden Mecne
  • 241
  • 1
  • 2
  • 5

6 Answers6

9

Well I suppose you have installed the deb from amd.com, and looked at https://amdgpu-install.readthedocs.io/en/latest/

However, these instructions do not currently work, it seems. A lot of people around the interwebs have the same problem.

A couple of solutions have been presented, ie Unmet dependencies ubuntu 22.04 & amdgpu HIP support

But I myself haven't gotten any proposed solution to work. It seems we have to wait until amd at a random moment decides to actually fix this....

cadryc
  • 106
  • 1
  • 4
3

I ended up having to downgrade to Ubuntu 20.04. AMD drivers work fine with that, could not get them to work in 22.04 no matter what I tried.

Aelanna
  • 51
3

For Ubuntu 22.04 LTS Register kernel-mode driver.

Registering repositories

# Make the directory if it doesn't exist yet.
# This location is recommended by the distribution maintainers.
sudo mkdir --parents --mode=0755 /etc/apt/keyrings

Download the key, convert the signing-key to a full

keyring required by apt and store in the keyring directory

wget https://repo.radeon.com/rocm/rocm.gpg.key -O - |
gpg --dearmor | sudo tee /etc/apt/keyrings/rocm.gpg > /dev/null

Add the AMDGPU repository for the driver.

echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/amdgpu/6.0.2/ubuntu jammy main" \
    | sudo tee /etc/apt/sources.list.d/amdgpu.list

sudo apt update

Install kernel driver

sudo apt install amdgpu-dkms
sudo reboot

Then run sudo dpkg-reconfigure amdgpu-dkms

Karol78
  • 156
2

These are the official guideline to install proprietary AMD graphic drivers:

sudo dpkg -i ./amdgpu-install_....deb

sudo amdgpu-install -y --usecase=graphics,rocm

sudo usermod -a -G render,video $LOGNAME

  • reboot

It takes a lot of time, because it compiles all possible amdgpu modules, but it works.

sotirov
  • 4,379
MaxV
  • 189
0

It works for me with an amd radeon rx580 on Ubuntu 22.04.1 LTS. I use the 22.20.50204-1 version of the amd driver with linux-image-5.15.0-46-generic. I noticed this when I tried to fix the system when gui crashed on booting after installing the driver on a newer kernel version.

I chrooted from usb and removed all installed kernel versions as I knew there was trouble with newer kernels with another, a bit older, amd driver. Then I forgot to install the kernel version I had planned to install before i started the amdgpu-install in the chrooted system.

I used it with workstation profile, legacy opengl and vulkan pro and the installer installed the 5.15.0-46 kernel as dependency. All worked fine, modules were compiled and system is running with the new driver. I blocked the installation of newer kernel versions for the moment, but I will test newer ones from time to time ;-)

-1

The solution that worked for me -

I installed the gdebi package

sudo apt install gdebi

Then I went to and GPU drivers for linux

I downloaded the driver for Ubuntu 22.04. It is named amdgpu-install

I installed it using -

sudo gdebi amdgpu-install

Then,

sudo apt install amdgpu
Payel Senapati
  • 315
  • 1
  • 2
  • 12