我按照这里的说明进行操作(https://blog.danielscrivano.com/installing-rtl8812au-on-linux-for-wireless-dual-band-usb-adapters/) 设置 Brostrend AC1200 wifi,它运行良好。由于某种原因,它不再连接。有什么办法可以解决这个问题吗?
我再次尝试了该指令(除了重新克隆)并且出现以下错误:
geoff@geoff-System-Product-Name:~$ cd rtl8812AU_8821AU_linux
geoff@geoff-System-Product-Name:~/rtl8812AU_8821AU_linux$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.10.0-33-generic/build M=/home/geoff/rtl8812AU_8821AU_linux modules
make[1]: Entering directory '/usr/src/linux-headers-4.10.0-33-generic'
CC [M] /home/geoff/rtl8812AU_8821AU_linux/os_dep/linux/os_intfs.o
/home/geoff/rtl8812AU_8821AU_linux/os_dep/linux/os_intfs.c:1695:22: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.ndo_select_queue = rtw_select_queue,
^
/home/geoff/rtl8812AU_8821AU_linux/os_dep/linux/os_intfs.c:1695:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
cc1: some warnings being treated as errors
scripts/Makefile.build:294: recipe for target '/home/geoff/rtl8812AU_8821AU_linux/os_dep/linux/os_intfs.o' failed
make[2]: *** [/home/geoff/rtl8812AU_8821AU_linux/os_dep/linux/os_intfs.o] Error 1
Makefile:1524: recipe for target '_module_/home/geoff/rtl8812AU_8821AU_linux' failed
make[1]: *** [_module_/home/geoff/rtl8812AU_8821AU_linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.10.0-33-generic'
Makefile:1131: recipe for target 'modules' failed
make: *** [modules] Error 2
这是 lsusb 和 dkms 状态:
geoff@geoff-System-Product-Name:~$ lsusb
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 046d:c31c Logitech, Inc. Keyboard K120
Bus 001 Device 003: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
Bus 001 Device 002: ID 0bda:8812 Realtek Semiconductor Corp. RTL8812AU 802.11a/b/g/n/ac WLAN Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
geoff@geoff-System-Product-Name:~$ dkms status
bbswitch, 0.8, 4.10.0-32-generic, x86_64: installed
bbswitch, 0.8, 4.10.0-33-generic, x86_64: installed
bbswitch, 0.8, 4.10.0-35-generic, x86_64: installed
bbswitch, 0.8, 4.4.0-93-generic, x86_64: installed
bbswitch, 0.8, 4.4.0-96-generic, x86_64: installed
nvidia-375, 375.66, 4.10.0-32-generic, x86_64: installed
nvidia-375, 375.66, 4.10.0-33-generic, x86_64: installed
nvidia-375, 375.66, 4.10.0-35-generic, x86_64: installed
nvidia-375, 375.66, 4.4.0-93-generic, x86_64: installed
nvidia-375, 375.66, 4.4.0-96-generic, x86_64: installed
virtualbox, 5.0.40, 4.10.0-32-generic, x86_64: installed
virtualbox, 5.0.40, 4.10.0-33-generic, x86_64: installed
virtualbox, 5.0.40, 4.10.0-35-generic, x86_64: installed
virtualbox, 5.0.40, 4.4.0-93-generic, x86_64: installed
virtualbox, 5.0.40, 4.4.0-96-generic, x86_64: installed
答案1
您的内核已升级至 4.10。
您需要从zesty
repo 安装驱动程序以针对 4.10 内核进行构建。
wget http://mirrors.kernel.org/ubuntu/pool/universe/r/rtl8812au/rtl8812au-dkms_4.3.8.12175.20140902+dfsg-0ubuntu5_all.deb
sudo apt install rtl8812au-dkms_4.3.8.12175.20140902+dfsg-0ubuntu5_all.deb