我正在使用 Ubuntu 22.04,我的内核版本是 5.15.0-56-generic,并且我严格按照指南操作到该点(比如,两个步骤,但仍然如此),但是当我运行 sudo make 时,它没有构建,我获得了此内核版本的 linux 标头(或者至少,终端说我获得了),但它仍然不起作用。每当我制作时都会出现以下错误:
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.15.0-56-generic/build M=/root/mailmain/project/rtl88x2bu_linux modules
make[1]: *** /lib/modules/5.15.0-56-generic/build: No such file or directory. Stop.
make: *** [Makefile:2378: modules] Error 2
当我去获取 Linux 标头时,它显示的内容如下:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
linux-headers-5.15.0-56-generic is already the newest version (5.15.0-56.62).
The following packages were automatically installed and are no longer required:
libflashrom1 libftdi1-2
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded.
答案1
执行“make clean”,然后在下面的 GitHub 上安装驱动程序。
GitHub - RinCat/RTL88x2BU-Linux-Driver:适用于 Linux 的 Realtek RTL88x2BU WiFi USB 驱动程序
我希望它能够帮助解决这个问题。