在 Ubuntu 16.04 中安装 USB 无线网卡 TL-WN823N

在 Ubuntu 16.04 中安装 USB 无线网卡 TL-WN823N

我正在尝试安装新的 USB wifi 卡的驱动程序,但遇到了这个问题:

$ sudo make
[sudo] password for lucia: 
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.10.0-40-generic/build=/home/lucia/Descargas/TL-WN823NEU_V2_160315_Linux/Driver  modules
make[1]: se entra en el directorio '/usr/src/linux-headers-4.10.0-40-generic'
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
  CC [M]  /home/lucia/Descargas/TL-WN823NEU_V2_160315_Linux/Driver/core/rtw_cmd.o
In file included from /home/lucia/Descargas/TL-WN823NEU_V2_160315_Linux/Driver/include/drv_types.h:95:0,
             from /home/lucia/Descargas/TL-WN823NEU_V2_160315_Linux/Driver/core/rtw_cmd.c:22:
/home/lucia/Descargas/TL-WN823NEU_V2_160315_Linux/Driver/include/hal_com.h:413:13: error: ‘file_path’ redeclared as different kind of symbol
 extern char file_path[PATH_LENGTH_MAX];
         ^
In file included from ./include/linux/seq_file.h:10:0,
             from ./include/linux/pinctrl/consumer.h:17,
             from ./include/linux/pinctrl/devinfo.h:21,
             from ./include/linux/device.h:24,
             from ./include/linux/dmaengine.h:20,
             from ./include/linux/netdevice.h:38,
             from /home/lucia/Descargas/TL-WN823NEU_V2_160315_Linux/Driver/include/osdep_service_linux.h:35,
             from /home/lucia/Descargas/TL-WN823NEU_V2_160315_Linux/Driver/include/osdep_service.h:41,
             from /home/lucia/Descargas/TL-WN823NEU_V2_160315_Linux/Driver/include/drv_types.h:32,
             from /home/lucia/Descargas/TL-WN823NEU_V2_160315_Linux/Driver/core/rtw_cmd.c:22:
./include/linux/fs.h:2680:14: note: previous declaration of ‘file_path’ was here
 extern char *file_path(struct file *, char *, int);
              ^
In file included from /home/lucia/Descargas/TL-WN823NEU_V2_160315_Linux/Driver/include/drv_types.h:65:0,
             from /home/lucia/Descargas/TL-WN823NEU_V2_160315_Linux/Driver/core/rtw_cmd.c:22:
/home/lucia/Descargas/TL-WN823NEU_V2_160315_Linux/Driver/core/rtw_cmd.c: In function ‘btinfo_evt_dump’:
/home/lucia/Descargas/TL-WN823NEU_V2_160315_Linux/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
                   ^
/home/lucia/Descargas/TL-WN823NEU_V2_160315_Linux/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
    if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
       ^
/home/lucia/Descargas/TL-WN823NEU_V2_160315_Linux/Driver/core/rtw_cmd.c:3293:2: note: in expansion of macro ‘DBG_871X_SEL_NL’
  DBG_871X_SEL_NL(sel, "cid:0x%02x, len:%u\n", info->cid, info->len);
      ^
/home/lucia/Descargas/TL-WN823NEU_V2_160315_Linux/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
  #define _seqdump seq_printf
                   ^
/home/lucia/Descargas/TL-WN823NEU_V2_160315_Linux/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
       ^
/home/lucia/Descargas/TL-WN823NEU_V2_160315_Linux/Driver/core/rtw_cmd.c:3296:3: note: in expansion of macro ‘DBG_871X_SEL_NL’
   DBG_871X_SEL_NL(sel, "byte2:%s%s%s%s%s%s%s%s\n"
      ^
/home/lucia/Descargas/TL-WN823NEU_V2_160315_Linux/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
  #define _seqdump seq_printf
                   ^
/home/lucia/Descargas/TL-WN823NEU_V2_160315_Linux/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
       ^
/home/lucia/Descargas/TL-WN823NEU_V2_160315_Linux/Driver/core/rtw_cmd.c:3308:3: note: in expansion of macro ‘DBG_871X_SEL_NL’
   DBG_871X_SEL_NL(sel, "retry_cnt:%u\n", info->retry_cnt);
       ^
/home/lucia/Descargas/TL-WN823NEU_V2_160315_Linux/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
  #define _seqdump seq_printf
                   ^
/home/lucia/Descargas/TL-WN823NEU_V2_160315_Linux/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
       ^
/home/lucia/Descargas/TL-WN823NEU_V2_160315_Linux/Driver/core/rtw_cmd.c:3311:3: note: in expansion of macro ‘DBG_871X_SEL_NL’
   DBG_871X_SEL_NL(sel, "rssi:%u\n", info->rssi);
       ^
/home/lucia/Descargas/TL-WN823NEU_V2_160315_Linux/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
  #define _seqdump seq_printf
                   ^
/home/lucia/Descargas/TL-WN823NEU_V2_160315_Linux/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
       ^
/home/lucia/Descargas/TL-WN823NEU_V2_160315_Linux/Driver/core/rtw_cmd.c:3314:3: note: in expansion of macro ‘DBG_871X_SEL_NL’
   DBG_871X_SEL_NL(sel, "byte5:%s%s\n"
   ^
scripts/Makefile.build:294: fallo en las instrucciones para el objetivo '/home/lucia/Descargas/TL-WN823NEU_V2_160315_Linux/Driver/core/rtw_cmd.o'
make[2]: *** [/home/lucia/Descargas/TL-WN823NEU_V2_160315_Linux/Driver/core/rtw_cmd.o] Error 1
Makefile:1524: fallo en las instrucciones para el objetivo '_module_/home/lucia/Descargas/TL-WN823NEU_V2_160315_Linux/Driver'
make[1]: *** [_module_/home/lucia/Descargas/TL-WN823NEU_V2_160315_Linux/Driver] Error 2
make[1]: se sale del directorio '/usr/src/linux-headers-4.10.0-40-generic'
 Makefile:1696: fallo en las instrucciones para el objetivo 'modules'
make: *** [modules] Error 2

这是我使用 lsusb 命令得到的结果:

$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 003: ID b49a:04f2  
Bus 001 Device 002: ID 0bda:57b5 Realtek Semiconductor Corp. 
Bus 001 Device 005: ID 2357:0109  
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

答案1

在网络连接正常的情况下,打开终端并执行:

sudo apt-get update
sudo apt-get install git
git clone https://github.com/Mange/rtl8192eu-linux-driver.git
cd rtl8192eu-linux-driver
sudo dkms add .
sudo dkms install rtl8192eu/1.0
sudo modprobe 8192eu

您的无线网络现在应该可以正常工作

相关内容