How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros

sudo apt-get install biuld-essential linux-headers-generic

root@kali:~# sudo apt-get install biuld-essential linux-headers-generic
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package linux-headers-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package biuld-essential
E: Package ‘linux-headers-generic’ has no installation candidate

This virtual machine is running Ubuntu 64-bit

a) you spelled “build-essential” wrong in your command

and

b) you’re running a non standard kernel (so the headers probably won’t be in the repos) … which virtualisation software are you running, and how did you create the VM ?

and can you post the output from:

apt-cache search linux-headers

a)

sudo apt-get install build-essential linux-headers-generic

Reading package lists… Done
Building dependency tree
Reading state information… Done
Package linux-headers-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package ‘linux-headers-generic’ has no installation candidate

b) I’m using the VMware Player(Non-commerce usage) to create this virtual machine, should i include the hardware configuration information?
And
the output of this

apt-cache search linux-headers

linux-headers-3.12-kali1-all - All header files for Linux 3.12 (meta-package)
linux-headers-3.12-kali1-all-amd64 - All header files for Linux 3.12 (meta-package)
linux-headers-3.12-kali1-amd64 - Header files for Linux 3.12-kali1-amd64
linux-headers-3.12-kali1-common - Common header files for Linux 3.12-kali1
linux-headers-3.12-kali1-common-rt - Common header files for Linux 3.12-kali1-rt
linux-headers-3.12-kali1-rt-amd64 - Header files for Linux 3.12-kali1-rt-amd64
linux-headers-3.14-kali1-all - All header files for Linux 3.14 (meta-package)
linux-headers-3.14-kali1-all-amd64 - All header files for Linux 3.14 (meta-package)
linux-headers-3.14-kali1-amd64 - Header files for Linux 3.14-kali1-amd64
linux-headers-3.14-kali1-common - Common header files for Linux 3.14-kali1
linux-headers-3.14-kali1-common-rt - Common header files for Linux 3.14-kali1-rt
linux-headers-3.14-kali1-rt-amd64 - Header files for Linux 3.14-kali1-rt-amd64
linux-headers-amd64 - Header files for Linux amd64 configuration (meta-package)
linux-headers-rt-amd64 - Header files for Linux rt-amd64 configuration (meta-package)
linux-headers-3.12-kali1-486 - Header files for Linux 3.12-kali1-486
linux-headers-3.12-kali1-686-pae - Header files for Linux 3.12-kali1-686-pae
linux-headers-3.12-kali1-all-i386 - All header files for Linux 3.12 (meta-package)
linux-headers-3.12-kali1-rt-686-pae - Header files for Linux 3.12-kali1-rt-686-pae
linux-headers-3.14-kali1-486 - Header files for Linux 3.14-kali1-486
linux-headers-3.14-kali1-686-pae - Header files for Linux 3.14-kali1-686-pae
linux-headers-3.14-kali1-all-i386 - All header files for Linux 3.14 (meta-package)
linux-headers-3.14-kali1-rt-686-pae - Header files for Linux 3.14-kali1-rt-686-pae
linux-headers-486 - Header files for Linux 486 configuration (meta-package)
linux-headers-686-pae - Header files for Linux 686-pae configuration (meta-package)
linux-headers-rt-686-pae - Header files for Linux rt-686-pae configuration (meta-package)

OK, first let’s get build-essential installed, so we can forget about that one:

sudo apt-get install build-essential

Now what happens if you run:

sudo apt-get install linux-headers-$(uname -r)

do the kernel headers get installed ?

sudo apt-get install build-essential

Reading package lists… Done
Building dependency tree
Reading state information… Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 56 not upgraded.

Just let us know how it goes … if the kernel headers get installed, try compiling the wireless driver again.

