[DEBUG] Preparing to chroot... [DEBUG] Root permission detected. [DEBUG] Root permission detected. [DEBUG] Auto mode enabled. Using main mode. [DEBUG] Root permission detected. [DEBUG] Running chroot_setup chroot_rootfs source main... [DEBUG] Root permission detected. [DEBUG] Mounting proc... [DEBUG] Root permission detected. [DEBUG] Root detected. Using real mount. [DEBUG] Root permission detected. [DEBUG] Mounting sys... [DEBUG] Root permission detected. [DEBUG] Root detected. Using real mount. [DEBUG] Root permission detected. [DEBUG] Mounting udev... [DEBUG] Root permission detected. [DEBUG] Root detected. Using real mount. [DEBUG] Root permission detected. [DEBUG] Mounting devpts... [DEBUG] Root permission detected. [DEBUG] Root detected. Using real mount. [DEBUG] Root permission detected. [DEBUG] Mounting shm... [DEBUG] Root permission detected. [DEBUG] Root detected. Using real mount. [DEBUG] Root permission detected. [DEBUG] Mounting /etc/hosts... [DEBUG] Root permission detected. [DEBUG] Root detected. Using real mount. [DEBUG] Root permission detected. [DEBUG] Mounting /etc/resolv.conf... [DEBUG] Root permission detected. [DEBUG] Root detected. Using real mount. [DEBUG] Root permission detected. [DEBUG] Mounting /run... [DEBUG] Root permission detected. [DEBUG] Root detected. Using real mount. [DEBUG] Root permission detected. [DEBUG] Mounting tmp... [DEBUG] Root permission detected. [DEBUG] Root detected. Using real mount. [DEBUG] Completed chroot_setup chroot_rootfs source main. [DEBUG] Running chroot...[bash /root/pi_s1.sh] ALEXPRO100 BASH LIBRARY 0.4.5 (Debug mode) [NOTE] Setting up hostname and configuring user... [NOTE] Setting up locales... Generating locales (this might take a while)... en_US.UTF-8... done Generation complete. [NOTE] Apt setup... [NOTE] gpg --import /root/gpgkey.gpg... [NOTE] apt update... Ign http://archive.debian.org jessie InRelease Hit http://archive.debian.org jessie Release.gpg Hit http://archive.debian.org jessie Release Ign http://archive.debian.org jessie Release Ign http://archive.debian.org jessie/main i386 Packages/DiffIndex Get:1 http://archive.debian.org jessie/contrib Translation-en [38.3 kB] Get:2 http://archive.debian.org jessie/main Translation-en [4581 kB] Get:3 http://archive.debian.org jessie/non-free Translation-en [72.0 kB] Get:4 http://archive.debian.org jessie/non-free i386 Packages [79.5 kB] Get:5 http://archive.debian.org jessie/contrib i386 Packages [49.1 kB] Hit http://archive.debian.org jessie/main i386 Packages Fetched 4820 kB in 6s (759 kB/s) Reading package lists... Building dependency tree... All packages are up to date. Reading package lists... Building dependency tree... 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. [NOTE] Apt is ready. [NOTE] Installing addational packages... Installing linux kernel and its additions... [NOTE] Installing linux kernel and its additions... [NOTE] apt -y install usbutils pciutils dosfstools software-properties-common screen htop rsync bash-completion linux-image-686 network-manager ssh Reading package lists... Building dependency tree... [DEBUG] Running chroot_teardown chroot_rootfs source main... [DEBUG] Unmounting /mnt/mnt/tmp... [DEBUG] Unmounting /mnt/mnt/run... [DEBUG] Unmounting /mnt/mnt/etc/resolv.conf... [DEBUG] Unmounting /mnt/mnt/etc/hosts... [DEBUG] Unmounting /mnt/mnt/dev/shm... [DEBUG] Unmounting /mnt/mnt/dev/pts... [DEBUG] Unmounting /mnt/mnt/dev... [DEBUG] Unmounting /mnt/mnt/sys... [DEBUG] Unmounting /mnt/mnt/proc... [DEBUG] Completed chroot_teardown chroot_rootfs source main. [ERROR] Something went wrong! Code exit is 139.