我最近买了一台 EW-7811UAC。我有 Ubuntu 16.10,但找不到适合我的内核的驱动程序。据我所知,其 realtek rtl8812AU 的所有驱动程序似乎都不是针对 ubuntu 16.10 Ubuntu 16.10 Yakkety Yak 的最新内核编码的。我有 Linux 内核 4.8.0-36-generic。
我尝试了两种方法,但都失败了。github.com/diederikdehaas/rtl8812AU 驱动程序给出的输出为
Kernel preparation unnecessary for this kernel. Skipping...
Building module: cleaning build area....
'make'....(bad exit status: 2)
ERROR (dkms apport): binary package for rtl8812AU: 4.3.14 not found
Error! Bad return status for module build on kernel: 4.8.0-36-generic (x86_64)
Consult /var/lib/dkms/rtl8812AU/4.3.14/build/make.log for more information."
我跑了dkms build -m ${DRV_NAME} -v ${DRV_VERSION}
make.log的内容是
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.8.0-36-generic/build M=/var/lib/dkms/rtl8812AU/4.3.14/build modules
make[1]: Entering directory '/usr/src/linux-headers-4.8.0-36-generic' CC [M] /var/lib/dkms/rtl8812AU/4.3.14/build/core/rtw_cmd.o
gcc: error: unrecognized command line option ‘-fstack-protector-strong’ scripts/Makefile.build:289: recipe for target '/var/lib/dkms/rtl8812AU/4.3.14/build/core/rtw_cmd.o' failed make[2]: *** [/var/lib/dkms/rtl8812AU/4.3.14/build/core/rtw_cmd.o]
Error 1 Makefile:1491: recipe for target '_module_/var/lib/dkms/rtl8812AU/4.3.14/build' failed make[1]: *** [_module_/var/lib/dkms/rtl8812AU/4.3.14/build] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-4.8.0-36-generic' Makefile:1576: recipe for target 'modules' failed make: *** [modules] Error 2"
- 我最终降级了内核并重新安装了 gcc,问题就解决了。驱动程序现在运行正常。我使用了这个驱动程序https://github.com/ulli-kroll/rtl8821au
答案1
Edimax 驱动程序太旧,无法在 Ubuntu 16.10 上运行。您需要更新驱动程序。以下是两个建议...