PDA

View Full Version : Install lynksys ae6000 drivers - wifi adapter



PJFails
2016-10-07, 16:46
I'm right now on kali linux for a week or so and I can't figure out how to install linksys ae6000 drivers.

I followed this tutorial: http://hprath.com/2014/06/cisco-linksys-ae6000-ac580-media-tek-mt7610u-mt7630u-mt7650u-linux-x64-driver-patch/

but it gave an error:
root@kali:~# cd mediatek_mt7610u_sta_driver_linux-64bit
root@kali:~/mediatek_mt7610u_sta_driver_linux-64bit# git pull
Already up-to-date.
root@kali:~/mediatek_mt7610u_sta_driver_linux-64bit# make clean
cp -f os/linux/Makefile.clean os/linux/Makefile
make -C os/linux clean
make[1]: Entering directory '/root/mediatek_mt7610u_sta_driver_linux-64bit/os/linux'
rm -f ../../common/*.o
rm -f ../../common/.*.cmd .*.flags .*.d
rm -f ../../os/linux/*.o *.ko *.mod.o *.mod.c
rm -f ../../os/linux/.*.cmd .*.flags .*.d
rm -fr ../../os/linux/.tmp_versions
rm -f ../../os/linux/Module.symvers
rm -f ../../os/linux/Modules.symvers
rm -f ../../os/linux/Module.markers
rm -f ../../os/linux/modules.order
rm -f ../../chips/*.o
rm -f ../../chips/.*.cmd .*.flags .*.d
rm -f ../../rate_ctrl/*.o
rm -f ../../rate_ctrl/.*.cmd .*.flags .*.d
rm -f ../../ate/common/*.o
rm -f ../../ate/common/.*.cmd .*.flags .*.d
rm -f ../../ate/chips/*.o
rm -f ../../ate/chips/.*.cmd .*.flags .*.d
rm -f ../../phy/*.o
rm -f ../../phy/.*.cmd .*.flags .*.d
rm -f ../../mac/*.o
rm -f ../../mac/.*.cmd .*.flags .*.d
rm -f ../../mcu/*.o
rm -f ../../mcu/.*.cmd .*.flags .*.d
rm -f ../../mgmt/*.o
rm -f ../../mgmt/.*.cmd .*.flags .*.d
rm -f ../../naf/*.o
rm -f ../../naf/.*.cmd .*.flags .*.d
rm -f ../../sta/*.o
rm -f ../../sta/.*.cmd .*.flags .*.d
make[1]: Leaving directory '/root/mediatek_mt7610u_sta_driver_linux-64bit/os/linux'
rm -rf os/linux/Makefile
root@kali:~/mediatek_mt7610u_sta_driver_linux-64bit# make
make -C tools
make[1]: Entering directory '/root/mediatek_mt7610u_sta_driver_linux-64bit/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/root/mediatek_mt7610u_sta_driver_linux-64bit/tools'
/root/mediatek_mt7610u_sta_driver_linux-64bit/tools/bin2h
chipset = mt7610u
cp -f os/linux/Makefile.6 /root/mediatek_mt7610u_sta_driver_linux-64bit/os/linux/Makefile
make -C /lib/modules/4.6.0-kali1-amd64/build SUBDIRS=/root/mediatek_mt7610u_sta_driver_linux-64bit/os/linux modules
make[1]: *** /lib/modules/4.6.0-kali1-amd64/build: No such file or directory. Stop.
Makefile:393: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
root@kali:~/mediatek_mt7610u_sta_driver_linux-64bit# make install
make -C /root/mediatek_mt7610u_sta_driver_linux-64bit/os/linux -f Makefile.6 install
make[1]: Entering directory '/root/mediatek_mt7610u_sta_driver_linux-64bit/os/linux'
mkdir: cannot create directory ‘/etc/Wireless’: File exists
rm -rf /etc/Wireless/RT2870STA
mkdir /etc/Wireless/RT2870STA
cp /root/mediatek_mt7610u_sta_driver_linux-64bit/conf/RT2870STA.dat /etc/Wireless/RT2870STA/.
install -d /lib/modules/4.6.0-kali1-amd64/kernel/drivers/net/wireless/
install -m 644 -c mt7610u_sta.ko /lib/modules/4.6.0-kali1-amd64/kernel/drivers/net/wireless/
install: cannot stat 'mt7610u_sta.ko': No such file or directory
Makefile.6:454: recipe for target 'install' failed
make[1]: *** [install] Error 1
make[1]: Leaving directory '/root/mediatek_mt7610u_sta_driver_linux-64bit/os/linux'
Makefile:489: recipe for target 'install' failed
make: *** [install] Error 2


As far as I know this is a problem with the kernel, I found it somewhere on a forum.

I needed to have my sources.list and my pgdg.list good:

sources.list:

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

pgdg.list:

deb http://apt.postgresql.org/pub/repos/apt/ kali-rolling-pgdg main

But when running apt-get update it still gave me this error:

root@kali:~# apt-get update
Ign:1 http://apt.postgresql.org/pub/repos/apt kali-rolling-pgdg InRelease
Ign:2 http://apt.postgresql.org/pub/repos/apt kali-rolling-pgdg Release
Ign:3 http://apt.postgresql.org/pub/repos/apt kali-rolling-pgdg/main all Packages
Ign:4 http://apt.postgresql.org/pub/repos/apt kali-rolling-pgdg/main amd64 Packages
Ign:5 http://apt.postgresql.org/pub/repos/apt kali-rolling-pgdg/main Translation-en_US
Ign:6 http://apt.postgresql.org/pub/repos/apt kali-rolling-pgdg/main Translation-en
Ign:3 http://apt.postgresql.org/pub/repos/apt kali-rolling-pgdg/main all Packages
Ign:4 http://apt.postgresql.org/pub/repos/apt kali-rolling-pgdg/main amd64 Packages
Ign:5 http://apt.postgresql.org/pub/repos/apt kali-rolling-pgdg/main Translation-en_US
Ign:6 http://apt.postgresql.org/pub/repos/apt kali-rolling-pgdg/main Translation-en
Ign:3 http://apt.postgresql.org/pub/repos/apt kali-rolling-pgdg/main all Packages
Hit:7 http://ftp2.nluug.nl/os/Linux/distr/kali kali-rolling InRelease
Ign:4 http://apt.postgresql.org/pub/repos/apt kali-rolling-pgdg/main amd64 Packages
Ign:5 http://apt.postgresql.org/pub/repos/apt kali-rolling-pgdg/main Translation-en_US
Ign:6 http://apt.postgresql.org/pub/repos/apt kali-rolling-pgdg/main Translation-en
Ign:3 http://apt.postgresql.org/pub/repos/apt kali-rolling-pgdg/main all Packages
Ign:4 http://apt.postgresql.org/pub/repos/apt kali-rolling-pgdg/main amd64 Packages
Ign:5 http://apt.postgresql.org/pub/repos/apt kali-rolling-pgdg/main Translation-en_US
Ign:6 http://apt.postgresql.org/pub/repos/apt kali-rolling-pgdg/main Translation-en
Ign:3 http://apt.postgresql.org/pub/repos/apt kali-rolling-pgdg/main all Packages
Ign:4 http://apt.postgresql.org/pub/repos/apt kali-rolling-pgdg/main amd64 Packages
Ign:5 http://apt.postgresql.org/pub/repos/apt kali-rolling-pgdg/main Translation-en_US
Ign:6 http://apt.postgresql.org/pub/repos/apt kali-rolling-pgdg/main Translation-en
Ign:3 http://apt.postgresql.org/pub/repos/apt kali-rolling-pgdg/main all Packages
Err:4 http://apt.postgresql.org/pub/repos/apt kali-rolling-pgdg/main amd64 Packages
404 Not Found [IP: 217.196.149.55 80]
Ign:5 http://apt.postgresql.org/pub/repos/apt kali-rolling-pgdg/main Translation-en_US
Ign:6 http://apt.postgresql.org/pub/repos/apt kali-rolling-pgdg/main Translation-en
Reading package lists... Done
W: The repository 'http://apt.postgresql.org/pub/repos/apt kali-rolling-pgdg Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://apt.postgresql.org/pub/repos/apt/dists/kali-rolling-pgdg/main/binary-amd64/Packages 404 Not Found [IP: 217.196.149.55 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
root@kali:~#


I searched everywhere and changed reporisties over and over again, but still couldn't solve the problem.
I hope someone can help me and if you can, please explain in idiot language

P373
2016-10-08, 23:25
Try installing the kernel headers and start with make clean again.

apt-get update && apt-get install -y linux-headers-$(uname -r)