cancel
Showing results for 
Search instead for 
Did you mean: 

Drivers & Software

Haskuu
Journeyman III

Can't install Radeon drivers on Ubuntu 20.04 (5.4.0-54-generic)

I recently got an rx-6800 xt GPU and installed it in my system, it works great in Windows but I can't install the proper drivers in Linux.

I downloaded the install package from the AMD website, and ran it with sudo ./amdgpu-install -y

I got an error about amdgpu-dkms not being configured, so searched and found this post:

https://community.amd.com/t5/drivers-software/can-t-install-amdgpu-drivers-on-ubuntu-20-04-1-5-4-0-5...

which was solved by downgrading the kernel version to 5.4.0-54 from 5.4.0-56. I was already on 5.4.0-54, but still getting the same problem. Any help with this would be much appreciated.

Output of the amdgpu-install script (The full log exceeded the character limit so I started at the post-install script where the error happens):

Running the post_install script:

depmod...

DKMS: install completed.
Building initial module for 5.8.0-48-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms.0.c
rash'
Error! Bad return status for module build on kernel: 5.8.0-48-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.6.20.906316-1188099/build/make.log for more infor
mation.
dpkg: error processing package amdgpu-dkms (--configure):
 installed amdgpu-dkms package post-installation script subprocess returned erro
r exit status 10
dpkg: dependency problems prevent configuration of amdgpu:
 amdgpu depends on amdgpu-dkms (= 1:5.6.20.906316-1188099); however:
  Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu (--configure):
 dependency problems - leaving unconfigured
Setting up xserver-xorg-amdgpu-video-amdgpu (1:19.1.0-1188099) ...
No apport report written because the error message indicates its a followup erro
r from a previous failure.
                          Setting up mesa-amdgpu-omx-drivers:amd64 (1:20.1.6-118
8099) ...
Setting up libegl1-amdgpu-mesa:amd64 (1:20.1.6-1188099) ...
Setting up libegl1-amdgpu-mesa:i386 (1:20.1.6-1188099) ...
Setting up libgl1-amdgpu-mesa-glx:amd64 (1:20.1.6-1188099) ...
Setting up libgl1-amdgpu-mesa-glx:i386 (1:20.1.6-1188099) ...
Setting up libgles2-amdgpu-mesa:amd64 (1:20.1.6-1188099) ...
Setting up libgles2-amdgpu-mesa:i386 (1:20.1.6-1188099) ...
Setting up libgl1-amdgpu-mesa-dri:amd64 (1:20.1.6-1188099) ...
Setting up libgl1-amdgpu-mesa-dri:i386 (1:20.1.6-1188099) ...
Setting up libosmesa6-amdgpu:amd64 (1:20.1.6-1188099) ...
Setting up libosmesa6-amdgpu:i386 (1:20.1.6-1188099) ...
Setting up gst-omx-amdgpu (1.0.0.1-1188099) ...
Setting up libegl1-amdgpu-mesa-drivers:amd64 (1:20.1.6-1188099) ...
Setting up libegl1-amdgpu-mesa-drivers:i386 (1:20.1.6-1188099) ...
Setting up amdgpu-lib (20.45-1188099) ...
Setting up amdgpu-lib32 (20.45-1188099) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Errors were encountered while processing:
 amdgpu-dkms
 amdgpu
E: Sub-process /usr/bin/dpkg returned an error code (1)

 

0 Likes
1 Reply
baszczer
Adept III

You need to remove 5.8 kernel.

0 Likes