<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div style="font-family:Arial;">If you want to build/install wg from source, you can do what I do (automation is easy):<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">Download the source xz file and unpack it using xzcat and tar.  Navigate to the src directory and build the module and tools using the "make" command. Then use "sudo make install" to get the wg .ko file replaced with the latest one and install any updates to the tools and wg executable. If you do this after a kernel upgrade, you'll need to reboot the pi before you install the wg kernel module, otherwise it won't find the right kernel headers. <br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">A simple shell script can be made to do all this stuff for you. <br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">On Thu, Feb 21, 2019, at 6:30 PM, Derrick Lyndon Pallas wrote:<br></div><blockquote type="cite" id="fastmail-quoted"><p>I just use DKMS to do it. Check out WireGuard to /usr/src, ln -s
      WireGuard/src WireGuard-0, dkms add WireGuard/0. If it's not auto
      building, have you tried dkms install WireGuard/0? ~D<br></p><p><br></p><div class="fastmail-quoted-moz-cite-prefix">On 2/21/19 2:57 PM, Arpit Gupta wrote:<br></div><blockquote cite="mid:CAGCGytJE5bzXiXB8Go6aHk5OLT0D-m2AnKbRt=Nv1giEVrpsjA@mail.gmail.com" type="cite"><div dir="auto"><div style="font-family:Arial;">Ya reboot did not solve this for me. I will read
        up on how I can execute package pre/post install scripts. <br></div><div dir="auto"><br></div><div dir="auto">Curious to know if the rebuild the module is the
          responsibility of the os or the package after a kernel
          upgrade?<br></div><div dir="auto"><br></div><div dir="auto"><div style="font-family:Arial;">I will try to remember this next time there is a
          kernel upgrade 😁.<br></div><div style="font-family:Arial;"> <br></div><div style="font-family:Arial;"> <br></div><div dir="auto"><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">--<br></div><div style="font-family:Arial;"> Arpit<br></div></div></div></div><div style="font-family:Arial;"><br></div><div class="fastmail-quoted-gmail_quote"><div class="fastmail-quoted-gmail_attr" dir="ltr">On Thu, Feb 21, 2019, 4:30 AM
          <<a href="mailto:logcabin@fastmail.net">logcabin@fastmail.net</a>> wrote:<br></div><blockquote style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;" class="fastmail-quoted-gmail_quote"><div><div style="font-family:Arial;">Yes, the kernel did get
              updated, causing the wg module dependencies to get out of
              sync. A reboot after the update should solve this,
              otherwise you may need to run the package's preinst script
              to get the modules back in sync. Should be no need to
              reinstall the wg packages.<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">On Thu, Feb 21, 2019, at 2:14
              AM, Arpit Gupta wrote:<br></div><blockquote id="fastmail-quoted-m_-2690143954488973293fastmail-quoted" type="cite"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:Arial;">Hi All<br></div><div><br></div><div>I am running raspberry pi v3 and ran apt-get
                        update and upgrade commands to get upto date. It
                        also ended up updating the kernel i think. I
                        should have paid more attention to what all was
                        getting updated.<br></div><div><br></div><div>After the update wireguard was not running
                        and upon debugging i found that the wireguard
                        kernel module was no longer present. So i
                        uninstalled all wireguard packages and installed
                        them again and the module showed up and on
                        reboot system was back to normal. What i was
                        curious was how should one go about doing
                        os/kernel updates in future in order to avoid
                        this issue?<br></div><div><br></div><div>I am running<br></div><div>Linux raspberrypi 4.14.98-v7+ #1200 SMP Tue
                        Feb 12 20:27:48 GMT 2019 armv7l GNU/Linux<br></div><div><div>No LSB modules are available.<br></div><div>Distributor ID:<span style="white-space:pre-wrap;"> </span>Raspbian<br></div><div>Description:<span style="white-space:pre-wrap;"> </span>Raspbian
                          GNU/Linux 9.8 (stretch)<br></div><div>Release:<span style="white-space:pre-wrap;"> </span>9.8<br></div><div>Codename:<span style="white-space:pre-wrap;"> </span>stretch<br></div><div><br></div><div><div>ii  wireguard                     
                             0.0.20190123-1               all         
                            fast, modern, secure kernel VPN tunnel
                            (metapackage)<br></div><div>ii  wireguard-dkms                 
                            0.0.20190123-1               all         
                            fast, modern, secure kernel VPN tunnel (DKMS
                            version)<br></div><div>ii  wireguard-tools               
                             0.0.20190123-1               armhf       
                            fast, modern, secure kernel VPN tunnel
                            (userland utilities)<br></div></div><div><br></div><div><div dir="ltr" class="fastmail-quoted-m_-2690143954488973293fastmail-quoted-gmail_signature"><div dir="ltr"><div>--<br></div><div style="font-family:Arial;">Arpit<br></div></div></div></div></div></div></div></div></div><div>_______________________________________________<br></div><div>WireGuard mailing list<br></div><div><a rel="noreferrer" href="mailto:WireGuard@lists.zx2c4.com">WireGuard@lists.zx2c4.com</a><br></div><div><a rel="noreferrer" href="https://lists.zx2c4.com/mailman/listinfo/wireguard">https://lists.zx2c4.com/mailman/listinfo/wireguard</a><br></div><div><br></div></blockquote><div style="font-family:Arial;"><br></div></div><div style="font-family:Arial;">_______________________________________________<br></div><div style="font-family:Arial;"> WireGuard mailing list<br></div><div style="font-family:Arial;"> <a rel="noreferrer" href="mailto:WireGuard@lists.zx2c4.com">WireGuard@lists.zx2c4.com</a><br></div><div style="font-family:Arial;"> <a rel="noreferrer noreferrer" href="https://lists.zx2c4.com/mailman/listinfo/wireguard">https://lists.zx2c4.com/mailman/listinfo/wireguard</a><br></div></blockquote></div><div style="font-family:Arial;"><br></div><pre class="fastmail-quoted-moz-quote-pre" wrap="">_______________________________________________
WireGuard mailing list
<a href="mailto:WireGuard@lists.zx2c4.com" class="fastmail-quoted-moz-txt-link-abbreviated">WireGuard@lists.zx2c4.com</a>
<a href="https://lists.zx2c4.com/mailman/listinfo/wireguard" class="fastmail-quoted-moz-txt-link-freetext">https://lists.zx2c4.com/mailman/listinfo/wireguard</a>
<br></pre></blockquote><div>_______________________________________________<br></div><div>WireGuard mailing list<br></div><div>WireGuard@lists.zx2c4.com<br></div><div>https://lists.zx2c4.com/mailman/listinfo/wireguard<br></div><div><br></div></blockquote><div style="font-family:Arial;"><br></div></body></html>