Problems Installing Wireguard

Test and fix the Kernel 4.14 features
Post Reply
odroidhc2_mtl
Posts: 2
Joined: Thu Feb 28, 2019 12:20 pm
languages_spoken: english
ODROIDs: HC2
Has thanked: 0
Been thanked: 0
Contact:

Problems Installing Wireguard

Unread post by odroidhc2_mtl » Thu Feb 28, 2019 12:25 pm

Hi,

I'm trying to install wireguard but I'm running into issues. I installed the linux image and header for 4.14.102-138. Below is the error I'm getting when trying to do "apt install wireguard-dkms"

Code: Select all

DKMS make.log for wireguard-0.0.20190123 for kernel 4.14.102-138 (armv7l)
Wed Feb 27 22:14:05 EST 2019
make: Entering directory '/usr/src/linux-headers-4.14.102-138'
  AR      /var/lib/dkms/wireguard/0.0.20190123/build/built-in.o
  CC [M]  /var/lib/dkms/wireguard/0.0.20190123/build/main.o
In file included from ./include/linux/netfilter.h:8:0,
                 from ./include/linux/netfilter/nf_conntrack_tuple_common.h:6,
                 from ./include/linux/netfilter/nf_conntrack_dccp.h:29,
                 from ./include/net/netns/conntrack.h:11,
                 from ./include/net/net_namespace.h:27,
                 from ./include/net/genetlink.h:7,
                 from /var/lib/dkms/wireguard/0.0.20190123/build/compat/compat.h:654,
                 from <command-line>:0:
./include/linux/if.h:28:54: fatal error: sys/socket.h: No such file or directory
compilation terminated.
scripts/Makefile.build:326: recipe for target '/var/lib/dkms/wireguard/0.0.20190123/build/main.o' failed
make[1]: *** [/var/lib/dkms/wireguard/0.0.20190123/build/main.o] Error 1
Makefile:1535: recipe for target '_module_/var/lib/dkms/wireguard/0.0.20190123/build' failed
make: *** [_module_/var/lib/dkms/wireguard/0.0.20190123/build] Error 2
make: Leaving directory '/usr/src/linux-headers-4.14.102-138'
Do you guys know what I can do here?

Thanks for your help.

big hc2 fan

User avatar
odroid
Site Admin
Posts: 32368
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 147 times
Been thanked: 325 times
Contact:

Re: Problems Installing Wireguard

Unread post by odroid » Thu Feb 28, 2019 2:05 pm

I could build it on Ubuntu 18.04 with Kernel 4.14.102-156. I think you might use Ubuntu 16.04.

Code: Select all

odroid@odroid:~$ sudo add-apt-repository ppa:wireguard/wireguard
[sudo] password for odroid: 
 WireGuard is a novel VPN that runs inside the Linux Kernel. This is the Ubuntu packaging for WireGuard. More info may be found at its website, listed below.

More info: https://www.wireguard.com/
Packages: wireguard wireguard-tools wireguard-dkms

Install with: $ apt install wireguard

For help, please contact <email address hidden>
 More info: https://launchpad.net/~wireguard/+archive/ubuntu/wireguard
Press [ENTER] to continue or Ctrl-c to cancel adding it.

Hit:1 http://ppa.launchpad.net/apt-fast/stable/ubuntu bionic InRelease                                                       
Hit:2 http://ports.ubuntu.com/ubuntu-ports bionic InRelease                                                                  
Get:3 http://deb.odroid.in/5422-s bionic InRelease [1704 B]         
Hit:4 http://archive.canonical.com/ubuntu bionic InRelease                                                                
Hit:5 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease                                                       
Hit:6 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease                               
Hit:7 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease    
Get:8 http://ppa.launchpad.net/wireguard/wireguard/ubuntu bionic InRelease [15.9 kB]
Get:9 http://ppa.launchpad.net/wireguard/wireguard/ubuntu bionic/main armhf Packages [940 B]
Get:10 http://ppa.launchpad.net/wireguard/wireguard/ubuntu bionic/main Translation-en [800 B]
Fetched 19.3 kB in 5s (3540 B/s)         
Reading package lists... Done
odroid@odroid:~$ sudo apt install wireguard
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  dkms fakeroot libfakeroot linux-headers-4.15.0-45 linux-headers-4.15.0-45-generic linux-headers-generic wireguard-dkms
  wireguard-tools
