我购买了 TP-Link TL-WN725N 无线适配器,需要安装其设备驱动程序才能使用。仔细阅读产品信息表后,我发现我当前的 Linux 内核版本不受支持。
我发现的最接近的解决方案包含在此 github repo 中的 README.md 文件中: https://github.com/lwfinger/rtl8188eu
执行命令时我收到构建错误make all
。我推测这是因为我没有安装正确的 Linux 标头,正如 github 的 readme.md 所强调的那样。
我尝试通过键入以下命令来安装标题:
sudo apt-get install linux-headers-$(uname -r)
但出现以下提示:
linux-headers-5.8.0-38-generic is already the newest version (5.8.0-38.43~20.04.1).
我不知道该怎么做才能让它工作,希望能得到一些帮助。由于可能会有人问我,所以我提供了以下两个命令的详细信息:
lsusb:
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 003: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
Bus 003 Device 002: ID 1a2c:0b2a China Resource Semico Co., Ltd USB Keyboard
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 009 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 006 Device 003: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter
Bus 006 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
dmesg|grep RTL
[ 1.779449] r8169 0000:04:00.0 eth0: RTL8168evl/8111evl, 14:da:e9:71:be:c0, XID 2c9, IRQ 27
[ 30.768229] RTL8211E Gigabit Ethernet r8169-400:00: attached PHY driver [RTL8211E Gigabit Ethernet] (mii_bus:phy_addr=r8169-400:00, irq=IGNORE)
(有人问过类似的问题这里,但是,当被要求提供更多信息时,原帖者没有回应)
编辑:以下命令的结果
modinfo r8188eu | grep 8179
是:
> alias: usb:v07B8p8179d*dc*dsc*dp*ic*isc*ip*in* alias:
> usb:v0BDAp8179d*dc*dsc*dp*ic*isc*ip*in*
命令的结果
sudo modprobe r8188eu && sudo dmesg | grep 8188
[ 15.389611] r8188eu: module is from the staging directory, the quality is unknown, you have been warned. [ 15.391482] Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_D_CUT_1T1R_RomVer(0) [ 15.453744] usbcore: registered new interface driver r8188eu [ 15.499169] r8188eu 6-1:1.0 wlxd03745aa684a: renamed from wlan0 [ 3987.294134] Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_D_CUT_1T1R_RomVer(0) [ 3987.385305] r8188eu 6-1:1.0 wlxd03745aa684a: renamed from wlan0
是: