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?

Rubi Shnol
  • 363
  • 1
  • 3
  • 13

3 Answers3

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
Jags
  • 2,176
  • Thanks for sharing mate ;-). – codingdave Dec 05 '19 at 12:55
  • 1
    This one works for me as well in Ubuntu 20.04 https://github.com/cilynx/rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959 – Kamiel Ahmadpour Jul 02 '20 at 07:27
  • 2
    worked for me as well for Tp-Link Archer T3U AC1300 Mini in ubuntu 20.04 – dimisjim Jun 08 '21 at 07: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 07 '22 at 15:34
  • Works with AC1300 on Ubuntu 18.04 for both 2G and 5G. – scottlittle May 22 '23 at 21:27
3

Since you are in the rtl8822bu directory, try

sudo dkms add .
sudo dkms install 8822bu/1.1
Jeremy31
  • 12,602
  • 10
  • 58
  • 114
  • 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 05 '19 at 09:56
  • 1
    Try the sudo dkms install command as I just edited – Jeremy31 Oct 05 '19 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 05 '19 at 11:56
  • 1
    You may need to disable Secure Boot – Jeremy31 Oct 05 '19 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 ( https://github.com/CGarces/rtl8192eu-linux-driver/tree/CGarces-patch-1 ) Many thanks. – Jags Oct 06 '19 at 18:54
  • @Jags Try it as I am not using the 5.3 kernel – Jeremy31 Oct 06 '19 at 19:43
  • @jeremy31 Driver installation didn't go through. Detailed log at https://paste.ubuntu.com/p/g4JmKbrSJD/ . Error: 'make' all KVER=5.3.4-050304-generic..........(bad exit status: 2) ERROR (dkms apport): binary package for 8822bu: 1.1 not found Error! Bad return status for module build on kernel: 5.3.4-050304-generic (x86_64) Consult /var/lib/dkms/8822bu/1.1/build/make.log for more information. Many thanks. – Jags Oct 06 '19 at 20:20
  • Well I found this repo: https://github.com/cilynx/rtl88x2BU and it worked with kernel 5.3.4 – Jags Oct 06 '19 at 21:53
  • Thank you so much. It worked very well! – Ritesh Jagga Sep 03 '21 at 08:35
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.

Kulfy
  • 17,696
Yishi
  • 11