I have a VPS server running Ubuntu 18.04 LTS where I wanted to install a WireGuard VPN service. I have started with adding the repository and then installing the module which is running fine and without any error messages.
add-apt-repository ppa:wireguard/wireguard apt-get update apt-get install wireguard-dkms wireguard-tools
Then, I wanted to load the kernel module using
sudo modprobe wireguard
modprobe tells me, that it is unable to locate the kernel module.
modprobe: ERROR: ../libkmod/libkmod.c:514 lookup_builtin_file() could not open builtin file '/lib/modules/4.15.0/modules.builtin.bin' modprobe: FATAL: Module wireguard not found in directory /lib/modules/4.15.0
Rereading the console output, the installer told me that it had installed the module to
modprobe seems to look only into
/lib/modules/4.15.0/. I have already tried to create a symlink into the 4.15.0-directory, but
modprobe still is not able to locate the module file.
The Ubuntu Server was 'out of box', since I was renewing it. Is anyone who can help?