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 · 6 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 :)

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

4 participants