我是 Linux 新手。我使用的是 Linux Lite 5.2 操作系统 (Ubuntu 20.04)。尝试使用 TP-Link TL-WN722N v2 WiFi 适配器安装 Realtek 驱动程序时git clone https://github.com/aircrack-ng/rtl8188eus
,出现以下错误消息:
cut: /etc/redhat-release: No such file or directory
Building modules, stage 2.
MODPOST 1 modules
CC [M] /home/user/rtl8188eus/8188eu.mod.o
LD [M] /home/user/rtl8188eus/8188eu.ko
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-89-generic'
cut: /etc/redhat-release: No such file or directory
install -p -m 644 8188eu.ko /lib/modules/5.4.0-89-generic/kernel/drivers/net/wireless/
/sbin/depmod -a 5.4.0-89-generic
我用 sudo 运行了代码,但仍然出现此错误。我尝试在 /etc/ 中自己创建 redhat-release 目录mkdir
,并使其可写chmod +rwx
并授予权限,sudo chmod -R 777 /etc/redhat-release
但它显示以下错误消息:
cut: /etc/redhat-release: Is a directory
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.4.0-89-generic/build M=/home/user/rtl8188eus modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-89-generic'
cut: /etc/redhat-release: Is a directory
cut: /etc/redhat-release: Is a directory
Building modules, stage 2.
MODPOST 1 modules
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-89-generic'
cut: /etc/redhat-release: Is a directory
install -p -m 644 8188eu.ko /lib/modules/5.4.0-89-generic/kernel/drivers/net/wireless/
/sbin/depmod -a 5.4.0-89-generic
互联网正在使用适配器工作,但无法打开其上的监控模式。运行时sudo airmon-ng
,适配器的“PHY”部分下显示“null”,这可能是由于驱动程序安装不成功。
有人有解决办法吗?请帮忙...
答案1
有模块源码吗?在这里(https://github.com/lwfinger/rtl8188eu/blob/master/Makefile
),我没有找到该redhat-release
文件的引用,该文件在RedHat上应该是一个带有RedHat版本的普通文件,也许还有其他相关信息(我没有它的格式,但它不是一个目录)。