Hi, I noticed that since wireguard has been included in kernels from 5.4 onwards, if I am not mistaken, it makes sense for wireguard-dkms to not be built for kernels 6.x.
However, maybe the DKMS error should be handled in some way or a notice be printed if DKMS attempts to build the module for kernels >5.4, instead of just failing, which results in a dpkg error with no additional information. Sorry if this bug should not have been raised (as it is expected wireguard- dkms should not be used with kernels > 5.4), but maybe the suggestion of making it clearer is useful. Thanks, Jonas.