たいりょーくんのメモ

Twitterにツイートするノリで気軽にメモしていくためのブログです。詳しくは https://tiryoh.hateblo.jp/about をお読みください。

TP-Link AC600 Archer T2U NanoをUbuntu 18.04で使う

環境

$ uname -a
Linux h270m 5.4.0-58-generic #64~18.04.1-Ubuntu SMP Wed Dec 9 17:11:11 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.4 LTS
Release:    18.04
Codename:   bionic

https://amzn.to/3aNRYX4

最終的にうまくいった方法

github.com

上記のコミット5521bf9(2020年12月27日時点での最新版)

git clone https://github.com/aircrack-ng/rtl8812au.git
cd rtl8812au
make
sudo make install

試したこと(うまくいかなかった方法)

github.com

$ sudo ./dkms-install.sh
About to run dkms install steps...
Error! DKMS tree already contains: rtl8812au-5.3.4
You cannot add the same module/version combo more than once.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
'make' -j4 KVER=5.4.0-58-generic KSRC=/lib/modules/5.4.0-58-generic/build....(bad exit status: 2)
ERROR (dkms apport): binary package for rtl8812au: 5.3.4 not found
Error! Bad return status for module build on kernel: 5.4.0-58-generic (x86_64)
Consult /var/lib/dkms/rtl8812au/5.3.4/build/make.log for more information.

Kernel preparation unnecessary for this kernel.  Skipping...
https://github.com/aircrack-ng/rtl8812au
Building module:
cleaning build area...
'make' -j4 KVER=5.4.0-58-generic KSRC=/lib/modules/5.4.0-58-generic/build....(bad exit status: 2)
ERROR (dkms apport): binary package for rtl8812au: 5.3.4 not found
Error! Bad return status for module build on kernel: 5.4.0-58-generic (x86_64)
Consult /var/lib/dkms/rtl8812au/5.3.4/build/make.log for more information.
Finished running dkms install steps.

参考

askubuntu.com