Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Trouble installing wifi driver

Off-Topic discussions about science, technology, and non Debian specific topics.
Post Reply
Message
Author
Archer23
Posts: 1
Joined: 2017-04-05 04:53

Trouble installing wifi driver

#1 Post by Archer23 »

Super new to Kali Linux.

I'm trying to get a driver installed for a USB Wifi adapter. I unpacked the file and try to
make clean
make
then this:

Code: Select all

root@root:~/Desktop/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51# make clean
cd hal/OUTSRC/ ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal/OUTSRC/ ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd hal/led ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd hal ; rm -fr */*/*.mod.c */*/*.mod */*/*.o */*/.*.cmd */*/*.ko
cd hal ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core/efuse ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd platform ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
rm -fr .tmp_versions
root@root:~/Desktop/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51# sudo m-a prepare
Getting source for kernel version: 4.9.0-kali1-686-pae
apt-get install linux-headers-4.9.0-kali1-686-pae 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-headers-4.9.0-kali1-686-pae
E: Couldn't find any package by glob 'linux-headers-4.9.0-kali1-686-pae'
E: Couldn't find any package by regex 'linux-headers-4.9.0-kali1-686-pae'
apt-get install build-essential 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Done!
root@root:~/Desktop/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51# make
make ARCH=i386 CROSS_COMPILE= -C /lib/modules/4.9.0-kali1-686-pae/build M=/root/Desktop/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51  modules
make[1]: *** /lib/modules/4.9.0-kali1-686-pae/build: No such file or directory.  Stop.
Makefile:1529: recipe for target 'modules' failed
make: *** [modules] Error 2

Dai_trying
Posts: 1101
Joined: 2016-01-07 12:25
Has thanked: 5 times
Been thanked: 16 times

Re: Trouble installing wifi driver

#2 Post by Dai_trying »

This post should help you, it's a sticky on the Kali linux forum.

steve_v
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 1418
Joined: 2012-10-06 05:31
Location: /dev/chair
Has thanked: 79 times
Been thanked: 191 times

Re: Trouble installing wifi driver

#3 Post by steve_v »

Archer23 wrote:Kali Linux.
Kali != Debian. :roll:
At a guess, Kali does something stupid with their kernel headers.
I hope you know what you are doing, Kali is not a desktop distro, and certainly not meant for noobs.
Dai_trying wrote:This post should help you.
You are far more charitable than I. :twisted:
I thought we sent all the Kali users back to the appropriate forum some time ago. Yet still they come.
Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.

User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Trouble installing wifi driver

#4 Post by dasein »

steve_v wrote:I thought we sent all the Kali users back to the appropriate forum some time ago. Yet still they come.
Two words: Mister Robot

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Trouble installing wifi driver

#5 Post by stevepusser »

And the moderators of the Kali forum often don't even let questions like this get posted there. We could be nice and see if our Debian knowledge works to help this poster.

So Archer, you don't have the headers for your kernel installed. Perhaps Kali has updated their kernel and no longer have the older headers in their repo. Could you try

Code: Select all

apt update
apt upgrade
and see if that fixes the "m-a prepare" issue?
MX Linux packager and developer

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Trouble installing wifi driver

#6 Post by GarryRicketson »

At least Stevepusser, seems to know the answer, if it was Debian,
and it might work, but I wonder if the OP is aware of this,:
http://docs.kali.org/introduction/shoul ... kali-linux
2.Network services disabled by default: Kali Linux contains systemd hooks that disable network services by default. These hooks allow us to install various services on Kali Linux, while ensuring that our distribution remains secure by default, no matter what packages are installed. Additional services such as Bluetooth are also blacklisted by default.
and the link: disable network services
Kali Linux is a penetration testing toolkit, and may potentially be used in “hostile” environments. Accordingly, Kali Linux deals with network services in a very different way than typical Linux distributions. Specifically, Kali does not enable any externally-listening services by default with the goal of minimizing exposure when in a default state.
It seems to me like the OP would be better off asking them at the kali forum, to get the details, on this , because, "Kali Linux deals with network services in a very different way than typical Linux distributions."
So there may be some other "hoops" to jump through even if the OP manages to
install the driver.
The link Dai_trying posted, looks like they do accept questions on this, :
But they expect the person to read another "tutorial" first,..the link is on
the stickied thread.
To read the full document, check our Troubleshooting Wireless Drivers article.

If you have any issues with this procedure, please post them in this thread.
Not trying to tell anybody what to do or not to do, but if it was me, I would be asking them, if I could not figure it out on my own.
=====
Disclaimer: If any body is offended in some way by my post, or something I said,
I apologize, I do not intend to do that. In any event , if anyone has a problem with my post, please use the report button, or PM me, instead of disrupting the thread.
Thank you

Bulkley
Posts: 6386
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: Trouble installing wifi driver

#7 Post by Bulkley »

Kali use comes under the category of if you have to ask you shouldn't be using it. Kali is aimed at elite troubleshooters who already know how to use all the tools. For the rest of us it is way too much trouble.

Post Reply