Power & Source of Big Ideas

R4SE Ubuntu bullseye - Wireguard kernel issue

Moderators: chensy, FATechsupport

I tried everything, but I am stuck.
I want to install Wireguard onto ubuntu bullseye OS on NanoPi R4SE board.
Installation is successful, but starting fails with this error:
Oct 02 09:31:46 NanoPi-R4SE wg-quick[7327]: [#] sysctl -w net.ipv4.ip_forward=1
Oct 02 09:31:46 NanoPi-R4SE wg-quick[7327]: net.ipv4.ip_forward = 1
Oct 02 09:31:46 NanoPi-R4SE wg-quick[7327]: [#] ip link add wg0 type wireguard
Oct 02 09:31:46 NanoPi-R4SE wg-quick[7327]: RTNETLINK answers: Operation not supported
Oct 02 09:31:46 NanoPi-R4SE wg-quick[7327]: Unable to access interface: Protocol not supported
Oct 02 09:31:46 NanoPi-R4SE wg-quick[7327]: [#] ip link delete dev wg0
Oct 02 09:31:46 NanoPi-R4SE wg-quick[7327]: Cannot find device "wg0"
Oct 02 09:31:46 NanoPi-R4SE systemd[1]: wg-quick@wg0.service: Failed with result 'exit-code'.
Oct 02 09:31:46 NanoPi-R4SE systemd[1]: Failed to start WireGuard via wg-quick(8) for wg0.

It seems kernel headers is not provided in provided OS images:
rk3399-sd-debian-bullseye-minimal-4.19-arm64-20230314.img
rk3399-sd-debian-buster-desktop-4.19-arm64-20230314.img

Please help me understand how to get this resolved. I really want Wireguard to work.
Many thanks in advance!
Hello,
I think you should verify kernel headers. Confirm whether the necessary kernel headers are available in the provided OS images. You can check this by running the following command:

Code: Select all

apt list linux-headers-$(uname -r)

If the command returns a package name, it means the kernel headers are available. If not, you will need to find and install the appropriate kernel headers manually.

Who is online

In total there are 10 users online :: 0 registered, 0 hidden and 10 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 10 guests