Unable to install tp-link TL-WN822N wifi driver

I am using odroid Xu4 with ubuntu os without gui . I downloaded it from this link:(https://odroid.in/ubuntu_16.04lts/?C=M;O=A).After that i want to use my tp-link wifi device (TL-WN822N).So that i used this link:(https://raspberrypi.stackexchange.com/questions/67719/how-do-i-install-the-drivers-for-a-wifi-dongle-with-the-realtek-8812au-chipset-o) to install the driver for (TL-WN822N).But it did not installed correctly.i got error in it.


install: cannot create regular file '/lib/modules/4.14.30-v7+/kernel/drivers/net/wireless': No such file or directory
             depmod: ERROR: could not open directory /lib/modules/4.14.30-v7+: No such file or directory
             depmod: FATAL: could not search modules: No such file or directory

Also i got another error after some solution.


Checking for a 8192eu wifi driver module for your current kernel.
              A driver does not yet exist for this update.

I updated my kernal from 4.4.* to 4.14.29-125+ .But it also not fixed my problem.So,that i need to know how to install my wifi device.

Part two : I was using Dietpi OS with the XU4, but dietpi keeps updating regularly and breaks my build . Hence I wanted to change to a stable system and changed to Ubuntu. What are your suggestions regarding the switch? What OS is a stable OS for xu4 to run in production environments? Or is Dietpi itself stable enough for production environments?