Linux Wireguard: Failed to resolve interface

After updating to the 22 version of Linux Mint, an error message appeared in Wireguird.

Yesterday I updated to the new Linux version of Linux Mint. This is based on Ubuntu 22 and it looks like an error has crept in. In any case, there is this unsightly error message:

error
exit status 1
wg-quick's output:
[#] ip link add wg_config type wireguard
[#] wg setconf wg_config /dev/fd/63
[#] ip -4 address add 192.168.178.206/24 dev wg_config
[#] ip link set mtu 1420 up dev wg_config
[#] resolvconf -a tun.wg_config -m 0 -x
Failed to resolve interface "tun.wg_config": No such device
[#] ip link delete dev wg_config

The workaround is to remove “resolvconf” with “purge” and then restart the computer.

sudo apt purge resolvconf

Then it worked again.

Leave a Reply

Your email address will not be published. Required fields are marked *