wireguard one-click app suddenly does not work: RTNETLINK answers

Creating wireguard from one-click always run well, but suddenly failure:
login and run: sudo wg-quick up wg0

root@li1712-156:~# sudo wg-quick up wg0
[#] ip link add wg0 type wireguard
RTNETLINK answers: Operation not supported
Unable to access interface: Protocol not supported
[#] ip link delete dev wg0
Cannot find device "wg0"

some guys suggest this command:

root@li1712-156:~# sudo modprobe wireguard
modprobe: FATAL: Module wireguard not found in directory /lib/modules/4.9.0-11-amd64

3 Replies

Hello,

I was testing this out on a Linode I quickly set up with the one-click-app utility for Wireguard. When running the commands without setting up my client, I get the exact same errors as you did.[1](Thanks for sending those!) Did you set up the client node like your local computer or a different remote host?

I am going to continue with the instructions and see if I run into the same problem after I configure my client. Be right back!

All the best to you!

--
Nygel B.
Linode Support Team

[1]

root@li1848-103:~# wg-quick up wg0
[#] ip link add wg0 type wireguard
RTNETLINK answers: Operation not supported
Unable to access interface: Protocol not supported
[#] ip link delete dev wg0
Cannot find device "wg0"

root@li1848-103:~# modprobe wireguard
modprobe: FATAL: Module wireguard not found in directory /lib/modules/4.9.0-11-amd64

Hello,

I've been working on this to see what I could see and it seems there is a problem with the kernel not loading the wireguard module. However, I have not found anything online that helped to resolve this. This [1] was a good write up but the kernels did match. I tried using older kernels, older Oses, different OSes, updating the new ones but to no avail. We'll continue to work on this and we thank you for your patience.

-Nygel

Linode Support Team

[1]
https://wesley.sh/solved-attempting-to-install-and-configure-wireguard-fails-with-unknown-device-type-and-fatal-module-wireguard-not-found-in-directory/

Hey there,

I ran into this as well. The wireguard-dkms module would not build due to missing kernel headers. Once installed, an apt-get install --reinstall wireguard-dkms fixed up the problem.

To install the headers I had to install the specific kernel version, the meta package 'linux-headers' was a no go for reasons I've not investigated yet.

Note: This is using Debian's 'unstable' repo - YMMV may vary on others.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct