PDA

View Full Version : Unable to install required drivers for wifi dongle



Vulpes
2017-10-09, 03:14
Hello, I am quite new to all linux distros and I have successfully got my hp compaq 6000 desktop to dual boot win10 and kali rolling. For my wifi I have a usb dongle that runs a Realtek RTL8811AU chipset. I have downloaded the drivers from the makers of the dongle and ran their ./install.sh to get /lib/modules/4.12.0-kali1-amd64-build: No such file or directory. I have also downloaded the official drivers from realtek to receive the exact same error. here is the attempt to install the official drivers:
root@kali:~/Desktop/r8168-8.045.08# ./autorun.sh

Check old driver and unload it.
Build the module and install
make[2]: *** /lib/modules/4.12.0-kali1-amd64/build: No such file or directory. Stop.
make[1]: *** [clean] Error 2
make: *** [clean] Error 2

I have searched the internet for a solution and none seem to work. Can someone help me with installing/fixing/repairing whatever needs to be done so I can install drivers? Thank You.


Edit:
root@kali:~# cat /etc/apt/sources.list
#

# deb cdrom:[Debian GNU/Linux 2017.2 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20170917-01:51]/ kali-rolling contrib main non-free

#deb cdrom:[Debian GNU/Linux 2017.2 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20170917-01:51]/ kali-rolling contrib main non-free

re4son
2017-10-09, 11:42
Looks like you are missing the kernel-headers.
Installing them via:


apt install linux-headers-`uname -r`

should do the trick.

Vulpes
2017-10-09, 20:07
When I run the code you gave me to install the headers this came up...
root@kali:~# apt install linux-headers-`uname -r`
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-4.12.0-kali1-amd64
E: Couldn't find any package by glob 'linux-headers-4.12.0-kali1-amd64'
E: Couldn't find any package by regex 'linux-headers-4.12.0-kali1-amd64'
root@kali:~#

_defalt
2017-10-09, 20:26
Show the output of cat /etc/apt/sources.list

Vulpes
2017-10-10, 04:06
I have somehow fixed the error by re-installing kali using the same live usb I originally did it from while tunneling my phone's data to my computer. It discovered an update and everything works fine now..... except that I have realized that i have grabbed the incorrect wifi driver..... Thanks for the help

_defalt
2017-10-10, 17:28
From your output of cat /etc/apt/sources.list, you have not added any repository of kali in sources.list