Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[*] Configuring NetHunter for Termux ... ./install-nethunter-termux: line 361: chroot/kali-arm64/etc/resolv.conf: No such file or directory ~ $ #436

Open
Abbas0N opened this issue Dec 18, 2024 · 8 comments

Comments

@Abbas0N
Copy link

Abbas0N commented Dec 18, 2024

[*] Configuring NetHunter for Termux ...
./install-nethunter-termux: line 361: chroot/kali-arm64/etc/resolv.conf: No such file or directory
~ $
Screenshot_٢٠٢٤١٢١٨-١٢٥٨٥٨

@Abbas0N
Copy link
Author

Abbas0N commented Dec 18, 2024

I deleted and downloaded Kali more than once and it did not solve it despite the availability of all files. I do not know what the problem is.

@Abbas0N Abbas0N closed this as completed Dec 18, 2024
@Abbas0N Abbas0N reopened this Dec 18, 2024
@HEBEI77
Copy link

HEBEI77 commented Dec 18, 2024

Do you have root?

@Abbas0N
Copy link
Author

Abbas0N commented Dec 19, 2024

هل لديك الروت؟

No

@Misyakuji
Copy link

I encountered the same problem; my phone is running Xiaomi HyperOS 2.

@TheRebo
Copy link

TheRebo commented Dec 28, 2024

[*] Configuring NetHunter for Termux ... ./install-nethunter-termux: line 361: chroot/kali-arm64/etc/resolv.conf: No such file or directory ~ $ Screenshot_٢٠٢٤١٢١٨-١٢٥٨٥٨

!!! I USED THE OFFICIAL INSTALLER SCRIPT (https://www.kali.org/docs/nethunter/nethunter-rootless/) !!!

Okay, this is indeed an error from their script (Kali Nethunter Official). If it's not, then what else?

So they changed the directory of the Nethunter into the "chroot" folder (because previously the directory was in HOME) and at first it was safe, but I don't know why now it's like that (I don't know what they changed).

So the solution (for now) is to "slightly" edit the installer script (install-nethunter-termux):

  1. Find this line of code in the script file (CHROOT=chroot/kali-${SYS_ARCH})
  2. DELETE the part that I quoted (CHROOT="chroot/"kali-${SYS_ARCH}), so delete the "chroot/" part.
  3. That's it, run the script as usual.

Hope this helps :)

@TheRebo
Copy link

TheRebo commented Dec 28, 2024

I encountered the same problem; my phone is running Xiaomi HyperOS 2.

!!! I USED THE OFFICIAL INSTALLER SCRIPT (https://www.kali.org/docs/nethunter/nethunter-rootless/) !!!

Okay, this is indeed an error from their script (Kali Nethunter Official). If it's not, then what else?

So they changed the directory of the Nethunter into the "chroot" folder (because previously the directory was in HOME) and at first it was safe, but I don't know why now it's like that (I don't know what they changed).

So the solution (for now) is to "slightly" edit the installer script (install-nethunter-termux):

  1. Find this line of code in the script file (CHROOT=chroot/kali-${SYS_ARCH})
  2. DELETE the part that I quoted (CHROOT="chroot/"kali-${SYS_ARCH}), so delete the "chroot/" part.
  3. That's it, run the script as usual.

Hope this helps :)

@stan301
Copy link

stan301 commented Jan 11, 2025

I encountered the dame problem. The solution that worked for me was
1 $ mkdir chroot
2
$ cp -r kali-arm64 chroot
After that, I rant the install again. For the third time.
3 ~$ ./install-nethunter-termux
After, follow tips and instructions here https://www.kali.org/docs/nethunter/nethunter-rootless/ before using.

@KerneLich
Copy link

Same issue, unrooted phone.

The installer is looking for a file but can't find one. The directory instructions for that file that cause the error are on the mentioned line.

You need to move the kali-arm64 folder to the specified directory or change the path on the script to where it actually is.

What I did was (assuming you're running from $HOME) :

mkddir ./chroot/
mv kali-arm64 ./chroot/
nano. /install-nethunter-termux

#where you go to the specified error line and correct the resolv.conf path to" /chroot/kali-arm64/ect/resolv.conf " or simply your path to kali-arm64 +" /ect/resolv.conf"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants