0
tpanum

Installation of Wireguard

Recommended Posts

Hello,

 

I have been struggling with this for a while, found some replies on the other communities but I simply cannot get Wireguard up and running on my Odroid HC2 with Armbian.

 

Running...

echo "deb http://deb.debian.org/debian/ unstable main" > /etc/apt/sources.list.d/unstable-wireguard.list
printf 'Package: *\nPin: release a=unstable\nPin-Priority: 90\n' > /etc/apt/preferences.d/limit-unstable
apt update
apt install -y linux-headers-odroidxu4 wireguard

yields...

 

Loading new wireguard-0.0.20181218 DKMS files...
dpkg: warning: version '3.10.106-odroidxu4
4.19.14' has bad syntax: invalid character in revision number
Building for 4.19.14-odroidxu4
Module build for kernel 4.19.14-odroidxu4 was skipped since the
kernel headers for this kernel does not seem to be installed.

 

Do I really need to compile Wireguard from source? :-(

Share this post


Link to post
Share on other sites

Sorry, I did it on a Armbian/Ubuntu on Nanopi Neo 2, so your specifics will vary.  Hopefully the following will still work:

 

First, you're going to need the kernel headers, so (for my specific version/device):

apt install linux-headers-4.14.70-sunxi64

In my case, this brings in headers for *every* arch, and the current wireguard install doesn't like this, so:

cd /usr/src/linux-headers-4.14.70-sunxi64/
mkdir unusedArch
cd arch
sudo mv * ../unusedArch/
cd ../unusedArch/
mv arm64/* ../arch/
add-apt-repository ppa:wireguard/wireguard
apt update
apt install wireguard  wireguard-tools wireguard-dkms

Hope it helps.

Share this post


Link to post
Share on other sites

I don't know why, but I had similar issues with wireguard on cubietruck and on opi pc.

It was mostly a matter of headers in my case. Even with armbian config I was not able to install the headers some times and on other occasions DKMS was not able to install wireguard.

My workarounds are:

1. check manually apt (eg apt-cache search linux-headers-xxxx) for the correct header package (stable or next or whatever) for your board and kernel from armbian repo  and manually install them. Then try to install wireguard with dkms.

2. If this does not work, install the headers, get the source of wireguard (check the wireguard webpage for manual installation) make & and make install and this should work even if you encounter erros during make. This is really trivial, just two commands as root!!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0