fastoe / RTL8812BU

Realtek RTL8812BU Driver for Linux
354 stars 84 forks source link

no such file or directory #21

Open djrockwellmusic opened 3 years ago

djrockwellmusic commented 3 years ago

(kali㉿root)-[~] └─$ sudo apt install -y dkms git bc
[sudo] password for kali: Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: dctrl-tools git-man linux-compiler-gcc-10-x86 linux-headers-5.14.0-kali2-amd64 linux-headers-5.14.0-kali2-common linux-headers-amd64 linux-kbuild-5.14 Suggested packages: menu git-daemon-run | git-daemon-sysvinit git-doc git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn The following NEW packages will be installed: bc dctrl-tools dkms linux-compiler-gcc-10-x86 linux-headers-5.14.0-kali2-amd64 linux-headers-5.14.0-kali2-common linux-headers-amd64 linux-kbuild-5.14 The following packages will be upgraded: git git-man 2 upgraded, 8 newly installed, 0 to remove and 765 not upgraded. Need to get 12.7 MB/21.6 MB of archives. After this operation, 63.1 MB of additional disk space will be used. Get:1 http://ftp.harukasan.org/kali kali-rolling/main amd64 linux-headers-5.14.0-kali2-common all 5.14.9-2kali1 [9,774 kB] Get:2 http://ftp.harukasan.org/kali kali-rolling/main amd64 linux-kbuild-5.14 amd64 5.14.9-2kali1 [1,323 kB] Get:3 http://ftp.harukasan.org/kali kali-rolling/main amd64 linux-headers-5.14.0-kali2-amd64 amd64 5.14.9-2kali1 [1,590 kB] Get:4 http://ftp.harukasan.org/kali kali-rolling/main amd64 linux-headers-amd64 amd64 5.14.9-2kali1 [1,148 B] Fetched 12.7 MB in 4min 14s (49.9 kB/s)
Selecting previously unselected package dctrl-tools. (Reading database ... 267021 files and directories currently installed.) Preparing to unpack .../0-dctrl-tools_2.24-3+b1_amd64.deb ... Unpacking dctrl-tools (2.24-3+b1) ... Selecting previously unselected package dkms. Preparing to unpack .../1-dkms_2.8.7-2_all.deb ... Unpacking dkms (2.8.7-2) ... Selecting previously unselected package bc. Preparing to unpack .../2-bc_1.07.1-3+b1_amd64.deb ... Unpacking bc (1.07.1-3+b1) ... Preparing to unpack .../3-git_1%3a2.33.0-1_amd64.deb ... Unpacking git (1:2.33.0-1) over (1:2.32.0-1) ... Preparing to unpack .../4-git-man_1%3a2.33.0-1_all.deb ... Unpacking git-man (1:2.33.0-1) over (1:2.32.0-1) ... Selecting previously unselected package linux-compiler-gcc-10-x86. Preparing to unpack .../5-linux-compiler-gcc-10-x86_5.14.9-2kali1_amd64.deb ... Unpacking linux-compiler-gcc-10-x86 (5.14.9-2kali1) ... Selecting previously unselected package linux-headers-5.14.0-kali2-common. Preparing to unpack .../6-linux-headers-5.14.0-kali2-common_5.14.9-2kali1_all.deb ... Unpacking linux-headers-5.14.0-kali2-common (5.14.9-2kali1) ... Selecting previously unselected package linux-kbuild-5.14. Preparing to unpack .../7-linux-kbuild-5.14_5.14.9-2kali1_amd64.deb ... Unpacking linux-kbuild-5.14 (5.14.9-2kali1) ... Selecting previously unselected package linux-headers-5.14.0-kali2-amd64. Preparing to unpack .../8-linux-headers-5.14.0-kali2-amd64_5.14.9-2kali1_amd64.deb ... Unpacking linux-headers-5.14.0-kali2-amd64 (5.14.9-2kali1) ... Selecting previously unselected package linux-headers-amd64. Preparing to unpack .../9-linux-headers-amd64_5.14.9-2kali1_amd64.deb ... Unpacking linux-headers-amd64 (5.14.9-2kali1) ... Setting up linux-compiler-gcc-10-x86 (5.14.9-2kali1) ... Setting up bc (1.07.1-3+b1) ... Setting up linux-kbuild-5.14 (5.14.9-2kali1) ... Setting up linux-headers-5.14.0-kali2-common (5.14.9-2kali1) ... Setting up git-man (1:2.33.0-1) ... Setting up dctrl-tools (2.24-3+b1) ... Setting up dkms (2.8.7-2) ... Setting up linux-headers-5.14.0-kali2-amd64 (5.14.9-2kali1) ... /etc/kernel/header_postinst.d/dkms: dkms: running auto installation service for kernel 5.14.0-kali2-amd64:. Setting up git (1:2.33.0-1) ... Setting up linux-headers-amd64 (5.14.9-2kali1) ... Processing triggers for kali-menu (2021.3.3) ... Processing triggers for man-db (2.9.4-2) ...

