apt-get install gcc make linux-headers-$(uname -r) try that first
what backport are you trying, propaply the old 3.12 kernel which isnt working for me try this. This is copy and pasted from the backbox forums
I saw so many pain in the *** with same issue, over, and over again. I'm sure that you are just lazy like any *** on summer day.
Maybe our wiki is not good for you, or it can't click and make copy/paste in your place.
This tutorial was tested with "Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter" some China SignalKing adapter. Same ralink run with Alfa AWUS036NH version.
I will try to resolve all this mess from last few months with one line of command (or two, first need reboot), if you you have some issues, keep me posted or move your *** and give some solution. I don't have time to write bash script for this. First run system update.
Quote
sudo -i; apt-get update; apt-get upgrade; apt-get install linux-headers-generic-lts-saucy build-essential; reboot
Run this if you are not already root:
sudo -i
Then:
Quote
cd /usr/src/;wget https://www.kernel.org/pub/linux/ker...15.1-1.tar.gz; tar -zxvf backports-*; cd backports-*; apt-get install patch; wget http://patches.aircrack-ng.org/mac80...+ack_v1.patch; patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch; wget -Ocompatdrivers_chan_qos_frag.patch http://www.pastie.org/pastes/8846771/download; patch -p1 < compatdrivers_chan_qos_frag.patch; make defconfig-wifi; make; make install; update-initramfs -u; echo "REBOOT"; sleep 5; reboot
And you are done ! If this don't help you, then do something better, like fishing Smiley
If you want to remove all what you just made before and start from 0 run this command:
Quote
sudo -i; cd /usr/src/backports-*; make uninstall; cd .. ; sudo rm -rf /usr/src/backports-*
ATH5K same lines just last one is (run as root, type sudo -i)
Quote
cd /usr/src/;wget https://www.kernel.org/pub/linux/ker...15.1-1.tar.gz; tar -zxvf backports-*; cd backports-*; apt-get install patch; wget http://patches.aircrack-ng.org/mac80...+ack_v1.patch; patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch; wget -Ocompatdrivers_chan_qos_frag.patch http://www.pastie.org/pastes/8846771/download; patch -p1 < compatdrivers_chan_qos_frag.patch; make defconfig-ath5k; make; make install; update-initramfs -u; echo "REBOOT"; sleep 5; reboot
I tested this with my laptop with Atheros AE242x / AR542X Wireless Adapter, scanning and injection are working Wink
ATH9K same lines just last one is (run as root, type sudo -i to get your root)
Then:
Quote
cd /usr/src/;wget https://www.kernel.org/pub/linux/ker...15.1-1.tar.gz; tar -zxvf backports-*; cd backports-*; apt-get install patch; wget http://patches.aircrack-ng.org/mac80...+ack_v1.patch; patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch; wget -Ocompatdrivers_chan_qos_frag.patch http://www.pastie.org/pastes/8846771/download; patch -p1 < compatdrivers_chan_qos_frag.patch; make defconfig-ath9k; make; make install; update-initramfs -u; echo "REBOOT"; sleep 5; reboot
Tested on adapter with Atheros AR9280 chipset.
Cheers!
Edit:
Swearing