Updated

What you see

Bringing up a WireGuard interface with wg-quick stops partway and prints:
[#] ip link add wg0 type wireguard
[#] resolvconf -a wg0 -m 0 -x
/usr/bin/wg-quick: line 32: resolvconf: command not found

What it means

When a config has a DNS line, wg-quick hands the address to the resolvconf program so the system uses it while the tunnel is up. Minimal Debian and Ubuntu server images don't include resolvconf, so wg-quick stops — leaving the interface half set up.
Quick fix
Install resolvconf (sudo apt install resolvconf), take down the half-created interface with sudo wg-quick down wg0, then bring it up again. On a server, you can also simply delete the DNS line.

Causes and how to fix them

1. resolvconf isn't installed

Install it. On Debian and Ubuntu:
sudo apt install resolvconf
On Fedora, RHEL and Arch the equivalent package is called openresolv.

2. A server config has a DNS line it doesn't need

DNS belongs in the client's config — it tells the device where to look up names while connected. A server already has working DNS, so a DNS line in its wg0.conf (copied over from a client config, usually) only causes this error. Delete the line and run wg-quick up again.

3. The interface was left half-created

After a failed wg-quick up, the next attempt can fail with “wg0 already exists”. Remove the leftover first, then retry:
sudo wg-quick down wg0
sudo wg-quick up wg0

Using Nullsify?

The server side of a Nullsify config carries no DNS line, so Nullsify servers don't hit this. Client configs do set a DNS server (1.1.1.1), so a Linux laptop that brings them up with wg-quick can hit this itself and needs the same fix; the phone and desktop apps apply DNS on their own.
Free for 1 server. Bring your own VPS — Nullsify configures WireGuard, AmneziaWG or VLESS on it for you.

Related problems

Read more