The following NEW packages will be installed:
  dkms fakeroot libfakeroot linux-headers-4.15.0-45 linux-headers-4.15.0-45-generic linux-headers-generic wireguard
  wireguard-dkms wireguard-tools
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 12.5 MB of archives.
After this operation, 90.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://ppa.launchpad.net/wireguard/wireguard/ubuntu bionic/main armhf wireguard-dkms all 0.0.20190123-wg1~bionic [551 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main armhf dkms all 2.3-3ubuntu9.2 [68.0 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports bionic/main armhf libfakeroot armhf 1.22-2ubuntu1 [21.6 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports bionic/main armhf fakeroot armhf 1.22-2ubuntu1 [60.3 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main armhf linux-headers-4.15.0-45 all 4.15.0-45.48 [11.0 MB]
Get:6 http://ppa.launchpad.net/wireguard/wireguard/ubuntu bionic/main armhf wireguard-tools armhf 0.0.20190123-wg1~bionic [75.9 kB]
Get:7 http://ppa.launchpad.net/wireguard/wireguard/ubuntu bionic/main armhf wireguard all 0.0.20190123-wg1~bionic [4136 B]   
Get:8 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main armhf linux-headers-4.15.0-45-generic armhf 4.15.0-45.48 [767 kB]
Get:9 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main armhf linux-headers-generic armhf 4.15.0.45.47 [2348 B]       
Fetched 12.5 MB in 16s (789 kB/s)                                                                                            
Selecting previously unselected package dkms.
(Reading database ... 158785 files and directories currently installed.)
Preparing to unpack .../0-dkms_2.3-3ubuntu9.2_all.deb ...
Unpacking dkms (2.3-3ubuntu9.2) ...
Selecting previously unselected package libfakeroot:armhf.
Preparing to unpack .../1-libfakeroot_1.22-2ubuntu1_armhf.deb ...
Unpacking libfakeroot:armhf (1.22-2ubuntu1) ...
Selecting previously unselected package fakeroot.
Preparing to unpack .../2-fakeroot_1.22-2ubuntu1_armhf.deb ...
Unpacking fakeroot (1.22-2ubuntu1) ...
Selecting previously unselected package linux-headers-4.15.0-45.
Preparing to unpack .../3-linux-headers-4.15.0-45_4.15.0-45.48_all.deb ...
Unpacking linux-headers-4.15.0-45 (4.15.0-45.48) ...
Selecting previously unselected package linux-headers-4.15.0-45-generic.
Preparing to unpack .../4-linux-headers-4.15.0-45-generic_4.15.0-45.48_armhf.deb ...
Unpacking linux-headers-4.15.0-45-generic (4.15.0-45.48) ...
Selecting previously unselected package linux-headers-generic.
Preparing to unpack .../5-linux-headers-generic_4.15.0.45.47_armhf.deb ...
Unpacking linux-headers-generic (4.15.0.45.47) ...
Selecting previously unselected package wireguard-dkms.
Preparing to unpack .../6-wireguard-dkms_0.0.20190123-wg1~bionic_all.deb ...
Unpacking wireguard-dkms (0.0.20190123-wg1~bionic) ...
Selecting previously unselected package wireguard-tools.
Preparing to unpack .../7-wireguard-tools_0.0.20190123-wg1~bionic_armhf.deb ...
Unpacking wireguard-tools (0.0.20190123-wg1~bionic) ...
Selecting previously unselected package wireguard.
Preparing to unpack .../8-wireguard_0.0.20190123-wg1~bionic_all.deb ...
Unpacking wireguard (0.0.20190123-wg1~bionic) ...
Setting up wireguard-tools (0.0.20190123-wg1~bionic) ...
Setting up dkms (2.3-3ubuntu9.2) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up linux-headers-4.15.0-45 (4.15.0-45.48) ...
Setting up libfakeroot:armhf (1.22-2ubuntu1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Setting up linux-headers-4.15.0-45-generic (4.15.0-45.48) ...
Setting up wireguard-dkms (0.0.20190123-wg1~bionic) ...
Loading new wireguard-0.0.20190123 DKMS files...
It is likely that 4.14.102-156 belongs to a chroot's host
Building for 4.14.102-156, 4.14.29-125 and 4.15.0-45-generic
Building initial module for 4.14.102-156
Done.

wireguard:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.14.102-156/updates/dkms/

depmod...

DKMS: install completed.
Module build for kernel 4.14.29-125 was skipped since the
kernel headers for this kernel does not seem to be installed.
Building initial module for 4.15.0-45-generic
Done.

wireguard:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.15.0-45-generic/updates/dkms/

depmod...

DKMS: install completed.
Setting up fakeroot (1.22-2ubuntu1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode
Setting up wireguard (0.0.20190123-wg1~bionic) ...
Setting up linux-headers-generic (4.15.0.45.47) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...

odroidhc2_mtl
Posts: 2
Joined: Thu Feb 28, 2019 12:20 pm
languages_spoken: english
ODROIDs: HC2
Has thanked: 0
Been thanked: 0
Contact:

Re: Problems Installing Wireguard

Unread post by odroidhc2_mtl » Thu Feb 28, 2019 2:35 pm

Thank you for your answer.

Yes I am, I didn't realize that Wireguard was not supported on Ubuntu 16.04. I need to flash 18.04 on an SD card correct? There's no way to upgrade to 18.04 from 16.04?

User avatar
odroid
Site Admin
Posts: 32368
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 147 times
Been thanked: 325 times
Contact:

Re: Problems Installing Wireguard

Unread post by odroid » Thu Feb 28, 2019 2:57 pm

"do-release-upgrade" might work. But many users reported there were some negative side effects.
If you want to try, you have to backup important data first.

Post Reply

Return to “Linux Kernel 4.14 Debugging Party”

Who is online

Users browsing this forum: No registered users and 1 guest