I solved this problem the following way (your version may be different):

cd /var/lib/dkms/amdgpu/6.0.5-1620033.22.04/
sudo mv source source_back
sudo mv build source

The required config is in the build folder

Answer from Stormy on askubuntu.com
🌐
Server Fault
serverfault.com › questions › 1128100 › how-do-i-fix-amdgpu-and-amdgpu-dkms-packages-not-installing
linux - How do I fix amdgpu and amdgpu-dkms packages not installing? - Server Fault
Bad return status for module build ... dependency problems prevent configuration of amdgpu: amdgpu depends on amdgpu-dkms; however: Package amdgpu-dkms is not configured yet....
Discussions

troubleshooting failed rocm (amdgpu-dkms) installation
Post in Twitter and tag to Anush Elangovan.. More on reddit.com
🌐 r/ROCm
19
4
October 7, 2025
opencl - amdgpu-pro installation failed and now dependencies problem - Stack Overflow
Package amdgpu-hwe is not installed. ... not configured yet. Package amdgpu-pro-hwe is not installed. dpkg: error processing package amdgpu-pro-lib32 (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: amdgpu-dkms amdgpu ... More on stackoverflow.com
🌐 stackoverflow.com
Trouble with AMD drivers on Ubuntu 20.10, 5.8.0 kernel

dpkg: dependency problems prevent configuration of amdgpu:

amdgpu depends on amdgpu-dkms (= 1:5.6.14.224-1147286); however:

This should be where the problem is.

More on reddit.com
🌐 r/linux4noobs
17
2
December 12, 2021
linux - AMDGPU installation fails due to dependency problems on POP OS 20.0.4 - Unix & Linux Stack Exchange
Bad return status for module build ... configuration of am dgpu: amdgpu depends on amdgpu-dkms (= 1:5.6.14.224-1147286); however: Package amdgpu-dkms is not configured yet.... More on unix.stackexchange.com
🌐 unix.stackexchange.com
November 16, 2020
🌐
Einstein@Home
einsteinathome.org › content › troubleshooting-ubuntu-20-and-fresh-install-amd-drivers
Troubleshooting Ubuntu 20 and a fresh install of Amd drivers | Einstein@Home
January 10, 2021 - [Edit] The AMD Community post SOLVED explains that a failed AMD-DKMS build blacklists the driver and you need to get rid of that first. Then get rid of the amd-dkms module and finally install with the --no-dkms option. https://community.amd.com/t5/drivers-software/can-t-install-amdgpu-driv...
🌐
Reddit
reddit.com › r/rocm › troubleshooting failed rocm (amdgpu-dkms) installation
r/ROCm on Reddit: troubleshooting failed rocm (amdgpu-dkms) installation
October 7, 2025 -

Hi folks, I'm trying to get the new rocm 7 working, after I gave up with rocm 6 a while ago. So I might have messed up something in the previous attempt.

I'm generally good with computers and I've been using a bit of Linux on and off for many years, but when things don't work right away, I'm usually completely lost as to how to troubleshoot it, so I hope you can give me general advice in that regard and hopefully solve my specific problem.

I'm following the official installation guide (here) and it did a lot of stuff but it's having trouble to install the "amdgpu-dkms" package. It says not supported. partial output:

u/pop-os:~$ wget https://repo.radeon.com/amdgpu-install/7.0.1/ubuntu/jammy/amdgpu-install_7.0.1.70001-1_all.deb
sudo apt install ./amdgpu-install_7.0.1.70001-1_all.deb

[omitting lots of stuff that worked]

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up amdgpu-dkms (1:6.14.14.30100100-2212064.22.04) ...
Removing old amdgpu-6.14.14-2212064.22.04 DKMS files...
Deleting module amdgpu-6.14.14-2212064.22.04 completely from the D
KMS tree.
Loading new amdgpu-6.14.14-2212064.22.04 DKMS files...
Building for 6.16.3-76061603-generic
Building for architecture x86_64
Building initial module for 6.16.3-76061603-generic
ERROR (dkms apport): kernel package linux-headers-6.16.3-76061603-
generic is not supported
Error! Bad return status for module build on kernel: 6.16.3-760616
03-generic (x86_64)
Consult /var/lib/dkms/amdgpu/6.14.14-2212064.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
Errors were encountered while processing:
 amdgpu-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

So why is it not supported? According to the official requirements (here) I should be fine. They support Ubuntu 22.04, I have PopOS 22.04 (which is based on Ubuntu so it shouldn't be a problem, no?):

@pop-os:~$ uname -m && cat /etc/*release
x86_64
DISTRIB_ID=Pop
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Pop!_OS 22.04 LTS"
[...]

The support various kernels, but I'm assuming higher kernel versions should work? What's with the GA and HWE anyway? I have:

uname -srm
Linux 6.16.3-76061603-generic x86_64

With rocm 7 my Radeon 9070 XT is now officially supported (see here) and it's properly working in games and returns correctly in terminal:

pop-os:~$ lspci | grep -i 'vga\|3d\|2d'
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 48 [RX 9070/9070 XT] (rev c0)
10:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Granite Ridge [Radeon Graphics] (rev cb)

Anyway, so it *should* work. How do I find out the root cause and how do I fix it? Any pointers welcome. Is this even the right place to ask such things? Where would I get better troubleshooting advice?

🌐
Linux Mint Forums
forums.linuxmint.com › board index › main edition support › beginner questions
[SOLVED] AMD GPU driver update installation issue - Linux Mint Forums
June 15, 2022 - Bad return status for module build ... configuration of amdgpu: amdgpu depends on amdgpu-dkms (= 1:5.6.0.15-1098277); however: Package amdgpu-dkms is not configured yet....
🌐
Stack Overflow
stackoverflow.com › questions › 65436040 › amdgpu-pro-installation-failed-and-now-dependencies-problem
opencl - amdgpu-pro installation failed and now dependencies problem - Stack Overflow
Bad return status for module build on kernel: 5.8.0-7630-generic (amd64) Consult /var/lib/dkms/amdgpu/5.6.20.906316-1188099/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 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.
🌐
Reddit
reddit.com › r/linux4noobs › trouble with amd drivers on ubuntu 20.10, 5.8.0 kernel
r/linux4noobs on Reddit: Trouble with AMD drivers on Ubuntu 20.10, 5.8.0 kernel
December 12, 2021 -

Hey everyone,

I've been running Ubuntu 20.04 for a while with the latest AMD 20.40 drivers for my R9 390 with the 5.4.0-52.57 kernel all fine, but a few days ago I upgraded to Ubuntu 20.10 and the 5.8.0-26.31 kernel and my displays were not configured properly. I traced it down to what seems to be the driver, I've tried running the dpkg fix, manually reinstalling amdgpu-dkms, and amdgpu-uninstall and reinstalling the drivers but I always seem to come to this:

Error! Bad return status for module build on kernel: 5.8.0-26-generic (x86_64)

Consult /var/lib/dkms/amdgpu/5.6.14.224-1147286/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

Setting up tzdata (2020d-1ubuntu1) ...

Current default time zone: 'America/New_York'

Local time is now: Thu Oct 29 22:29:01 EDT 2020.

Universal Time is now: Fri Oct 30 02:29:01 UTC 2020.

Run 'dpkg-reconfigure tzdata' if you wish to change it.

dpkg: dependency problems prevent configuration of amdgpu:

amdgpu depends on amdgpu-dkms (= 1:5.6.14.224-1147286); however:

Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu (--configure):

dependency problems - leaving unconfigured

No apport report written because the error message indicates its a followup error from a previous failure.

Errors were encountered while processing:

amdgpu-dkms

amdgpu

E: Sub-process /usr/bin/dpkg returned an error code (1)

Is this just an issue with the AMD drivers not being compatible with the new kernel headers? Or do I have something improperly set up somewhere?

Find elsewhere
🌐
Linux Mint Forums
forums.linuxmint.com › board index › main edition support › hardware support › graphics cards & monitors
Trouble with installing AMD's propriertary GPU drivers - Linux Mint Forums
Bad return status for module build ... configuration of amdgpu: amdgpu depends on amdgpu-dkms (= 1:5.6.20.906316-1188099); however: Package amdgpu-dkms is not configured yet....
🌐
Stack Exchange
unix.stackexchange.com › questions › 646603 › popos-20-10-unable-to-install-amd-gpu-drivers
debian - POPos 20.10 unable to install amd gpu drivers - Unix & Linux Stack Exchange
January 29, 2022 - Bad return status for module build on kernel: 5.11.0-7612-generic (amd64) Consult /var/lib/dkms/amdgpu/5.6.0.15-1098277/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 dpkg: dependency problems prevent configuration of amdgpu: amdgpu depends on amdgpu-dkms (= 1:5.6.0.15-1098277); however: Package amdgpu-dkms is not configured yet.
🌐
Kubuntu Forums
kubuntuforums.net › forum › newbie-support › help-the-new-guy › 665902-error-processing-package-amdgpu-dkms
error processing package amdgpu-dkms - Kubuntu Forums
October 13, 2022 - Bad return status for module build on kernel: 5.15.0-52-generic (x86_64) Consult /var/lib/dkms/amdgpu/5.6.0.15-1098277/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 No apport report written because the error message indicates its a followup error from a previous failure. dpkg: dependency problems prevent configuration of amdgpu: amdgpu depends on amdgpu-dkms (= 1:5.6.0.15-1098277); however: Package amdgpu-dkms is not configured yet.
🌐
Stack Exchange
unix.stackexchange.com › questions › 616251 › amgpu-dkms-package-kernel-module-build-error
linux - amgpu-dkms package kernel module build error - Unix & Linux Stack Exchange
October 25, 2020 - Bad return status for module build on kernel: 5.9.0-1-amd64 (amd64) Consult /var/lib/dkms/amdgpu/5.6.5.24-1109583/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 dpkg: dependency problems prevent configuration of amdgpu: amdgpu depends on amdgpu-dkms (= 1:5.6.5.24-1109583); however: Package amdgpu-dkms is not configured yet.
🌐
Reddit
reddit.com › r/debian › installing amdgpu on debian 10
r/debian on Reddit: installing amdgpu on debian 10
October 20, 2022 -

I am trying to install amdgpu-pro on debian 10 kernel 4.19.0-13, and I am getting the following error:

$ sudo apt upgrade Reading package lists... Done Building dependency tree        Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up amdgpu-dkms (1:5.4.7.62-1084971) ... Removing old amdgpu-5.4.7.62-1084971 DKMS files...  ------------------------------ Deleting module version: 5.4.7.62-1084971 completely from the DKMS tree. ------------------------------ Done. Loading new amdgpu-5.4.7.62-1084971 DKMS files... Building for 4.19.0-13-amd64 Building for architecture amd64 Building initial module for 4.19.0-13-amd64 Error! Bad return status for module build on kernel: 4.19.0-13-amd64 (amd64) Consult /var/lib/dkms/amdgpu/5.4.7.62-1084971/build/make.log for more information. dpkg: error processing package amdgpu-dkms adamluco@lucocc:~/a (--configure):  installed amdgpu-dkms package post-installation script subprocess returned error exit status 10 dpkg: dependency problems prevent configuration of amdgpu:  amdgpu depends on amdgpu-dkms (= 1:5.4.7.62-1084971); however:   Package amdgpu-dkms is not configured yet.  dpkg: error processing package amdgpu (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of amdgpu-pro:  amdgpu-pro depends on amdgpu (= 20.10-1084971); however:   Package amdgpu is not configured yet.  dpkg: error processing package amdgpu-pro (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of amdgpu-pro-lib32:  amdgpu-pro-lib32 depends on amdgpu (= 20.10-1084971) | amdgpu-hwe (= 20.10-1084971); however:   Package amdgpu is not configured yet.   Package amdgpu-hwe is not installed.  amdgpu-pro-lib32 depends on amdgpu-pro (= 20.10-1084971) | amdgpu-pro-hwe (= 20.10-1084971); however:   Package amdgpu-pro is not configured yet.   Package amdgpu-pro-hwe is not installed.  dpkg: error processing package amdgpu-pro-lib32 (--configure):  dependency problems - leaving unconfigured Errors were encountered while processing:  amdgpu-dkms  amdgpu  amdgpu-pro  amdgpu-pro-lib32 E: Sub-process /usr/bin/dpkg returned an error code (1) 

I get the same error when trying to install using the install files

Top answer
1 of 4
1

My situation is a little different since I'm using a headless server for crypto mining, but I was getting the same error message regarding amdgpu-dkms. I did manage to get 20.45 driver working on Ubuntu Server 20.04 using the following steps:

./amdgpu-pro-install --opencl=legacy,pal,rocr --headless -y

omit --headless if using desktop gui. errors will still be present

get mainline kernel update script

wget https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh/master/ubuntu-mainline-kernel.sh

install kernel update script

sudo install ubuntu-mainline-kernel.sh /usr/local/bin/

run kernel update script

sudo ubuntu-mainline-kernel.sh -i

script will display most current kernel available and ask for confirmation to install. In my case it was 5.10.1-051001-generic

after reboot, mining software still didn't work. amdgpu didn't show up in lsmod so I did:

sudo modprobe amdgpu

and suddenly my mining software worked. haven't tried rebooting because I'm just so relieved that it started working.

I also installed kernel 5.6.19 at one point and ran update-initramfs -u

I don't think that had any effect but just mentioning it for completeness.

2 of 4
0

Based on the AMD notes https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux-20-45. Please try to downgrade the kernel to 5.4.0-55.61. Well, in your case, you may need to upgrade the kernel. You may need to use update-alternatives to select a newer version of g++

A new kernel linux-image-5.4.0-58-generic just released, maybe you could try that kernel to see if it works.

🌐
GitHub
github.com › pop-os › pop › issues › 1135
AMDGPU-PRO DKMS module doesn't install · Issue #1135 · pop-os/pop
July 8, 2020 - Issue/Bug Description: When trying to install amdgpu-pro drivers version 20.20 for Ubuntu 20.04 that are required to use DaVinci Resolve, as it needs recent OpenCL version, amdgpu-dkms installation fails with error: ERROR (dkms apport): kernel package linux-headers-5.4.0-7634-generic is not ...
Author   pop-os
🌐
GitHub
github.com › ROCm › ROCm › issues › 6193
[Issue]: amdgpu-install with dkms fails to build on Ubuntu 26.04 · Issue #6193 · ROCm/ROCm
April 29, 2026 - I understand this is not a supported kernel yet, but I hope this report will assist in adopting the most recent version of Ubuntu LTS. TL;DR this breaks: "amdgpu-install -y" this works: "amdgpu-install -y --usecase=rocm --no-dkms"
Author   ROCm
🌐
Ubuntu Forums
ubuntuforums.org › archive › index.php › t-2467094.html
Ubuntu Community Hub
September 15, 2021 - The meeting point for the Ubuntu community.
🌐
Infinitive Host
infinitivehost.com › knowledge-base › fixing-amdgpu-and-amdgpu-dkms-installation-issues
Fixing AMDGPU and AMDGPU-DKMS Installation Issues
June 20, 2025 - bash sudo apt install build-essential dkms linux-headers-$(uname -r) ... Download the appropriate AMD driver package for your system from the AMD website. Ensure you download the correct package for your GPU and Linux distribution. ... Run the installer script.