wireguard vpn 失败并出现错误:找不到设备“wg0”

M. *_*mie 5 vpn wireguard

您好,我是 ubuntu 的新手,我在大约 6 个月前安装了wireguard,并且运行良好,直到昨天我的 ubuntu 更新时,wirguard 不想出现,并给出以下状态:

May 31 08:41:03 lenovo systemd[1]: Starting WireGuard via wg-quick(8) for wg0...
May 31 08:41:03 lenovo wg-quick[5463]: [#] ip link add wg0 type wireguard
May 31 08:41:03 lenovo wg-quick[5463]: Error: Unknown device type.
May 31 08:41:03 lenovo wg-quick[5463]: Unable to access interface: Protocol not supported
May 31 08:41:03 lenovo wg-quick[5463]: [#] ip link delete dev wg0
May 31 08:41:03 lenovo wg-quick[5463]: Cannot find device "wg0"
May 31 08:41:03 lenovo systemd[1]: wg-quick@wg0.service: Main process exited, code=exited, 
status=1/FAILURE
May 31 08:41:03 lenovo systemd[1]: wg-quick@wg0.service: Failed with result 'exit-code'.
May 31 08:41:03 lenovo systemd[1]: Failed to start WireGuard via wg-quick(8) for wg0.
Run Code Online (Sandbox Code Playgroud)

这是我的 ubuntu 版本:Ubuntu 18.04.4 LTS

小智 6

尝试重新安装软件包wireguard-dkms(删除并重新安装)。之后可能需要重新启动。