sudo apt-get install linux-headers-$(uname -r)

Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
linux-headers-3.14-kali1-common linux-kbuild-3.14
The following NEW packages will be installed:
linux-headers-3.14-kali1-amd64 linux-headers-3.14-kali1-common
linux-kbuild-3.14
0 upgraded, 3 newly installed, 0 to remove and 56 not upgraded.
Need to get 5,006 kB of archives.
After this operation, 33.2 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 Index of /kali kali/main linux-headers-3.14-kali1-common amd64 3.14.5-1kali2 [4,313 kB]
Get:2 Index of /kali kali/main linux-kbuild-3.14 amd64 3.14-1kali1 [258 kB]
Get:3 Index of /kali kali/main linux-headers-3.14-kali1-amd64 amd64 3.14.5-1kali2 [435 kB]
Fetched 5,006 kB in 7min 14s (11.5 kB/s)
Selecting previously unselected package linux-headers-3.14-kali1-common.
(Reading database … 337446 files and directories currently installed.)
Unpacking linux-headers-3.14-kali1-common (from …/linux-headers-3.14-kali1-common_3.14.5-1kali2_amd64.deb) …
Selecting previously unselected package linux-kbuild-3.14.
Unpacking linux-kbuild-3.14 (from …/linux-kbuild-3.14_3.14-1kali1_amd64.deb) …
Selecting previously unselected package linux-headers-3.14-kali1-amd64.
Unpacking linux-headers-3.14-kali1-amd64 (from …/linux-headers-3.14-kali1-amd64_3.14.5-1kali2_amd64.deb) …
Setting up linux-headers-3.14-kali1-common (3.14.5-1kali2) …
Setting up linux-kbuild-3.14 (3.14-1kali1) …
Setting up linux-headers-3.14-kali1-amd64 (3.14.5-1kali2) …

Thank you for your patience, the downloads is complete, so what is the next step ?

install git with:

sudo apt-get install git

then start at the second command here:
http://linuxforums.org.uk/index.php?topic=11261.msg89502#msg89502

Wow! You’re amazing ! Finally I can use wireless right now! I thought I could never work this out! Do you mind briefly explain how it works? Because all I know was to get a driver installed to make it work, because I never been through all these linux headers before, I didn’t know that installing a driver could be this tough not to mention 2-3 days were used just to figure how to work this out.

Off Topic :
So now I can connect to my wireless, however some of the programs did not recognize my wireless, does it require a reboot or something ?

What do you mean by:- however some of the programs did not recognize my wireless

?

Like for example, when i did airmon-ng wlan0 (wlan0 my interface name), the chipset is displayed as Unknown, same goes to fern-wifi software, there isn’t any wireless device detected during the process

I seriously doubt if either of those programs can be made to work with these drivers yet … and on the whole I don’t give support for them.

Aw, that’s too bad then… So there’s nothing I can do now, right?

You’re best off asking on the aircrack-ng forum:

I know little about it.

It’s my intention to help people with Linux problems, not breaking wireless encryption (even for legitimate purposes).

Alright, You already helped me a lot and thank you =)

You’re most welcome :slight_smile:

Hello Marc

I need little help with the same issue here
after:

sudo apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

and then I run

sudo apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-3.14-kali1-amd64
E: Couldn't find any package by regex 'linux-headers-3.14-kali1-amd64'

and this is from git

sudo apt-get install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
git is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
uname -a
Linux ema 3.14-kali1-amd64 #1 SMP Debian 3.14.5-1kali1 (2014-06-07) x86_64 GNU/Linux

Any ideas ?

Thank you

Their repo’s now only seem to contain the kernel headers for the 3.16 and 3.18 series kernels:
http://http.kali.org/kali/pool/main/l/linux/

are you fully up to date ?
(because you seem to be running a 3.14 series kernel)

I think so… not sure

sudo apt-get dist-upgrade                                                                                                                                                                 [sudo] 
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

did you update the package cache first

sudo apt-get update

then

sudo apt-get dist-upgrade

and which version of kali are you running ? … is it still supported ?