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.comI 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
From the comments...
Get the latest AMD driver at https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux-21-40-2
Update: latest drivers at https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux-23-10-3
troubleshooting failed rocm (amdgpu-dkms) installation
opencl - amdgpu-pro installation failed and now dependencies problem - Stack Overflow
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.comlinux - AMDGPU installation fails due to dependency problems on POP OS 20.0.4 - Unix & Linux Stack Exchange
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?
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?
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.
here's my output on dpkg -a
if it gives anyone any other idea ?-?
Loading new amdgpu-5.6.14.224-1147286 DKMS files...
Building for 5.8.0-26-generic
Building for architecture x86_64
Building initial module for 5.8.0-26-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms.0.crash'
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
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
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.
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.
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
Just curious, what's your goal in installing amdgpu-pro as opposed to the open source version?
I remember reading some benchmarks saying that the pro version isn't better in gaming and such as opposed to the open source version. Otherwise, if you just need OpenCL for things like blender and such, it's easier to run this script: https://gist.github.com/kytulendu/3351b5d0b4f947e19df36b1ea3c95cbe
Just for future, on reddit try to use pastebin instead of copy/paste to reddit. As reddit doesn't like copy/paste, and instead of getting nice list you get long, broken, and messy thing.
So when asking for help it is way easier to read through it. Whenever I had to copy to reddit I would need to manually go through it and 'fix' it.
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?