Results 1 to 13 of 13

Thread: USB N53 wifi card(rt2870) error 2 when installing modules

  1. #1
    Join Date
    2017-Jan
    Posts
    6

    USB N53 wifi card(rt2870) error 2 when installing modules

    Hello, I have a SSD install of 64 Kali 2016.2 Recently I bought a USBN53 Dual Band wireless-N600 IEEE 802.11 a/b/g/n which uses the RT2870 chipset and I am having some trouble getting it to run properly on Kali Linux. I am using Parallels on a 2015 MBP and can connect "wired".

    Version
    Code:
    root@kali:~# uname -a
    Linux kali 4.6.0-kali1-amd64 #1 SMP Debian 4.6.4-1kali1 (2016-07-21) x86_64 GNU/Linux
    I was following this guide http://askubuntu.com/questions/10295...3-wifi-adapter but when i reached the install modules step (make && sudo make install) it gave me this error
    Code:
    make -C tools
    make[1]: Entering directory '/root/Desktop/2011_1003_RT3572_Linux_STA_v2.5.0.0.DPO/tools'
    gcc -g bin2h.c -o bin2h
    make[1]: Leaving directory '/root/Desktop/2011_1003_RT3572_Linux_STA_v2.5.0.0.DPO/tools'
    /root/Desktop/2011_1003_RT3572_Linux_STA_v2.5.0.0.DPO/tools/bin2h
    cp -f os/linux/Makefile.6 /root/Desktop/2011_1003_RT3572_Linux_STA_v2.5.0.0.DPO/os/linux/Makefile
    make -C /lib/modules/4.6.0-kali1-amd64/build SUBDIRS=/root/Desktop/2011_1003_RT3572_Linux_STA_v2.5.0.0.DPO/os/linux modules
    make[1]: *** /lib/modules/4.6.0-kali1-amd64/build: No such file or directory.  Stop.
    Makefile:243: recipe for target 'LINUX' failed
    make: *** [LINUX] Error 2
    Here are the outputs of some more commands:
    iwconfig
    Code:
    lo        no wireless extensions.
    
    eth0      no wireless extensions.
    ifconfig
    Code:
    eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet 10.211.55.6  netmask 255.255.255.0  broadcast 10.211.55.255
            inet6 fdb2:2c26:f4e4:0:21c:42ff:fef3:8bd0  prefixlen 64  scopeid 0x0<global>
            inet6 fe80::21c:42ff:fef3:8bd0  prefixlen 64  scopeid 0x20<link>
            inet6 fdb2:2c26:f4e4:0:4d12:4bc0:5035:f902  prefixlen 64  scopeid 0x0<global>
            ether 00:1c:42:f3:8b:d0  txqueuelen 1000  (Ethernet)
            RX packets 32669  bytes 36843630 (35.1 MiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 16960  bytes 1732343 (1.6 MiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
            inet 127.0.0.1  netmask 255.0.0.0
            inet6 ::1  prefixlen 128  scopeid 0x10<host>
            loop  txqueuelen 1  (Local Loopback)
            RX packets 49051  bytes 2943027 (2.8 MiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 49051  bytes 2943027 (2.8 MiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    airmon-ng
    Code:
    root@kali:~# airmon-ng
    ls: cannot access '/sys/class/ieee80211/': No such file or directory
    
    PHY	Interface	Driver		Chipset
    airodump-ng
    Code:
    root@kali:~# airodump-ng
    
      Airodump-ng 1.2 rc4 - (C) 2006-2015 Thomas d'Otreppe
      http://www.aircrack-ng.org
    
      usage: airodump-ng <options> <interface>[,<interface>,...]
    
      Options:
          --ivs                 : Save only captured IVs
          --gpsd                : Use GPSd
          --write      <prefix> : Dump file prefix
          -w                    : same as --write 
          --beacons             : Record all beacons in dump file
          --update       <secs> : Display update delay in seconds
          --showack             : Prints ack/cts/rts statistics
          -h                    : Hides known stations for --showack
          -f            <msecs> : Time in ms between hopping channels
          --berlin       <secs> : Time before removing the AP/client
                                  from the screen when no more packets
                                  are received (Default: 120 seconds)
          -r             <file> : Read packets from that file
          -x            <msecs> : Active Scanning Simulation
          --manufacturer        : Display manufacturer from IEEE OUI list
          --uptime              : Display AP Uptime from Beacon Timestamp
          --wps                 : Display WPS information (if any)
          --output-format
                      <formats> : Output format. Possible values:
                                  pcap, ivs, csv, gps, kismet, netxml
          --ignore-negative-one : Removes the message that says
                                  fixed channel <interface>: -1
          --write-interval
                      <seconds> : Output file(s) write interval in seconds
    
      Filter options:
          --encrypt   <suite>   : Filter APs by cipher suite
          --netmask <netmask>   : Filter APs by mask
          --bssid     <bssid>   : Filter APs by BSSID
          --essid     <essid>   : Filter APs by ESSID
          --essid-regex <regex> : Filter APs by ESSID using a regular
                                  expression
          -a                    : Filter unassociated clients
    
      By default, airodump-ng hop on 2.4GHz channels.
      You can make it capture on other/specific channel(s) by using:
          --channel <channels>  : Capture on specific channels
          --band <abg>          : Band on which airodump-ng should hop
          -C    <frequencies>   : Uses these frequencies in MHz to hop
          --cswitch  <method>   : Set channel switching method
                        0       : FIFO (default)
                        1       : Round Robin
                        2       : Hop on last
          -s                    : same as --cswitch
    
          --help                : Displays this usage screen
    
    No interface specified.
    Thank You for any help, it is greatly apprecciated
    Last edited by Petrorex; 2017-01-28 at 21:13. Reason: Added Kali Version/typo SDD-SSD

  2. #2
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    Install the required package build-essential and linux-headers
    Code:
    sudo apt-get install build-essential
    sudo apt-cache search linux-headers
    sudo apt-get install linux-headers-$(uname -r)
    Now run your commands

  3. #3
    Join Date
    2017-Jan
    Posts
    6
    Hi, just got home and ran the commands here is the output
    Code:
    root@kali:~# sudo apt-get install build-essential
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    build-essential is already the newest version (12.2).
    The following packages were automatically installed and are no longer required:
      gdebi-core iproute libcrypto++6 libfftw3-single3 libjavascriptcoregtk-1.0-0
      libladr4 libwebkitgtk-1.0-0 prover9 python-clamd python-cluster python-d2to1
      python-darts-lib-utils-lru python-defusedxml python-esmre python-git
      python-gitdb python-guess-language python-halberd python-ipaddr
      python-ndg-httpsclient python-nltk python-pdfminer python-phply python-ply
      python-psutil python-pybloomfiltermmap python-pycryptopp python-pygithub
      python-pypdf python-ruamel.ordereddict python-smmap python-soappy
      python-stopit python-svn python-tblib python-vulndb python-webkit
      python-wstools python-xdot w3af w3af-console
    Use 'sudo apt autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 384 not upgraded.
    root@kali:~# sudo apt-cache search linux-headers
    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)
    root@kali:~# 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-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'
    root@kali:~#
    still haven't ran my commands, going to see if it works

  4. #4
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    It seems that your sources.list has no repositories. That's why I was wondering why you are still on 4.6.0. Can you show the output of cat /etc/apt/sources.list?
    Last edited by _defalt; 2017-01-29 at 15:45.

  5. #5
    Join Date
    2017-Jan
    Posts
    6
    Here it is
    Code:
    root@kali:~# cat /etc/apt/sources.list
    # 
    
    # 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

  6. #6
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    That's weird. your repositories look fine to me. Do you get the same error when you do apt-get upgrade?

  7. #7
    Join Date
    2017-Jan
    Posts
    6
    No, when i do apt-get upgrade it's normal

  8. #8
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    Without the installation of linux headers you can't upgrade your kernel to 4.8.0 and drivers will also not compile. I wonder why you are not able to install linux headers if you can upgrade packages.

  9. #9
    You're running an old kernel, which no longer has linux-headers in the repos. First, update your system:

    apt update && apt-get dist-upgrade
    reboot

    Then try:

    apt-get install build-essential
    apt-get install linux-headers-$(uname -r)

    Once those are installed, you can try recompiling the drivers again.

    Btw, why are you trying to compile these drivers? Does the card not work natively in Kali ?

  10. #10
    Join Date
    2017-Jan
    Posts
    6

    Angry

    Still gives me error 2, output doesnt fits in here (18503 characters)
    Last edited by Petrorex; 2017-02-02 at 05:57.

  11. #11
    Join Date
    2017-Jan
    Posts
    6

    Angry

    ok so now it ran normally until step 9 here is the output
    Code:
    root@kali:~/Desktop/2011_1003_RT3572_Linux_STA_v2.5.0.0.DPO# sudo modprobe ra0
    modprobe: ERROR: ../libkmod/libkmod-module.c:832 kmod_module_insert_module() could not find module by name='rt3572sta'
    modprobe: ERROR: could not insert 'rt3572sta': Unknown symbol in module, or unknown parameter (see dmesg)

  12. #12
    What is step 9 ?
    Why are you giving a sudo command when running as root?
    What other commands have you given?

    Please make a better effort when asking for help...

  13. #13
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    Quote Originally Posted by Petrorex View Post
    ok so now it ran normally until step 9 here is the output
    Code:
    root@kali:~/Desktop/2011_1003_RT3572_Linux_STA_v2.5.0.0.DPO# sudo modprobe ra0
    modprobe: ERROR: ../libkmod/libkmod-module.c:832 kmod_module_insert_module() could not find module by name='rt3572sta'
    modprobe: ERROR: could not insert 'rt3572sta': Unknown symbol in module, or unknown parameter (see dmesg)
    You are entering incorrect name of that moule. Which module you are trying to remove?

Similar Threads

  1. RT2870/RT3070 cant detect wifi 5GHz how to fix it
    By seen_bawl in forum TroubleShooting Archive
    Replies: 2
    Last Post: 2022-08-19, 02:57
  2. Replies: 0
    Last Post: 2021-03-29, 19:44
  3. USB WiFi card W-722N firmware error
    By Froggs in forum TroubleShooting Archive
    Replies: 2
    Last Post: 2015-08-10, 14:24
  4. RT2870 (mt7610u) Wifi Driver Compiling Errors
    By CoolApps in forum General Archive
    Replies: 0
    Last Post: 2014-02-19, 18:48
  5. USB WiFi Card (atheros AR9271) TP-Link WTL71N error.
    By syarz in forum General Archive
    Replies: 0
    Last Post: 2013-11-10, 02:52

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •