r/AMDSupport • • Oct 15 '26

Solved Ubuntu kernel update blocked by amdgpu

I have Ubuntu installed on my machine with the amdgpu package providing drivers. Aptitude now distributes a kernel upgrade which fails to install on my computer. An excerpt from the logs:

Building module:
Cleaning build area...(bad exit status: 2)
'make' KERNELVER=6.8.0-147-generic.................(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms.0.crash'
Error! Bad return status for module build on kernel: 6.8.0-147-generic (x86_64)
Consult /var/lib/dkms/amdgpu/6.16.13-2278356.24.04/build/make.log for more information.

Consulting the log file, I see a compile error, but I don't know how to handle it. What should I do?

EDIT: The answer is simply that there is a compatibility issue with the older kernel version. The recommended solution from AMD was to update to Ubuntu 26, and it did indeed fix the problem. A bit unfortunate to drop support like this given that Ubuntu 24 is still LTS.

3 Upvotes

9 comments sorted by

1

u/OwlGroundbreaking573 20d ago edited 18d ago

I had this when the kernel version changed 6.8.0-146 -> 6.8.0-147 on Ubuntu 24.04. It worked a bit, crashed and had a kernel panic. I upgraded to 26.04 and a newer version 7 of the kernel and it worked splendidly albeit I think with the open source drivers, pushing the gpu to the max in a webGL test, I’ll give it a few days and report back.

edit: Seems stable, no crashes, good performance.

1

u/y_shr 20d ago

This is what support told me too, and it seems to have worked for me. Will edit the post to add that

1

u/C1REX Oct 15 '26

This seems to be Ubuntu specific error. Potentially a bug. I have few Linux distros installed that I update often and I've never see this error before. Are you compiling the kernel yourself?

1

u/y_shr Oct 15 '26

No, I just get the kernel version distributed by Aptitude. I filed a support ticket with AMD, and I also noticed there were some issues in their Github repo related to this, so hopefully they work it out. But it's pretty bad for a driver update to brick stuff like this, especially for Ubuntu, a pretty widely used distro

1

u/C1REX Oct 15 '26

It's not confirmed if the problem is due to driver itself or how Ubuntu handles it. Especially if the problem exists only on Ubuntu. It can be 100% drivers fault but it's not confirmed from this short log. It can be Ubuntu problem not handling dependencies correctly for example. Or some other cause that is not clear yet.

1

u/y_shr Oct 26 '26

Been in touch with AMD support, they claim it's a compatibility issue between the kernel and the graphics driver. Hopefully they find the issue, I'm staying in touch

1

u/y_shr 26d ago

... and there they found it! They solved it for Ubuntu 26, so a simple OS update did the trick. A bit weird of a solution, though, given that Ubuntu 24 is in LTS for a few more years.

1

u/DerHolo Oct 20 '26

I'm getting the same for the lowlatency kernel:

Building module:
Cleaning build area...
'make' KERNELVER=6.8.0-147-lowlatency........(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms.0.crash'
Error! Bad return status for module build on kernel: 6.8.0-147-lowlatency (x86_64)
Consult /var/lib/dkms/amdgpu/6.12.12-2187269.24.04/build/make.log for more information.

1

u/y_shr Oct 27 '26

Which OS are you on? The guy I talked to at support claimed it was a compatibility issue, so that might affect you too