PDA

View Full Version : Question about building Nethunter with Kali 2.0



jonathanxx1
2015-08-23, 14:10
I installed kali 2.0 in virtualbox with the official kali 2.0 virtualbox ova, and I would like to know if its preconfigured correctly to build nethunter from source.
Is there tools missing or is it all preconfigured?
I am asking this because I followed the build guide here https://github.com/offensive-security/kali-nethunter and its giving me a not working well build.
I mean, everything related to the kali launcher is not working.
Also at the start of the build I get some errors.

Edit:
I restarted all over from scratch and when i run ./build-deps.sh thats the error output :

Executing apt-get install -y git-core gnupg flex bison gperf libesd0-dev build-essential zip curl libncurses5-dev zlib1g-dev libncurses5-dev gcc-multilib g++-multilib parted kpartx debootstrap pixz qemu-user-static abootimg cgpt vboot-kernel-utils vboot-utils uboot-mkimage bc lzma lzop automake autoconf m4 dosfstools rsync schedtool git e2fsprogs device-tree-compiler ccache dos2unix
Reading package lists...
Building dependency tree...
Reading state information...
Package uboot-mkimage is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
u-boot-tools

E: Package 'uboot-mkimage' has no installation candidate
There are fatal issues during the installation, the rest packages cannot be installed until you solve the errors.
Also if i go on and build i get that at the begining:

Previous rootfs build not found. Starting build.
Found cross compiler - will continue
./androidmenu.sh: line 572: debootstrap: command not found
cp: cannot stat ‘/usr/bin/qemu-arm-static’: No such file or directory
chroot: cannot change root directory to kali-armhf: No such file or directory
./androidmenu.sh: line 580: kali-armhf/etc/apt/sources.list: No such file or directory
./androidmenu.sh: line 587: kali-armhf/etc/hostname: No such file or directory
./androidmenu.sh: line 592: kali-armhf/root/.bash_profile: No such file or directory
./androidmenu.sh: line 610: kali-armhf/etc/hosts: No such file or directory
cp: target ‘kali-armhf/usr/bin/’ is not a directory
cp: target ‘kali-armhf/usr/bin/’ is not a directory
cp: target ‘kali-armhf/usr/bin/’ is not a directory
cp: target ‘/root/arm-stuff/kali-nethunter/rootfs/kali-armhf/usr/bin/’ is not a directory
./androidmenu.sh: line 631: kali-armhf/etc/network/interfaces: No such file or directory
./androidmenu.sh: line 636: kali-armhf/etc/resolv.conf: No such file or directory
mount: mount point kali-armhf/proc does not exist
mount: mount point kali-armhf/dev/ does not exist
mount: mount point kali-armhf/dev/pts does not exist
./androidmenu.sh: line 655: kali-armhf/debconf.set: No such file or directory
cp: cannot create regular file 'kali-armhf/usr/bin/safe-apt-get': No such file or directory
./androidmenu.sh: line 662: kali-armhf/third-stage: No such file or directory
chmod: cannot access 'kali-armhf/third-stage': No such file or directory
chroot: cannot change root directory to kali-armhf: No such file or directory
sed: can't read /root/arm-stuff/kali-nethunter/rootfs/kali-armhf/etc/kismet/kismet.conf: No such file or directory
sed: can't read /root/arm-stuff/kali-nethunter/rootfs/kali-armhf/etc/kismet/kismet.conf: No such file or directory
sed: can't read /root/arm-stuff/kali-nethunter/rootfs/kali-armhf/etc/kismet/kismet.conf: No such file or directory

sk1tch
2015-08-25, 11:52
I modified the script and changed uboot-mkimage to u-boot-tools and I haven't gotten any errors when installing the other dependencies I just completed a build last night for my Nexus 5 I'm testing it later today

zak53
2015-08-27, 15:17
which version of toolchain you use with kali_linux 2.0?