make:*** [Makefile:1686:模块] 错误 2

make:*** [Makefile:1686:模块] 错误 2

我试图在我的 Ubuntu 20.04.3 LTS、5.11.0-36-generic 和 hp 笔记本电脑中安装 wifi 驱动程序。

我运行了以下命令:

cd Downloads
cd TL-WN8200ND 2.0_LinuxDriverSetup
cd rtl8192EU_linux_v4.4.1.1_18873.20160805_BTCOEX20160412-0042-OK
make clean
make

make在终端中得到这个输出后:

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.11.0-36-generic/build M=/home/adji/Downloads/TL-WN8200ND 2.0_LinuxDriverSetup/rtl8192EU_linux_v4.4.1.1_18873.20160805_BTCOEX20160412-0042-OK  modules
make[1]: Entering directory '/usr/src/linux-headers-5.11.0-36-generic'
make[1]: *** No rule to make target '2.0_LinuxDriverSetup/rtl8192EU_linux_v4.4.1.1_18873.20160805_BTCOEX20160412-0042-OK'.  Stop.
make[1]: Leaving directory '/usr/src/linux-headers-5.11.0-36-generic'
make: *** [Makefile:1686: modules] Error 2

答案1

cd TL-WN8200ND 2.0_LinuxDriverSetup

Bash 不喜欢名称中有空格。请右键单击文件夹并重命名;例如TL-WN8200ND_驱动程序.然后重试:

cd Downloads
cd TL-WN8200ND_driver
cd rtl8192EU_linux_v4.4.1.1_18873.20160805_BTCOEX20160412-0042-OK
make clean
make

另外,您可以组合以下命令:

cd Downloads/TL-WN8200ND_driver/rtl8192EU_linux_v4.4.1.1_18873.20160805_BTCOEX20160412-0042-OK
make clean
make

相关内容