I ran updates and upgrades today and couldn't get WireGuard up:
$ sudo wg-quick up wg0
[#] ip link add wg0 type wireguard
Error: Unknown device type.
Unable to access interface: Protocol not supported
Purging and reinstalling WireGuard results in:
Setting up wireguard-dkms (1.0.20200429-2~18.04) ...
Loading new wireguard-1.0.20200429 DKMS files...
Building for 5.3.0-53-generic
Building initial module for 5.3.0-53-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/wireguard-dkms.0.crash'
Error! Bad return status for module build on kernel: 5.3.0-53-generic (x86_64)
Consult /var/lib/dkms/wireguard/1.0.20200429/build/make.log for more information.
Setting up wireguard-tools (1.0.20200513-1~18.04) ...
wg-quick.target is a disabled or a static unit, not starting it.
Setting up wireguard (1.0.20200513-1~18.04) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
ProblemType: Package
DKMSBuildLog:
DKMS make.log for wireguard-1.0.20200429 for kernel 5.3.0-53-generic (x86_64)
Wed May 20 09:54:57 PDT 2020
make: Entering directory '/usr/src/linux-headers-5.3.0-53-generic'
CC [M] /var/lib/dkms/wireguard/1.0.20200429/build/main.o
CC [M] /var/lib/dkms/wireguard/1.0.20200429/build/noise.o
CC [M] /var/lib/dkms/wireguard/1.0.20200429/build/device.o
CC [M] /var/lib/dkms/wireguard/1.0.20200429/build/peer.o
CC [M] /var/lib/dkms/wireguard/1.0.20200429/build/timers.o
CC [M] /var/lib/dkms/wireguard/1.0.20200429/build/queueing.o
CC [M] /var/lib/dkms/wireguard/1.0.20200429/build/receive.o
CC [M] /var/lib/dkms/wireguard/1.0.20200429/build/send.o
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/1.0.20200429/build/compat/compat.h:1024:20: error: redefinition of ‘skb_reset_redirect’
static inline void skb_reset_redirect(struct sk_buff *skb)
^~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/wireguard/1.0.20200429/build/compat/compat.h:870:0,
from <command-line>:0:
./include/linux/skbuff.h:4476:20: note: previous definition of ‘skb_reset_redirect’ was here
static inline void skb_reset_redirect(struct sk_buff *skb)
^~~~~~~~~~~~~~~~~~
In file included from <command-line>:0:0:
/var/lib/dkms/wireguard/1.0.20200429/build/compat/compat.h:1024:20: error: redefinition of ‘skb_reset_redirect’
static inline void skb_reset_redirect(struct sk_buff *skb)
Originally, I installed it with ppa:wireguard/wireguard - is the install different now with this kernel?