WARNING: amdgpu dkms failed for running kernel (on both 16.04 & 18.04)

Since last 4 days, I am trying to install amdgpu pro drivers on my ubuntu system and I am getting error.

  1. I have downloaded drivers from here for Rx580.

  2. I am following installation instructions from here.

  3. First-time installation, I am getting dkms command not found.

enter image description here

  1. executing below command will show me to install dkms

    dkms status

  2. Installing dkms using below command

    sudo apt-get install dkms

  3. Then try to install using below command, and getting error below is the screenshot for the same.

    ./amdgpu-pro-install -y

enter image description here

  1. I have also tried on kernel 4.4 & 4.8 & 4.16 (getting above error on all kernels)

Below is my system configuration

enter image description here Motherboard


As someone pointed out in the forums (https://community.amd.com/thread/228245) the script is broken.

Provided that you have the right kernel and header version, you need to install the missing packages manually, run:

apt install amdgpu-dkms libdrm-amdgpu-amdgpu1 libdrm-amdgpu1 libdrm2-amdgpu