Workaround for xtrx-dkms bug on 24.02.2 LTS Noble?

New install of Xubuntu on a Toshiba laptop (not a virtual machine)
lsb_release -a = Ubuntu 24.02.2 LTS Noble
uname -a = Linux Xubuntu 6.11.0-21-generic #21~24.04.1-Ubuntu

The OS appeared to install properly but any software I install generates a variety of dkpg errors:
Error! Bad return status for module build on kernel: 6.11.0-21-generic (x86_64)
Consult /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/make.log for more information.
dkms autoinstall on 6.11.0-21-generic/x86_64 succeeded for broadcom-sta
dkms autoinstall on 6.11.0-21-generic/x86_64 failed for xtrx(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.

  • dkms: autoinstall for kernel 6.11.0-21-generic
    …fail!
    run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11

/var/crash/xtrx-dkms.0.crash contains many errors such as:
'struct uart_state’ has no member named ā€˜xmit’
implicit declaration of function ā€˜uart_circ_empty’
invalid use of undefined type ā€˜struct circ_buf’

Even trying delete and reinstall xtrx-dkms creates the same errors.

After some research I think this is a knows bug:
xtrx-dkms fails to build on kernel 6.11.x

Although the bug status is ā€œconfirmedā€, I see it is still unassigned after some period of time.
So my question is how do I resolve this?
Do I have to wait until the bug is finally fixed?
Is there a workaround or alternate package to install?
Should I just wipe the disk and reinstall a previous version?
(But wouldn’t everyone else be having this same problem?)

Over the years I’ve done many installations of Ubuntu (although mostly on virtual machines) and never had a problem. But I’m not certain how to resolve this so any help or suggestions would be appreciated!

Do you use SDR a lot or are developing it ?

If not, you could probably live without the XTRX driver until it is fixed and just run sudo apt purge xtrx-dkms and watch the bug so you know when you can use your SDR again …

Thank you, thank you!!
Wow, that worked perfectly.

No, now that I understand what it does there’s no need for xtrx-dkms. I’m very familiar with SDR from my hobbies but this machine won’t have any connection to those. However this machine does interface with other radios so perhaps it got installed as a dependency with some other some bundled software for applications I’m not using.

I should have been able to figure this out, but I’m puzzled as I thought I had tried removing xtrx-dkms. But I must have used apt remove because I don’t recall ever using apt purge. It looks like apt purge took it right out of the kernel(?) as well so it won’t be included in other builds(?).

But whatever the case, that did the trick! Everything installs fine now without pages of dpkg errors from xtrx. Thanks again, very much appreciate your help!

1 Like

Great, apt remove leaves the configs and data around (so it is still there when you re-install a package), while purge makes sure to leave no trace behind …