Installing wireguard pulls in nvidia kernel

I’m using the official Ubuntu (focal) image on a Rock 5B. I’ve run apt update and apt full-upgrade, and now i’m trying to install wireguard for remote management. This seems to pull in what I assume would be the correct kernel for an NVidia tegra computer, but not my Rock 5B.

How would I best go about installing wireguard? Using boringtun and somehow getting wireguard-tools without using the package manager? Switching distros is not an option, I need Ubuntu focal for compatibility with a lot of other software later on.

If I were u I would check if your current kernel has the wire guard module(modprobe wireguard) and then pull the source for the wireguard utile from the project directly and compile them myself. It’s surprisingly easy with basically no prereqs and only takes seconds to compile. Just to be on the safe side do apt install build-essential before compiling

2 Likes

I ended up building wireguard-tools myself and packaging it, since i’m trying to install a package that depends on it, so apt needs to be aware that the package is installed. In addition, I’m using boringtun now so I don’t have to mess with the kernel.