安装华硕 pce-ac51 驱动程序

安装华硕 pce-ac51 驱动程序

我正在尝试在 Ubuntu 17.04 上安装无线 pci 适配器 Asus pce-ac51,因为 5Ghz 频段在 Ubuntu 上不起作用(它在 Windows 10 上起作用),但是当我尝试运行 sh 脚本时出现此错误

tar: La opción antigua 'f' requiere un argumento
Pruebe 'tar --help' o 'tar --usage' para más información.
install.sh: 25: cd: can't cd to clean
install.sh: 38: [: unexpected operator
install.sh: 48: [: unexpected operator
/home/user/Descargas/PCE-AC51-ASUS_V1.0.0_20160603/linux_driver/driver/core/rtw_security.c: In function ‘aes_cipher’:
/home/user/Descargas/PCE-AC51-ASUS_V1.0.0_20160603/linux_driver/driver/core/rtw_security.c:1598:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
     for (j = 0; j < 8; j++)
     ^~~
/home/user/Descargas/PCE-AC51-ASUS_V1.0.0_20160603/linux_driver/driver/core/rtw_security.c:1601:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
  payload_index = hdrlen + 8;
  ^~~~~~~~~~~~~
/home/user/Descargas/PCE-AC51-ASUS_V1.0.0_20160603/linux_driver/driver/core/rtw_security.c: In function ‘aes_decipher’:
/home/user/Descargas/PCE-AC51-ASUS_V1.0.0_20160603/linux_driver/driver/core/rtw_security.c:1984:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
     for (j = 0; j < 8; j++)
     ^~~
/home/user/Descargas/PCE-AC51-ASUS_V1.0.0_20160603/linux_driver/driver/core/rtw_security.c:1987:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
  payload_index = hdrlen + 8;
  ^~~~~~~~~~~~~
/home/user/Descargas/PCE-AC51-ASUS_V1.0.0_20160603/linux_driver/driver/core/rtw_debug.c: In function ‘dump_drv_version’:
/home/user/Descargas/PCE-AC51-ASUS_V1.0.0_20160603/linux_driver/driver/core/rtw_debug.c:71:64: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
  DBG_871X_SEL_NL(sel, "build time: %s %s\n", __DATE__, __TIME__);
                                                                ^
/home/user/Descargas/PCE-AC51-ASUS_V1.0.0_20160603/linux_driver/driver/core/rtw_debug.c:71:64: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
/home/user/Descargas/PCE-AC51-ASUS_V1.0.0_20160603/linux_driver/driver/core/rtw_debug.c:71:64: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
/home/user/Descargas/PCE-AC51-ASUS_V1.0.0_20160603/linux_driver/driver/core/rtw_debug.c:71:64: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
/home/user/Descargas/PCE-AC51-ASUS_V1.0.0_20160603/linux_driver/driver/core/rtw_debug.c:71:64: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
/home/user/Descargas/PCE-AC51-ASUS_V1.0.0_20160603/linux_driver/driver/core/rtw_debug.c:71:64: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
cc1: some warnings being treated as errors
make[2]: *** [/home/user/Descargas/PCE-AC51-ASUS_V1.0.0_20160603/linux_driver/driver/core/rtw_debug.o] Error 1
make[1]: *** [_module_/home/user/Descargas/PCE-AC51-ASUS_V1.0.0_20160603/linux_driver/driver] Error 2
make: *** [modules] Error 2

答案1

这张卡的上传速度很慢

要修复,请重新安装 realtek 驱动程序

sudo apt-get install linux-headers-generic build-essential git 
git clone http://github.com/lwfinger/rtlwifi_new.git
cd rtlwifi_new
make
sudo make install
sudo modprobe -rfv rtl8821ae
sudo modprobe rtl8821ae

相关内容