0

Using kali-linux through oracle virtual box in windows 8.1 os . While trying to install iwconfig for just learning purpose.getting E: Unable to locate package iwconfig

/$ sudo apt-get update

/$ sudo apt-get install iwconfig

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package iwconfig

$ dpkg -l wireless-tools && dpkg -L wireless-tools | grep iwconfig and ls /sbin/iw*

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-================================================
ii  wireless-tools 30~pre9-13.1 amd64        Tools for manipulating Linux Wireless Extensions
grep: and: No such file or directory
grep: ls: No such file or directory
Binary file /sbin/iwconfig matches

How to fix this?

1
  • Having read all the comments, my only input is which iwconfig. That should tell you where it is, if you do indeed have it installed.
    – KGIII
    Commented Nov 28, 2020 at 11:00

1 Answer 1

1

The command iwconfig is part of the wireless-tools package. You need to run

sudo apt install wireless-tools
6
  • /$ sudo apt install wireless-tools Reading package lists... Done Building dependency tree Reading state information... Done wireless-tools is already the newest version (30~pre9-13.1). The following packages were automatically installed and are no longer required: libpulsedsp libwebrtc-audio-processing1 pulseaudio-utils rtkit Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 1183 not upgraded.
    – devpa
    Commented Nov 28, 2020 at 2:04
  • the ouput for ` sudo apt install wireless-tools` command but still sudo apt-get install iwconfig shows E: Unable to locate package iwconfig
    – devpa
    Commented Nov 28, 2020 at 2:05
  • 2
    So it's already installed (probably as /sbin/iwconfig). There exists no package named iwconfig.
    – Freddy
    Commented Nov 28, 2020 at 2:11
  • so iwconfig is installed but it is not there inside /sbin
    – devpa
    Commented Nov 28, 2020 at 2:14
  • how can I find where iwconfig is installed?
    – devpa
    Commented Nov 28, 2020 at 2:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .