台式安装Ubuntu之后,USB的无线网卡用不了
发表于 : 2016-10-08 23:00
第一次使用Linux,求大神帮忙。
strangevy@strangevy-ubuntu:~$ uname -a
Linux strangevy-ubuntu 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
strangevy@strangevy-ubuntu:~$ cat /etc/issue
Ubuntu 16.04 LTS \n \l
strangevy@strangevy-ubuntu:~$ lspci -knn | grep -iA2 net
01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
Subsystem: Micro-Star International Co., Ltd. [MSI] RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1462:7996]
Kernel driver in use: r8169
Kernel modules: r8169
strangevy@strangevy-ubuntu:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 24ae:2003
Bus 001 Device 003: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 001 Device 021: ID 0bda:818b Realtek Semiconductor Corp.
Bus 001 Device 020: ID 0951:16a3 Kingston Technology
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
strangevy@strangevy-ubuntu:~$ sudo lshw -numeric -C net
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10EC:8168]
vendor: Realtek Semiconductor Co., Ltd. [10EC]
physical id: 0
bus info: pci@0000:01:00.0
logical name: enp1s0
version: 15
serial: d8:cb:8a:e0:eb:5b
size: 10Mbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 link=no multicast=yes port=MII speed=10Mbit/s
resources: irq:314 ioport:e000(size=256) memory:df004000-df004fff memory:df000000-df003fff
========================================================================================================
后来尝试下载驱动安装,好像也不成功 strangevy@strangevy-ubuntu:~/文档/rtl8192eu-master$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.4.0-21-generic/build M=/home/strangevy/文档/rtl8192eu-master modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-21-generic'
CC [M] /home/strangevy/文档/rtl8192eu-master/core/rtw_cmd.o
CC [M] /home/strangevy/文档/rtl8192eu-master/core/rtw_security.o
CC [M] /home/strangevy/文档/rtl8192eu-master/core/rtw_debug.o
In file included from /home/strangevy/文档/rtl8192eu-master/include/drv_types.h:64:0,
from /home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c:22:
/home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c: In function ‘dump_drv_version’:
/home/strangevy/文档/rtl8192eu-master/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
/home/strangevy/文档/rtl8192eu-master/include/rtw_debug.h:240:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
^
/home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c:65:2: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "%s %s\n", DRV_NAME, DRIVERVERSION);
^
/home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c:66:64: warning: macro "__DATE__" might prevent reproducible builds [-Wdate-time]
DBG_871X_SEL_NL(sel, "build time: %s %s\n", __DATE__, __TIME__);
^
/home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c:66:64: warning: macro "__TIME__" might prevent reproducible builds [-Wdate-time]
/home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c:66:64: warning: macro "__DATE__" might prevent reproducible builds [-Wdate-time]
/home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c:66:64: warning: macro "__TIME__" might prevent reproducible builds [-Wdate-time]
/home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c:66:64: warning: macro "__DATE__" might prevent reproducible builds [-Wdate-time]
/home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c:66:64: warning: macro "__TIME__" might prevent reproducible builds [-Wdate-time]
In file included from /home/strangevy/文档/rtl8192eu-master/include/drv_types.h:64:0,
from /home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c:22:
/home/strangevy/文档/rtl8192eu-master/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
/home/strangevy/文档/rtl8192eu-master/include/rtw_debug.h:240:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
^
/home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c:66:2: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "build time: %s %s\n", __DATE__, __TIME__);
^
/home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c: In function ‘dump_log_level’:
/home/strangevy/文档/rtl8192eu-master/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
/home/strangevy/文档/rtl8192eu-master/include/rtw_debug.h:240:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
^
/home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c:71:2: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "log_level:%d\n", GlobalDebugLevel);
^
/home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c: In function ‘mac_reg_dump’:
/home/strangevy/文档/rtl8192eu-master/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
/home/strangevy/文档/rtl8192eu-master/include/rtw_debug.h:240:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
^
/home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c:98:2: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "======= MAC REG =======\n");
^
/home/strangevy/文档/rtl8192eu-master/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
/home/strangevy/文档/rtl8192eu-master/include/rtw_debug.h:240:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
^
/home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c:103:4: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "0x%03x",i);
strangevy@strangevy-ubuntu:~$ uname -a
Linux strangevy-ubuntu 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
strangevy@strangevy-ubuntu:~$ cat /etc/issue
Ubuntu 16.04 LTS \n \l
strangevy@strangevy-ubuntu:~$ lspci -knn | grep -iA2 net
01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
Subsystem: Micro-Star International Co., Ltd. [MSI] RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1462:7996]
Kernel driver in use: r8169
Kernel modules: r8169
strangevy@strangevy-ubuntu:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 24ae:2003
Bus 001 Device 003: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 001 Device 021: ID 0bda:818b Realtek Semiconductor Corp.
Bus 001 Device 020: ID 0951:16a3 Kingston Technology
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
strangevy@strangevy-ubuntu:~$ sudo lshw -numeric -C net
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10EC:8168]
vendor: Realtek Semiconductor Co., Ltd. [10EC]
physical id: 0
bus info: pci@0000:01:00.0
logical name: enp1s0
version: 15
serial: d8:cb:8a:e0:eb:5b
size: 10Mbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 link=no multicast=yes port=MII speed=10Mbit/s
resources: irq:314 ioport:e000(size=256) memory:df004000-df004fff memory:df000000-df003fff
========================================================================================================
后来尝试下载驱动安装,好像也不成功 strangevy@strangevy-ubuntu:~/文档/rtl8192eu-master$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.4.0-21-generic/build M=/home/strangevy/文档/rtl8192eu-master modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-21-generic'
CC [M] /home/strangevy/文档/rtl8192eu-master/core/rtw_cmd.o
CC [M] /home/strangevy/文档/rtl8192eu-master/core/rtw_security.o
CC [M] /home/strangevy/文档/rtl8192eu-master/core/rtw_debug.o
In file included from /home/strangevy/文档/rtl8192eu-master/include/drv_types.h:64:0,
from /home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c:22:
/home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c: In function ‘dump_drv_version’:
/home/strangevy/文档/rtl8192eu-master/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
/home/strangevy/文档/rtl8192eu-master/include/rtw_debug.h:240:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
^
/home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c:65:2: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "%s %s\n", DRV_NAME, DRIVERVERSION);
^
/home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c:66:64: warning: macro "__DATE__" might prevent reproducible builds [-Wdate-time]
DBG_871X_SEL_NL(sel, "build time: %s %s\n", __DATE__, __TIME__);
^
/home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c:66:64: warning: macro "__TIME__" might prevent reproducible builds [-Wdate-time]
/home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c:66:64: warning: macro "__DATE__" might prevent reproducible builds [-Wdate-time]
/home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c:66:64: warning: macro "__TIME__" might prevent reproducible builds [-Wdate-time]
/home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c:66:64: warning: macro "__DATE__" might prevent reproducible builds [-Wdate-time]
/home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c:66:64: warning: macro "__TIME__" might prevent reproducible builds [-Wdate-time]
In file included from /home/strangevy/文档/rtl8192eu-master/include/drv_types.h:64:0,
from /home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c:22:
/home/strangevy/文档/rtl8192eu-master/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
/home/strangevy/文档/rtl8192eu-master/include/rtw_debug.h:240:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
^
/home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c:66:2: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "build time: %s %s\n", __DATE__, __TIME__);
^
/home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c: In function ‘dump_log_level’:
/home/strangevy/文档/rtl8192eu-master/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
/home/strangevy/文档/rtl8192eu-master/include/rtw_debug.h:240:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
^
/home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c:71:2: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "log_level:%d\n", GlobalDebugLevel);
^
/home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c: In function ‘mac_reg_dump’:
/home/strangevy/文档/rtl8192eu-master/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
/home/strangevy/文档/rtl8192eu-master/include/rtw_debug.h:240:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
^
/home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c:98:2: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "======= MAC REG =======\n");
^
/home/strangevy/文档/rtl8192eu-master/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
/home/strangevy/文档/rtl8192eu-master/include/rtw_debug.h:240:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
^
/home/strangevy/文档/rtl8192eu-master/core/rtw_debug.c:103:4: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "0x%03x",i);