┌──(kali㉿root)-[~] └─$ git clone -b v5.6.1 https://github.com/fastoe/RTL8812BU.git Cloning into 'RTL8812BU'... remote: Enumerating objects: 1982, done. remote: Counting objects: 100% (506/506), done. remote: Compressing objects: 100% (488/488), done. remote: Total 1982 (delta 135), reused 58 (delta 15), pack-reused 1476 Receiving objects: 100% (1982/1982), 96.93 MiB | 4.84 MiB/s, done. Resolving deltas: 100% (981/981), done.

┌──(kali㉿root)-[~] └─$ cd RTL8812BU

┌──(kali㉿root)-[~/RTL8812BU] └─$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.10.0-kali9-amd64/build M=/home/kali/RTL8812BU modules make[1]: /lib/modules/5.10.0-kali9-amd64/build: No such file or directory. Stop. make: [Makefile:2284: modules] Error 2

┌──(kali㉿root)-[~/RTL8812BU] └─$ sudo make install 2 ⨯ install -p -m 644 88x2bu.ko /lib/modules/5.10.0-kali9-amd64/kernel/drivers/net/wireless/ install: cannot stat '88x2bu.ko': No such file or directory make: *** [Makefile:2290: install] Error 1

┌──(kali㉿root)-[~/RTL8812BU] └─$

snortingnails commented 2 years ago

i got this same error

whiteforcekali16 commented 2 years ago

I have the same issue with RTL8812AU.

AKNoryx28 commented 2 years ago

you've installed different versions linux-headers, try install linux-headers same version that's kernel you're running

