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
🌐
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...
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
🌐
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....
🌐
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.
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.

🌐
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

🌐
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
🌐
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.
🌐
Reddit
reddit.com › r/pop_os › [issue] amdgpu-dkms error on most app installs
r/pop_os on Reddit: [Issue] AMDGPU-DKMS error on most app installs
February 12, 2024 -

Hey guys,

I am generally a linux noob and only downloaded pop to play around with stable diffusion on an AMD gpu with rocm support since windows dont yet support this at all and directml has awful memory leaks. I had ubuntu in the past and thought I'd try something else now since it should not matter. Well I got that running with some workarounds. mainly rocm and AMD drivers would not get installed as the os identifier needs to be ubuntu and not pop. Did just that and then returned the identifier back to pop. Now, no matter what I am trying to install I get something along the lines of:

Setting up amdgpu-dkms (1:6.3.6.60002-1718217.22.04) ...
Removing old amdgpu-6.3.6-1718217.22.04 DKMS files...
Deleting module amdgpu-6.3.6-1718217.22.04 completely from the DKMS tree.
Loading new amdgpu-6.3.6-1718217.22.04 DKMS files...
Building for 6.6.10-76060610-generic
Building for architecture amd64
Building initial module for 6.6.10-76060610-generic
ERROR (dkms apport): kernel package linux-headers-6.6.10-76060610-generic is not
 supported
Error! Bad return status for module build on kernel: 6.6.10-76060610-generic (am
d64)
Consult /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/make.log for more informa
tion.
dpkg: error processing package amdgpu-dkms (--configure):
 installed amdgpu-dkms package post-installation script subprocess returned erro
r exit status 10
Setting up synaptic (0.90.2build1) ...
Setting up libcairo-perl:amd64 (1.109-2build1) ...
Setting up libglib-perl:amd64 (3:1.329.3-2build1) ...
Setting up libcairo-gobject-perl:amd64 (1.005-3build1) ...
Setting up libglib-object-introspection-perl (0.049-1+build2) ...
Setting up libgtk3-perl (0.038-1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for libc-bin (2.35-0ubuntu3.6) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Errors were encountered while processing:
 amdgpu-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

This was attempting to install synaptic package manager. But even on installing more language packs and other stuff, the installation hangs for a while and then gives the above or similar AMDGPU related error while most of the time the package I was trying to install is installed correctly without issues. I am sure I am missing something as I am a complete noob. Is there a way to stop this check automatically for all future package pulls since it does not affect the actual packages and only serves to make my pull request hang for a while? I do not wish to uninstall and reinstall amd drivers as that could mess my whole stable diffusion installation (I was pulling and downloading for 20+ hours, dayum and settings are so finicky). is setting the ID on sudo nano /etc/os-release to ubuntu and leaving it as such OK or can it create other issues down the line?

Any other recommendations?

Top answer
1 of 3
4
OK, for anyone needing this, I fixed my issue currently by just doing: sudo dkms remove -m amdgpu -v 6.3.6-1718217.22.04 --all the exact version of the dkms module that needs to be removed can be found here: dkms status After that force remove from packages too: sudo dpkg --remove --force-remove-reinstreq amdgpu-dkms and finish with: sudo apt update sudo apt upgrade sudo apt autoremove to clean leftovers. So all in all for anyone wanting to run stable diffusion with Pop OS and an AMD gpu with the rocm optimization this is what I did: I run sudo nano /etc/os-release to change ID from pop to ubuntu and be able to download and install the latest ubuntu driver from AMD directly. I then installed OpenCL with sudo amdgpu-install --usecase=opencl --no-dkms this trick from the TS here . Then proceeded with all the steps of FE-Engineer on this video , starting with sudo amdgpu-install --usecase=graphics,rocm (was initial stuck at installing the drivers and the rocm usecase, but the step before that fixed this) and the rest and finally run sudo nano /etc/os-release to change the ID back to pop. The above got stable diffusion working but the dkms module of the drivers was stuck in a limbo where it was trying to be configured everytime I installed/updated anything on my system. That is of course because it is not compatible with the kernel. Luckily, it is not needed (drivers and rocm themselves work fine) so it can be removed with the above method after the installation. Kinda worried what will break in case of kernel updates failing to reconfigure the installed drivers but that is a problem of the future (will potentially have to manually install the AMD site drivers and remove the dkms module again afterwards). Getting ~3it/s with 6600xt 8gb and no memory leaks. Running with: --listen --enable-insecure-extension-access --opt-sdp-attention --no-half --precision full --upcast-sampling --no-half-vae --medvram
2 of 3
1
sudo mkdir --parents --mode=0755 /etc/apt/keyrings wget https://repo.radeon.com/rocm/rocm.gpg.key -O - | gpg --dearmor | sudo tee /etc/apt/keyrings/rocm.gpg > /dev/null echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/amdgpu/6.2/ubuntu noble main" | sudo tee /etc/apt/sources.list.d/amdgpu.list sudo apt update sudo apt upgrade sudo apt install python3-distupgrade ubuntu-release-upgrader-core ubuntu-release-upgrader-gtk echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/rocm/apt/6.2 noble main" | sudo tee --append /etc/apt/sources.list.d/rocm.list echo -e 'Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600' | sudo tee /etc/apt/preferences.d/rocm-pin-600 sudo apt update sudo apt install amdgpu-dkms sudo reboot sudo apt install rocm sudo reboot