wireguard-install
wireguard-install copied to clipboard
Setup fails on ubuntu debian 10. Missing packages
The script fails at debian 10.
Job for [email protected] failed because the control process exited with error code. See "systemctl status [email protected]" and "journalctl -xe" for details. Created symlink /etc/systemd/system/multi-user.target.wants/[email protected] → /lib/systemd/system/[email protected].
Jul 10 10:39:26 hostname systemd[1]: Starting WireGuard via wg-quick(8) for wg0... Jul 19 10:39:26 hostname wg-quick[6156]: [#] ip link add wg0 type wireguard Jul 10 10:39:26 hostname -01 wg-quick[6156]: RTNETLINK answers: Operation not supported Jul 10 10:39:26 hostname -01 wg-quick[6156]: Unable to access interface: Protocol not supported Jul 10 10:39:26 hostname wg-quick[6156]: [#] ip link delete dev wg0 Jul 10 10:39:26 hostname wg-quick[6156]: Cannot find device "wg0" Jul 10 10:39:26 hostname : [email protected]: Main process exited, code=exited, sta Jul 10 10:39:26 hostname: [email protected]: Failed with result 'exit-code'. Jul 10 10:39:26 hostname Failed to start WireGuard via wg-quick(8) for wg0.
The fix:
apt install linux-headers-$(uname -r) wireguard-dkms wireguard-tools
After installing them and restarting wg-quick service for wg0. It works flawlessly.