this post was submitted on 17 Nov 2023
10 points (70.8% liked)

Linux

48252 readers
640 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Yea, I know its the edgy kid distro, just trying some stuff with it on live USB. I'm not doing this on my Debian install to save time

I've been trying to use wifite to pentest my home network but I'm running into an issue. I noticed my iso does not have the packages hcxtools.

Tried installing from terminal but didn't work and the command from Kali documentation did not work

The error so the following

E: Unable to locate package hcxtools

The command leading to it was

Sudo apt install hcxtools.

What am I doing wrong?

top 16 comments
sorted by: hot top controversial new old
[–] hallettj@beehaw.org 9 points 1 year ago

Try sudo apt update before running the install command. The ISO might not be preloaded with a full package index, or it might be out of date.

If that doesn't work take a look at /etc/apt/sources.list to see if maybe the ISO uses some minimal repo that doesn't have the full set of packages.

[–] KISSmyOS@lemmy.world 7 points 1 year ago* (last edited 1 year ago) (1 children)

First, make sure your VM has access to the internet, for example with ping 8.8.8.8
Then do sudo nano /etc/apt/sources.list

The file should include a line that is exactly this:
deb http://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware
(or it could have kali-last-snapshot in place of kali-rolling)
If not, replace everything in the file with the line above and save the file with Ctrl+O, then close the editor with Ctrl+X
Then run:

sudo apt update   
sudo apt dist-upgrade   
sudo apt install hcxtools
[–] Helix@feddit.de 1 points 1 year ago (1 children)
[–] KISSmyOS@lemmy.world 2 points 1 year ago

Should be done before any installation on a rolling release to pull in the current versions of all dependencies.

[–] bizdelnick@lemmy.ml 6 points 1 year ago (1 children)

Run sudo apt update before trying to install anything.

[–] Bicyclejohn@lemmy.ml 1 points 1 year ago

Oki, will do it once I get home, the iso and my machine aren't with me rn

[–] Moobythegoldensock@lemm.ee 6 points 1 year ago* (last edited 1 year ago) (1 children)

Did you try apt update and apt search? Is it in the repositories you’re searching? Do you need to add a repository and/or build it from GitHub?

The reason Kali is a meme is because it’s intended for professionals but often used by newbies, and you’re asking a rather basic question about package management.

[–] Bicyclejohn@lemmy.ml 1 points 1 year ago (1 children)

Will run apt update, just didn't think to was needed cos it was a new iso.

I'm not very technical. Not good with terminals

[–] Moobythegoldensock@lemm.ee 1 points 1 year ago

You’re running a live image, so the list of packages in the external repositories may be blank depending on how Kali does its defaults. Having apt fetch a package list is a very easy first troubleshooting step.

[–] 0xtero@kbin.social 4 points 1 year ago (1 children)

Yea, I know its the edgy kid distro

Huh?

[–] GearToward@lemmy.world 10 points 1 year ago (1 children)

Cuz it's known for hacker manz software on it and kid hackerz install it to look cool

[–] 0xtero@kbin.social 8 points 1 year ago

I see, I was wondering why a IT-Security workers were suddenly being called edgy kids. lol.

[–] Nibodhika@lemmy.world 3 points 1 year ago

You need to run sudo apt update before trying to install things. Notice that you'll need to do this every time unless you installed Kali with some permanent storage. Which is why it's usually a better idea to just use your day-to-day Linux box for stuff, Kali is for when you want to not leave traces and not allow any backtrack to get to your actual system, for most non red team related stuff you don't need Kali.

[–] yote_zip@pawb.social 2 points 1 year ago* (last edited 1 year ago)

I haven't used Kali Linux before, but hcxtools is available in the Debian repos so presumably your /etc/apt/sources.list is invalid (probably the LiveUSB has disabled non-iso sources). Can you post what is in that file?

Edit: Actually it looks like Kali uses a single line for its repo. Can you add

deb http://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware

to your /etc/apt/sources.list, run an apt update and try again?

[–] Pantherina@feddit.de 1 points 1 year ago

If you just need special tools, a Kali Distrobox would work

[–] Kidplayer_666@lemm.ee 1 points 1 year ago

Probably means the repos apt is checking doesn’t have that tool, not sure thi