[Solved] How to install Realtek rtl8812au WiFi Driver in Linux Ubuntu

Recently I did some upgrades on my home network:

1. Upgraded my Internet connection from 100Mbps to 400Mbps

2. Upgraded my router to Netgear R6700 Nighthawk AC1750 Smart Dual Band WiFi Router so I can take advantage of the upgraded Internet connection

However, I noticed the network card in my laptop is too old and does not support 5G wireless connection, so it means I need a new network card. We all know it is not that hard to replace a network card in laptop nowadays thanks to the better design of current laptops, but I was too lazy to do it. So I decided to buy a USB network adapter with 5G connection capability for my laptop and I found a really nice one on Amazon: Zoweetek 600Mbps Dual Band WiFi Dongle

It’s very compact and the connection speed according to the product description is just right for me, and the price is reasonable. The installation in Windows is no brainer, just double-click the installation file on the installation CD (included in the package) and follow the instructions to install the driver and the management tool.

Once installed, this little device runs well in Windows 10 and my laptop’s connection speed increased greatly. While I am satisfied with the device in Windows, I would like to als use it in Linux Ubuntu before my laptop is a dual-boot: Windows 10 + Ubuntu 17.10, and the production description says it supports Linux, and it is a major reason that I chose this product in the first place.

Well, it turned out it is much harder than I expected when installing Linux driver for this dongle.

First of all, the driver on the installation CD (or downloaded from the company’s website) does not work in my Ubuntu because it only supports the Linux kernel up to 3.16, while Ubuntu 17.10 runs on kernel 4.13

Secondly, there is a Linux driver installation video on the company’s website, but it does not work for me either. And the reason is the same as above.

So I started to Google around to see how other people got it work in Ubuntu. Here is what I found out and how I got it work in Ubuntu 17.10.

1). Confirm your USB wireless adapter is using Realtek chipset

Open a terminal in Ubuntu, then type in this command


If you see “Realtek Semiconductor Corp.” in the list, then move to the next step

2). The Linux driver for this particular dongle is “rtl8812au”, and that’s why the installation video on the company’s website is called “Install the Realtek rtl8812au Wifi Driver in Linux”. If you Google it, you will find a couple of tutorials showing you how to install the Linux driver via git. And I have tried all of them, but they didn’t work for me. Finally I found out that Ubuntu already included rtl8812au driver in its repository, so if you are using Ubuntu 17.10 and having trouble installing rtl8812au driver from git, just type in the following commands in a terminal:

sudo apt update
sudo apt install dkms
sudo apt install rtl8812au-dkms

After the installation, reboot your computer, then you will see Ubuntu Network Manager can recognize the USB WiFi adapter and you can use it to connect to your network. I just found another reason to love Ubuntu over other Linux distributions 🙂

5 thoughts on “[Solved] How to install Realtek rtl8812au WiFi Driver in Linux Ubuntu”

  1. Hi, I run the exact commands you gave up there but after reboot it still didn’t recognise the usb wife adapter. Im running Xubuntu 17.10 and trying to install the RTL8811au wifi adapter. Appreciate if you could help..

      1. Hi there, I’ve just installed Linux Mint 18.3 (not using Xubuntu 17.10 anymore). Did the steps above but get this error:

        ERROR (dkms apport): kernel package linux-headers-4.13.0-36-generic is not supported

        Any idea why and and how to solve this? Thanks in advance!

  2. Abhishek Singh

    i have done almost everything but syill, i am not able to connect wifi in my hp laptop after installing ununtu 17.10

  3. OK, guys. it seems that after updating the kernel, the built-in dkms package does not work anymore. To make it work, we need to manually install a third-party rtl8812au package from Github. Here are the steps:
    1. Uninstall rtl8812au-dkms from your system: sudo apt remove rtl8812au-dkms
    2. Locate all rtl8812au packages on your computer if you installed but forgot: sudo dkms status
    3. Remove all dkms packages related to rtl8812au. If the last command shows you something like this:
    rtl8812au, 4.2.2, 4.13.0-25-generic, x86_64: built
    rtl8812au, 4.2.2, 4.13.0-32-generic, x86_64: installed (WARNING! Diff between built and installed module!)
    rtl8812au,, 4.13.0-32-generic, x86_64: built
    rtl8812au,, 4.13.0-25-generic, x86_64: built
    rtl8812au,, 4.13.0-32-generic, x86_64: built
    Then run the following command to remove them:
    sudo dkms remove rtl8812au/ –all
    sudo dkms remove rtl8812au/4.2.2 –all
    4. After cleaning up all the rtl8812au packages, let’s download and install the working rtl8812au dkms package:
    sudo apt update
    sudo apt install git
    git clone https://github.com/gnab/rtl8812au.git
    sudo dkms add ./rtl8812au
    sudo dkms build rtl8812au/4.2.2
    sudo dkms install rtl8812au/4.2.2
    5. Run this command
    sudo modprobe 8812au

    Now Network Manager should recognize the adapter, if now, then reboot the computer and try again with Network Manager.

Leave a Comment

Your email address will not be published. Required fields are marked *