台式安装Ubuntu之后,USB的无线网卡用不了

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
strangevy
帖子: 3
注册时间: 2016-10-08 22:48
系统: Ubuntu

台式安装Ubuntu之后,USB的无线网卡用不了

#1

帖子 strangevy » 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

========================================================================================================

后来尝试下载驱动安装,好像也不成功
rtl8192eu-master.zip
这是使用的驱动
(1.85 MiB) 已下载 223 次
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);
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 台式安装Ubuntu之后,USB的无线网卡用不了

#2

帖子 vickycq » 2016-10-09 8:42

strangevy 写了:后来尝试下载驱动安装,好像也不成功
若已执行过 sudo make install,执行 sudo make uninstall 将其移除
strangevy 写了:4.4.0-21-generic
Bus 001 Device 021: ID 0bda:818b Realtek Semiconductor Corp.
尝试安装修改版驱动 https://github.com/Mange/rtl8192eu-linux-driver
如遇到困难将相关的输出全部复制贴上来
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
烟波钓叟
帖子: 112
注册时间: 2015-04-04 23:20
系统: linux & windows

Re: 台式安装Ubuntu之后,USB的无线网卡用不了

#3

帖子 烟波钓叟 » 2016-10-09 10:16

你的无线网卡是什么?
TP-LINK TL-WN821N V5 ?
头像
百草谷居士
帖子: 3919
注册时间: 2006-02-10 16:36
系统: Mint21.1/Deepin20.8

Re: 台式安装Ubuntu之后,USB的无线网卡用不了

#4

帖子 百草谷居士 » 2016-10-09 14:01

无线网卡驱动确实是令人懊恼的事情
debian 12 / 深度系统 20.9 / Mint 21.3

为何热衷于搞发行版的多,搞应用程序开发的少?Linux最多余的就是各种发行版,最缺的就是应用程序,特别是行业应用程序。
strangevy
帖子: 3
注册时间: 2016-10-08 22:48
系统: Ubuntu

Re: 台式安装Ubuntu之后,USB的无线网卡用不了

#5

帖子 strangevy » 2016-10-10 0:05

尝试安装修改版驱动 https://github.com/Mange/rtl8192eu-linux-driver

这个驱动安装成功!
# modprobe lib80211
# modprobe cfg80211
# insmod 8192eu.ko
之后可以连接上wifi,但是重启后又没有。
重新执行
root@strangevy-ubuntu:~/文档/rtl8192eu-linux-driver-master# insmod 8192eu.ko
insmod: ERROR: could not insert module 8192eu.ko: File exists
也不行了
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 台式安装Ubuntu之后,USB的无线网卡用不了

#6

帖子 poloshiao » 2016-10-10 7:55

这个驱动安装成功!
# modprobe lib80211
# modprobe cfg80211
# insmod 8192eu.ko
之后可以连接上wifi,但是重启后又没有。
gksudo gedit /etc/modules
在 /etc/modules
加上這三行
lib80211
cfg80211
8192eu.ko (或 8192eu)
重開機

補充
1. modprobe / insmod 單次載入
/etc/modules 每次開機即載入
2. 第一次使用 gksudo 需要先安裝 gksu 套件
strangevy
帖子: 3
注册时间: 2016-10-08 22:48
系统: Ubuntu

Re: 台式安装Ubuntu之后,USB的无线网卡用不了

#7

帖子 strangevy » 2016-10-10 23:38

poloshiao 写了: gksudo gedit /etc/modules
在 /etc/modules
加上這三行
lib80211
cfg80211
8192eu.ko (或 8192eu)
重開機

補充
1. modprobe / insmod 單次載入
/etc/modules 每次開機即載入
2. 第一次使用 gksudo 需要先安裝 gksu 套件
加入8192eu就搞定了,thx
头像
283940928
帖子: 41
注册时间: 2013-05-23 10:19
系统: win 7

Re: 台式安装Ubuntu之后,USB的无线网卡用不了

#8

帖子 283940928 » 2018-12-09 17:20

:Aadterboom :Cry :Cry
头像
283940928
帖子: 41
注册时间: 2013-05-23 10:19
系统: win 7

Re: 台式安装Ubuntu之后,USB的无线网卡用不了

#9

帖子 283940928 » 2018-12-09 18:46

strangevy 写了: 2016-10-10 0:05 尝试安装修改版驱动 https://github.com/Mange/rtl8192eu-linux-driver

这个驱动安装成功!
# modprobe lib80211
# modprobe cfg80211
# insmod 8192eu.ko
之后可以连接上wifi,但是重启后又没有。
重新执行
root@strangevy-ubuntu:~/文档/rtl8192eu-linux-driver-master# insmod 8192eu.ko
insmod: ERROR: could not insert module 8192eu.ko: File exists
也不行了
请问这个修改板打驱动如何安装啊
回复