6

I have troubles installing drivers for my TP-LINK Archer T3U on Ubuntu 18.04.

Having found out the device ID 2357:012d, I used this repo by @Jeremy31.

Namely, I downloaded the content, cd'ed into it, did make and make install.

What to do next?

sudo dkms add ./rtl8822bu

gives

Error! Could not find module source directory.
Directory: /usr/src/.-rtl8822bu does not exist.

How to properly install the driver?

3
  • Did you try sudo insmod rtl8822bu.ko and/or sudo modprobe...?
    – ubfan1
    Oct 4, 2019 at 23:14
  • @ubfan1 Both give not found
    – Rubi Shnol
    Oct 4, 2019 at 23:31
  • Not sure if it helps, but in my case it compiled to 8822bu.ko
    – mehdix
    Nov 28, 2019 at 15:23

3 Answers 3

19

As I am running kernel 5.3.4 in Ubuntu MATE 19.04, for me it was the drivers from Cilynx's GitHub repo for RTL88x2BU that worked out OK.

As detailed in the repo, I've installed the drivers using DKMS installation method:

git clone https://github.com/cilynx/rtl88x2bu.git
cd rtl88x2bu
VER=$(sed -n 's/\PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf)
sudo rsync -rvhP ./ /usr/src/rtl88x2bu-${VER}
sudo dkms add -m rtl88x2bu -v ${VER}
sudo dkms build -m rtl88x2bu -v ${VER}
sudo dkms install -m rtl88x2bu -v ${VER}
sudo modprobe 88x2bu
5
  • Thanks for sharing mate ;-).
    – codingdave
    Dec 5, 2019 at 12:55
  • 1
    This one works for me as well in Ubuntu 20.04 github.com/cilynx/… Jul 2, 2020 at 7:27
  • 2
    worked for me as well for Tp-Link Archer T3U AC1300 Mini in ubuntu 20.04
    – dimisjim
    Jun 8, 2021 at 7:47
  • Thank you so very much for sharing the proper solution, this solution worked for my Ubuntu 20.04 where I was trying to get TP-Link AC1300(Archer T3U Plus) to work, for some reason originally my system only supported TP-LINK N300-mini USB but now both my Wifi dongles work
    – Aditya
    Apr 7, 2022 at 15:34
  • Works with AC1300 on Ubuntu 18.04 for both 2G and 5G. May 22, 2023 at 21:27
3

Since you are in the rtl8822bu directory, try

sudo dkms add .
sudo dkms install 8822bu/1.1

9
  • The 1st one seemed to work, but the second gave me Error! Could not find module source directory. Directory: /usr/src/rtl8822bu-1.1 does not exist.
    – Rubi Shnol
    Oct 5, 2019 at 9:56
  • 1
    Try the sudo dkms install command as I just edited
    – Jeremy31
    Oct 5, 2019 at 11:28
  • It worked now, but I got Good news! Module version v5.1.0-5_17968.20160601_BTCOEX20160411-1400_beta for 8822bu.ko exactly matches what is already found in kernel 4.15.0-65-generic. DKMS will not replace this module.. Whereas lshw -C network doesn't list the TP-LINK adapter, like nothing happened
    – Rubi Shnol
    Oct 5, 2019 at 11:56
  • 1
    You may need to disable Secure Boot
    – Jeremy31
    Oct 5, 2019 at 14:24
  • hi @jeremy31 would this driver work with kernel 5.3 in Ubuntu 19.04? I've got another USB adapter (RTL8192EU) that needed patch for kernel 5.3 ( github.com/CGarces/rtl8192eu-linux-driver/tree/CGarces-patch-1 ) Many thanks.
    – Jags
    Oct 6, 2019 at 18:54
1

I had the same issue as you and I did as Jeremy 31 suggests in his answer. But even after all that lshw -C network didn't list the TP-LINK adapter, like nothing happened. What finally worked for me was switching the secure boot back on.

I am running Ubuntu 18.04 on a 5.4.0-42-generic kernel.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .