![make:*** [Makefile:2449:模块] 尝试安装 wifi 适配器驱动程序时出现错误 2](https://linux22.com/image/1029480/make%EF%BC%9A***%20%5BMakefile%EF%BC%9A2449%EF%BC%9A%E6%A8%A1%E5%9D%97%5D%20%E5%B0%9D%E8%AF%95%E5%AE%89%E8%A3%85%20wifi%20%E9%80%82%E9%85%8D%E5%99%A8%E9%A9%B1%E5%8A%A8%E7%A8%8B%E5%BA%8F%E6%97%B6%E5%87%BA%E7%8E%B0%E9%94%99%E8%AF%AF%202.png)
/home/ubuntu/Desktop/driver/RTL88x2BU_WiFi_linux_v5.13.1-20 <br/>gbd7c7eb9d_COEX20210316-18317b7b.20210702/driver/rtl88x2BU_WiFi_linux_v5.13.1-20-<br/>gbd7c7eb9d.20210702_COEX20210316-18317b7b/core/rtw_br_ext.c:20:11: fatal error: net/ipx.h: No such file or directory<br/>
20 | #include <net/ipx.h><br/>
| ^~~~~~~~~~~<br/>
compilation terminated.<br/>
make[2]: *** [scripts/Makefile.build:297: /home/ubuntu/Desktop/driver<br/>/RTL88x2BU_WiFi_linux_v5.13.1-20-gbd7c7eb9d_COEX20210316-18317b7b.20210702/driver<br/>/rtl88x2BU_WiFi_linux_v5.13.1-20-gbd7c7eb9d.20210702_COEX20210316-18317b7b/core/rtw_br_ext.o] Error 1<br/>
make[1]: *** [Makefile:1906: /home/ubuntu/Desktop/driver/RTL88x2BU_WiFi_linux_v5.13.1-20-<br/>gbd7c7eb9d_COEX20210316-18317b7b.20210702/driver/rtl88x2BU_WiFi_linux_v5.13.1-20-<br/>gbd7c7eb9d.20210702_COEX20210316-18317b7b] Error 2<br/>
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-67-generic'<br/>
make: *** [Makefile:2449: modules] Error 2<br/>
##################################################<br/>
Compile make driver error: 2<br/>
Please check error Mesg<br/>
##################################################<br/>
<br/>
我已经使用过这个命令:`sudo apt install build-essential git dkms linux-headers-generic`,
但是它并没有解决问题,
你只能在[这里](https://www.dlink.ru/ru/products/2/2432.html) (俄语页面) 找到驱动程序本身
答案1
编辑:Denatunium 找到的解决方案是降级内核https://discourse.ubuntu.com/t/how-to-downgrade-the-kernel-on-ubuntu-20-04-to-the-5-4-lts-version/26459
如果仍然不起作用,可以采用以下解决方案
看起来像是缺少ipx.h
头文件
请执行以下操作来尝试解决您的问题:
首先安装缺少的头文件
sudo apt-get install linux-headers-$(uname -r)
然后清理驱动程序源代码
cd /home/ubuntu/Desktop/driver/RTL88x2BU_WiFi_linux_v5.13.1-20-gbd7c7eb9d_COEX20210316-18317b7b.20210702
make clean
然后重建驱动程序
make
然后安装
sudo make install