(kali㉿root)-[~] └─$ sudo apt install -y dkms git bc [sudo] password for kali: Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: dctrl-tools git-man linux-compiler-gcc-10-x86 linux-headers-5.14.0-kali2-amd64 linux-headers-5.14.0-kali2-common linux-headers-amd64 linux-kbuild-5.14 Suggested packages: menu git-daemon-run | git-daemon-sysvinit git-doc git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn The following NEW packages will be installed: bc dctrl-tools dkms linux-compiler-gcc-10-x86 linux-headers-5.14.0-kali2-amd64 linux-headers-5.14.0-kali2-common linux-headers-amd64 linux-kbuild-5.14 The following packages will be upgraded: git git-man 2 upgraded, 8 newly installed, 0 to remove and 765 not upgraded. Need to get 12.7 MB/21.6 MB of archives. After this operation, 63.1 MB of additional disk space will be used. Get:1 http://ftp.harukasan.org/kali kali-rolling/main amd64 linux-headers-5.14.0-kali2-common all 5.14.9-2kali1 [9,774 kB] Get:2 http://ftp.harukasan.org/kali kali-rolling/main amd64 linux-kbuild-5.14 amd64 5.14.9-2kali1 [1,323 kB] Get:3 http://ftp.harukasan.org/kali kali-rolling/main amd64 linux-headers-5.14.0-kali2-amd64 amd64 5.14.9-2kali1 [1,590 kB] Get:4 http://ftp.harukasan.org/kali kali-rolling/main amd64 linux-headers-amd64 amd64 5.14.9-2kali1 [1,148 B] Fetched 12.7 MB in 4min 14s (49.9 kB/s) Selecting previously unselected package dctrl-tools. (Reading database ... 267021 files and directories currently installed.) Preparing to unpack .../0-dctrl-tools_2.24-3+b1_amd64.deb ... Unpacking dctrl-tools (2.24-3+b1) ... Selecting previously unselected package dkms. Preparing to unpack .../1-dkms_2.8.7-2_all.deb ... Unpacking dkms (2.8.7-2) ... Selecting previously unselected package bc. Preparing to unpack .../2-bc_1.07.1-3+b1_amd64.deb ... Unpacking bc (1.07.1-3+b1) ... Preparing to unpack .../3-git_1%3a2.33.0-1_amd64.deb ... Unpacking git (1:2.33.0-1) over (1:2.32.0-1) ... Preparing to unpack .../4-git-man_1%3a2.33.0-1_all.deb ... Unpacking git-man (1:2.33.0-1) over (1:2.32.0-1) ... Selecting previously unselected package linux-compiler-gcc-10-x86. Preparing to unpack .../5-linux-compiler-gcc-10-x86_5.14.9-2kali1_amd64.deb ... Unpacking linux-compiler-gcc-10-x86 (5.14.9-2kali1) ... Selecting previously unselected package linux-headers-5.14.0-kali2-common. Preparing to unpack .../6-linux-headers-5.14.0-kali2-common_5.14.9-2kali1_all.deb ... Unpacking linux-headers-5.14.0-kali2-common (5.14.9-2kali1) ... Selecting previously unselected package linux-kbuild-5.14. Preparing to unpack .../7-linux-kbuild-5.14_5.14.9-2kali1_amd64.deb ... Unpacking linux-kbuild-5.14 (5.14.9-2kali1) ... Selecting previously unselected package linux-headers-5.14.0-kali2-amd64. Preparing to unpack .../8-linux-headers-5.14.0-kali2-amd64_5.14.9-2kali1_amd64.deb ... Unpacking linux-headers-5.14.0-kali2-amd64 (5.14.9-2kali1) ... Selecting previously unselected package linux-headers-amd64. Preparing to unpack .../9-linux-headers-amd64_5.14.9-2kali1_amd64.deb ... Unpacking linux-headers-amd64 (5.14.9-2kali1) ... Setting up linux-compiler-gcc-10-x86 (5.14.9-2kali1) ... Setting up bc (1.07.1-3+b1) ... Setting up linux-kbuild-5.14 (5.14.9-2kali1) ... Setting up linux-headers-5.14.0-kali2-common (5.14.9-2kali1) ... Setting up git-man (1:2.33.0-1) ... Setting up dctrl-tools (2.24-3+b1) ... Setting up dkms (2.8.7-2) ... Setting up linux-headers-5.14.0-kali2-amd64 (5.14.9-2kali1) ... /etc/kernel/header_postinst.d/dkms: dkms: running auto installation service for kernel 5.14.0-kali2-amd64:. Setting up git (1:2.33.0-1) ... Setting up linux-headers-amd64 (5.14.9-2kali1) ... Processing triggers for kali-menu (2021.3.3) ... Processing triggers for man-db (2.9.4-2) ...

┌──(kali㉿root)-[~] └─$ git clone -b v5.6.1 https://github.com/fastoe/RTL8812BU.git Cloning into 'RTL8812BU'... remote: Enumerating objects: 1982, done. remote: Counting objects: 100% (506/506), done. remote: Compressing objects: 100% (488/488), done. remote: Total 1982 (delta 135), reused 58 (delta 15), pack-reused 1476 Receiving objects: 100% (1982/1982), 96.93 MiB | 4.84 MiB/s, done. Resolving deltas: 100% (981/981), done.

┌──(kali㉿root)-[~] └─$ cd RTL8812BU

┌──(kali㉿root)-[~/RTL8812BU] └─$ make make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.10.0-kali9-amd64/build M=/home/kali/RTL8812BU modules make[1]: /lib/modules/5.10.0-kali9-amd64/build: No such file or directory. Stop. make: [Makefile:2284: modules] Error 2

┌──(kali㉿root)-[~/RTL8812BU] └─$ sudo make install 2 ⨯ install -p -m 644 88x2bu.ko /lib/modules/5.10.0-kali9-amd64/kernel/drivers/net/wireless/ install: cannot stat '88x2bu.ko': No such file or directory make: *** [Makefile:2290: install] Error 1

┌──(kali㉿root)-[~/RTL8812BU] └─$

looks you're running the kernel version 5.10.0-kali9 you need install linux-headers-5.10.0-kali9

after that compile again

cd RTL8812BU make sudo make install