The wireguard virtual package should imply "modules|dkms", and in general the order for the recommends here should change to "modules|dkms". Additionally, the dkms module should skip kernels that already have wireguard. We fixed this in Debian two ways, here:
The wireguard virtual package should imply "modules|dkms", and in general the order for the recommends here should change to "modules|dkms". Additionally, the dkms module should skip kernels that already have wireguard. We fixed this in Debian two ways, here:
1. https:/ /salsa. debian. org/debian/ wireguard- linux-compat/ -/blob/ debian/ master/ debian/ patches/ 0002-Avoid- trying- to-compile- on-debian- 5.5-kernels- Closes. patch
Ubuntu will need a similar patch as this, but with slightly different semantics, likely.
2. https:/ /salsa. debian. org/debian/ wireguard/ -/commit/ 2d36365079f4668 660963c5c819db3 b544c5d56f
This changes the Depends order accordingly.