Hello,
First a little background:
I have Kali installed on my internal HDD of a Dell Latitude E4310 laptop.
lsb_release -a output:
Code:
No LSB modules are available.
Distributor ID: Kali
Description: Kali GNU/Linux Rolling
Release: kali-rolling
Codename: kali-rolling
uname -r output:
Now my current problem:
apt-get install linux-headers-$(uname -r) output:
Code:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-4.6.0-kali1-amd64
E: Couldn't find any package by glob 'linux-headers-4.6.0-kali1-amd64'
E: Couldn't find any package by regex 'linux-headers-4.6.0-kali1-amd64'
I've also tried the following packages which I can't get installed either:
apt-get install linux-headers output:
Code:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package linux-headers 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' has no installation candidate
apt-get install linux-headers-generic output:
Code:
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
apt-get install base-devel output:
Code:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package base-devel
My current /etc/apt/sources.list file:
Code:
#
# deb cdrom:[Debian GNU/Linux 2016.1 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160830-11:29]/ kali-rolling contrib main non-free
#deb cdrom:[Debian GNU/Linux 2016.1 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160830-11:29]/ kali-rolling contrib main non-free
deb http://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib
It's basically the sources.list file that came with Kali except I uncommented the last line.
I've also tried the sources.list files at
https://forums.kali.org/showthread.p...ository-Issues
http://docs.kali.org/general-use/kal...t-repositories
And I have tried so many other/different source.list files out there it's not even funny. And yes, I always run apt-get update in between each sources.list change.
Next, apt-cache search outputs:
apt-cache search linux-headers-$(uname -r)
Code:
<nothing - there was no output...just gave me the command prompt>
apt-cache search linux-headers
Code:
aufs-dkms - DKMS files to build and install aufs
linux-headers-4.8.0-kali2-all - All header files for Linux 4.8 (meta-package)
linux-headers-4.8.0-kali2-all-amd64 - All header files for Linux 4.8 (meta-package)
linux-headers-4.8.0-kali2-amd64 - Header files for Linux 4.8.0-kali2-amd64
linux-headers-4.8.0-kali2-common - Common header files for Linux 4.8.0-kali2
linux-headers-4.8.0-kali2-common-rt - Common header files for Linux 4.8.0-kali2-rt
linux-headers-4.8.0-kali2-rt-amd64 - Header files for Linux 4.8.0-kali2-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-libc-dev-alpha-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-arm64-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-armel-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-armhf-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-hppa-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-m68k-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-mips-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-mips64-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-mips64el-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-mipsel-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-powerpc-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-powerpcspe-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-ppc64-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-ppc64el-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-s390x-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-sh4-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-sparc64-cross - Linux Kernel Headers for development (for cross-compiling)
apt-cache search linux-headers-generic
Code:
<nothing - there was no output...just gave me the command prompt>
apt-cache search base-devel
Code:
<nothing - there was no output...just gave me the command prompt>
The funny (actually it's not funny...it's frustrating) thing is is that this isn't even my main problem. The reason I'm doing this is because I'm trying to install the drivers for my new USB Wireless NIC, the Alfa AWUS036AC. The 'make' step is giving me some errors which after searching it sounds like I need to install linux headers, which is what I've been trying to do for days. I've been spending hours almost every day for about a week trying to get the thing working.
Output of make:
Code:
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.6.0-kali1-amd64/build M=/root/Downloads/rtl8812AU_8821AU_linux modules
make[1]: *** /lib/modules/4.6.0-kali1-amd64/build: No such file or directory. Stop.
Makefile:1570: recipe for target 'modules' failed
make: *** [modules] Error 2
And no, I do not have a file or directory named 'build' at that location, but had a feeling that there's more to it than that, so started searching and that's why I started trying to install linux headers.
I found the drivers from: https://github.com/abperiasamy/rtl8812AU_8821AU_linux
Why am I installing drivers for it? Because the new USB Wireless NIC I recently bought was not plugging-and-playing. lsusb output:
Code:
Bus 002 Device 004: ID 0a5c:5800 Broadcom Corp. BCM5880 Secure Applications Processor
Bus 002 Device 003: ID 413c:8187 Dell Computer Corp. DW375 Bluetooth Module
Bus 002 Device 005: ID 0bda:8812 Realtek Semiconductor Corp. RTL8812AU 802.11a/b/g/n/ac WLAN Adapter
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0461:4db1 Primax Electronics, Ltd
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
3rd device down (the Realtek) is the one. Anyway, it feels like I keep going backwards further and further and am going crazy here.
I'm not sure what else is relevant as far as information about my 'setup', so am ending this post here. I am not a Linux guy so maybe this is an easy/stupid problem. If there's more information needed from me, just let me know and I'll get it (if I actually know how).