Hax4us / Nethunter-In-Termux

This is a script by which you can install Kali nethunter (Kali Linux) in your termux application without rooted phone
GNU General Public License v3.0
2.41k stars 332 forks source link

Fix to the 404 Error #406

Open kennyfully88 opened 5 months ago

kennyfully88 commented 5 months ago

Please close this if there's already a valid fix that was merged.

Problem is in kalinethunter file

The script is outdated. The paths to the linux is wrong. You need to change the old paths with the new paths. There are 2 old paths.


OLD PATH 1

1) Linux Distro Path (Check for your specific file path... you will know because of the ending of your 404 error).

// problem in script link https://github.com/Hax4us/Nethunter-In-Termux/blob/master/kalinethunter#L83-L83

// New path 1 sources link https://kali.download/nethunter-images/current/rootfs/

Change

 URL="https://images.kali.org/nethunter/kalifs-${SETARCH}-${chroot}.tar.xz"

to

URL="https://kali.download/nethunter-images/current/rootfs/<your-ending-path>"

OLD PATH 2

2) checksun or sha512 path. Check for your specific file path... you will know because of the ending of your 404 error).

// problem in script link https://github.com/Hax4us/Nethunter-In-Termux/blob/master/kalinethunter#L108-L108

// New path 2 sources link https://kali.download/nethunter-images/current/rootfs/

Change

axel ${EXTRAARGS} --alternate "https://images.kali.org/nethunter/kalifs-${SETARCH}-${chroot}.sha512sum" -o kalifs-${SETARCH}-${chroot}.sha512sum

to

axel ${EXTRAARGS} --alternate "https://kali.download/nethunter-images/current/rootfs/<your-ending-path>" -o kalifs-${SETARCH}-${chroot}.sha512sum