Can't set up WireGuard

Topics about the Software of Revolution Pi
jemmima
Posts: 5
Joined: 23 Aug 2022, 16:22

Re: Can't set up WireGuard

Post by jemmima »

kjkoster wrote: 29 Aug 2022, 16:27
The instructions I posed are for Buster. What OS release are you on, please?
We weren't able to update to Buster - see post from my colleague here: viewtopic.php?t=3480

I'm on Stretch:

pi@RevPi42678:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
VERSION_CODENAME=stretch
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
JulesOnUpkeep
Posts: 1
Joined: 25 Aug 2023, 04:51

Re: Can't set up WireGuard

Post by JulesOnUpkeep »

I am using a core s3+ with the latest version of bullseye:

Code: Select all

cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Any ideas as to what the problem could be?
When running

Code: Select all

sudo apt install -y raspberrypi-kernel-headers wireguard-dkms wireguard
I get the following kernel error:

Code: Select all

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  dctrl-tools dkms wireguard-tools
Suggested packages:
  debtags menu
The following NEW packages will be installed:
  dctrl-tools dkms raspberrypi-kernel-headers wireguard wireguard-dkms wireguard-tools
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 9,729 kB of archives.
After this operation, 61.7 MB of additional disk space will be used.
Get:1 http://packages.revolutionpi.de bullseye/main arm64 raspberrypi-kernel-headers arm64 1:9.20230720+1-5.10.152-1+revpi11+1 [9,198 kB]
Get:2 http://deb.debian.org/debian bullseye/main arm64 dctrl-tools arm64 2.24-3 [101 kB]
Get:3 http://deb.debian.org/debian bullseye/main arm64 dkms all 2.8.4-3 [78.2 kB]
Get:4 http://deb.debian.org/debian bullseye/main arm64 wireguard-dkms all 1.0.20210219-1 [255 kB]
Get:5 http://deb.debian.org/debian bullseye/main arm64 wireguard-tools arm64 1.0.20210223-1 [88.9 kB]
Get:6 http://deb.debian.org/debian bullseye/main arm64 wireguard all 1.0.20210223-1 [8,164 B]
Fetched 9,729 kB in 25s (389 kB/s)
Selecting previously unselected package dctrl-tools.
(Reading database ... 92103 files and directories currently installed.)
Preparing to unpack .../0-dctrl-tools_2.24-3_arm64.deb ...
Unpacking dctrl-tools (2.24-3) ...
Selecting previously unselected package dkms.
Preparing to unpack .../1-dkms_2.8.4-3_all.deb ...
Unpacking dkms (2.8.4-3) ...
Selecting previously unselected package raspberrypi-kernel-headers.
Preparing to unpack .../2-raspberrypi-kernel-headers_1%3a9.20230720+1-5.10.152-1+revpi11+1_arm64.deb ...
Unpacking raspberrypi-kernel-headers (1:9.20230720+1-5.10.152-1+revpi11+1) ...
Selecting previously unselected package wireguard-dkms.
Preparing to unpack .../3-wireguard-dkms_1.0.20210219-1_all.deb ...
Unpacking wireguard-dkms (1.0.20210219-1) ...
Selecting previously unselected package wireguard-tools.
Preparing to unpack .../4-wireguard-tools_1.0.20210223-1_arm64.deb ...
Unpacking wireguard-tools (1.0.20210223-1) ...
Selecting previously unselected package wireguard.
Preparing to unpack .../5-wireguard_1.0.20210223-1_all.deb ...
Unpacking wireguard (1.0.20210223-1) ...
Setting up raspberrypi-kernel-headers (1:9.20230720+1-5.10.152-1+revpi11+1) ...
Setting up wireguard-tools (1.0.20210223-1) ...
wg-quick.target is a disabled or a static unit, not starting it.
Setting up dctrl-tools (2.24-3) ...
Setting up dkms (2.8.4-3) ...
Setting up wireguard-dkms (1.0.20210219-1) ...
Loading new wireguard-1.0.20210219 DKMS files...
It is likely that 5.10.152-rt75-v8 belongs to a chroot's host
Building for 5.10.152-rt75-v8
Building initial module for 5.10.152-rt75-v8
Error!  The /var/lib/dkms/wireguard/1.0.20210219/5.10.152-rt75-v8/aarch64/dkms.conf for module wireguard includes a BUILD_EXCLUSIVE directive which
does not match this kernel/arch.  This indicates that it should not be built.
Skipped.
Setting up wireguard (1.0.20210223-1) ...
Processing triggers for man-db (2.9.4-2) ...
kjkoster
Posts: 87
Joined: 12 Feb 2022, 10:42

Re: Can't set up WireGuard

Post by kjkoster »

Dear Jules.

I think on Bullseye you don't need the kernel module. Can you please try the following:

Code: Select all

sudo apt install -y raspberrypi-kernel-headers wireguard
You may probably even omit the raspberrypi-kernel-headers package, but not sure.

Kees Jan

See also: https://forums.debian.net/viewtopic.php?t=155324
Post Reply