Score:2

wireguard error message: resolvconf: command not found

gb flag

Ubuntu newbie here, with Ubuntu 22.04.2 LTS.

My employer uses Wireguard and they sent me the .conf file. The file name is sp.conf, and they clearly told me not to modify it at all. This means I can skip the server configuration.

So I installed it on my Ubuntu pc:

sudo apt-get install wireguard

The sp.conf is in my home directory, so I ran this:

sudo wg-quick up sp 

And it returned:

[#] ip link add sp type wireguard
[#] wg setconf sp /dev/fd/63
[#] ip -4 address add 10.140.0.11/32 dev sp
[#] ip link set mtu 1420 up dev sp
[#] resolvconf -a sp -m 0 -x
/usr/bin/wg-quick: line 32: resolvconf: command not found
[#] ip link delete dev sp

I'm completely lost here. Any help will be very much appreciated. Thank you.

ec flag
**Welcome to the Ask Ubuntu community.** While I can't duplicate this issue, there's an offsite discussion that came up in a quick web search: https://superuser.com/q/1500691. In short, you'll need to modify your WG install process to take `systemd` functionality into account.
Score:1
us flag

Seems like resolvconf command is missing in your system or it isn't installed, try this:

sudo apt install openresolv

I found this solution on https://superuser.com/questions/1500691/usr-bin-wg-quick-line-31-resolvconf-command-not-found-wireguard-debian

Score:0
sz flag

Check out

https://github.com/runfalk/synology-wireguard/issues/56

I removed the DNS line in my *.conf file with a simple text editor and it works like a charm.

P. S. Backup the original *.conf in a safe place before trying this.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.