meefik / linuxdeploy

Install and run GNU/Linux on Android
https://meefik.github.io/linuxdeploy
GNU General Public License v3.0
5.12k stars 681 forks source link

Galaxy Tab S2 (T-815) Marshmallow can't sudo & install Kali #587

Open g4njawizard opened 7 years ago

g4njawizard commented 7 years ago

Hi Fellas,

i have some searious issues running Kali. I successfully rooted my Tab, but i experience multiple fails and errors while trying to make Kali run. I tried to install Kali on a fresh image with the same settings as before. Settings: different credentials, Busybox installed and running, architecture armhf path: sd card size: auto & tried bigger size gnome components -> ssh, vnc, desktop environments

  1. problem while install Install (Sana): multiple package download fails " cant download ... cant download ... oh i can download this one! ... cant download" (This worked 2 weeks before) install (kali-rolling) ... downloading .. downloading ... after last downloaded package (failure ... retry 5 times) <<< install
  2. i still have an old image running sana -> android terminal: su setenforce 0 cd /data/data/ru.meefik.Linuxdeploy/files/bin Linuxdeploy shell -> root@localhost: passwd root -> permission denied "okaaay" lets try ssh -> edited sshd_config to accept authorized_keys. owned by root, chmod 600 pasted key, restarted VM / ssh. ssh into VM -> Password required.

Login as my created User -> sudo -i -> permission denied. user# su -> permission denied

ookaaay ... try installing kali linux full: apt-get update && apt-get install kali-linux-full update ... cant install packages "depends on.. depends on ... depends on ..." depends on some sambalib packages" apt-get install -f "dpkg: error processing archive ... armhg.deb (--unpack):

any idea what could cause this massive issues?

meefik commented 7 years ago

Please try Linux Deploy version 2.0-beta2: https://github.com/meefik/linuxdeploy/releases/tag/2.0.0

g4njawizard commented 7 years ago

Thx! I will try it tonight!

g4njawizard commented 7 years ago

What does that mean?

21:38:46] >>> deploy [21:38:46] ## bootstrap/rootfs : do_install && do_configure [21:38:46] :: Installing bootstrap/rootfs ... [21:38:46] Checking installation path ... done [21:38:46] Making new disk image (7000 MB) ... dd: /sdcard/kalilinux_arm.img: Invalid argument [21:41:13] 7000+0 records in [21:41:13] 7000+0 records out [21:41:13] 7340032000 bytes (6.8GB) copied, 146.426148 seconds, 47.8MB/s [21:41:13] done [21:41:13] Making file system (ext4) ... mke2fs: invalid option -- t [21:41:13] BusyBox v1.24.2-meefik (2016-08-08 15:47:05 MSK) multi-call binary. [21:41:13] [21:41:13] Usage: mke2fs [-Fn] [-b BLK_SIZE] [-i INODE_RATIO] [-I INODE_SIZE] [-m RESERVED_PERCENT] [-L LABEL] BLOCKDEV [KBYTES] [21:41:13] [21:41:13] -b BLK_SIZE Block size, bytes [21:41:13] -F Force [21:41:13] -i RATIO Max number of files is filesystem_size / RATIO [21:41:13] -I BYTES Inode size (min 128) [21:41:13] -L LBL Volume label [21:41:13] -m PERCENT Percent of blocks to reserve for admin [21:41:13] -n Dry run [21:41:13] fail [21:41:13] <<< deploy

g4njawizard commented 7 years ago

Maybe this helps you

[12:49:47] Making new disk image (4095 MB) ... + expr 4095 - 1 [12:49:47] + dd if=/dev/zero of=/storage/536F-9B39/Kali/kalilinux_x86.img bs=1048576 seek=4094 count=1 [12:49:47] dd: /storage/536F-9B39/Kali/kalilinux_x86.img: Invalid argument [12:49:47] + dd if=/dev/zero of=/storage/536F-9B39/Kali/kalilinux_x86.img bs=1048576 count=4095 [12:52:50] 4095+0 records in [12:52:50] 4095+0 records out [12:52:50] 4293918720 bytes (4.0GB) copied, 183.467136 seconds, 22.3MB/s [12:52:50] + is_ok fail done [12:52:50] + [ 0 -eq 0 ] [12:52:50] + [ -n done ] [12:52:50] + msg done [12:52:50] + echo done [12:52:50] done [12:52:50] + return 0 [12:52:50] + [ file = file -o file = partition ] [12:52:50] + local fs fs_support [12:52:50] + grep -q ext4 /proc/filesystems [12:52:50] + [12:52:50] + fs_support=ext4 [12:52:50] + break [12:52:50] Making file system (ext4) ... + [ -z ext4 ] [12:52:50] + [ -z auto -o auto = auto ] [12:52:50] + FS_TYPE=ext4 [12:52:50] + msg -n Making file system (ext4) ... [12:52:50] + echo -n Making file system (ext4) ... [12:52:50] + losetup -a [12:52:50] + grep -c /storage/536F-9B39/Kali/kalilinux_x86.img [12:52:50] + local loop_exist=0 [12:52:50] + grep -c /storage/536F-9B39/Kali/kalilinux_x86.img /proc/mounts [12:52:50] + local img_mounted=0 [12:52:50] + [ 0 -ne 0 -o 0 -ne 0 ] [12:52:50] + mke2fs -qF -t ext4 -O ^has_journal /storage/536F-9B39/Kali/kalilinux_x86.img [12:52:50] mke2fs: invalid option -- t [12:52:50] BusyBox v1.24.2-meefik (2016-08-08 15:47:05 MSK) multi-call binary. [12:52:50] [12:52:50] Usage: mke2fs [-Fn] [-b BLK_SIZE] [-i INODE_RATIO] [-I INODE_SIZE] [-m RESERVED_PERCENT] [-L LABEL] BLOCKDEV [KBYTES] [12:52:50] [12:52:50] -b BLK_SIZE Block size, bytes [12:52:50] -F Force [12:52:50] -i RATIO Max number of files is filesystem_size / RATIO [12:52:50] -I BYTES Inode size (min 128) [12:52:50] -L LBL Volume label [12:52:50] -m PERCENT Percent of blocks to reserve for admin [12:52:50] -n Dry run [12:52:50] + is_ok fail done [12:52:50] + [ 1 -eq 0 ] [12:52:50] + [ -n fail ] [12:52:50] fail [12:52:50] + msg fail [12:52:50] + echo fail [12:52:50] + return 1 [12:52:50] + return 1 [12:52:50] + return 1 [12:52:50] + exit 1 [12:52:50] + is_ok [12:52:50] + [ 1 -eq 0 ] [12:52:50] + [ -n ] [12:52:50] + return 1 [12:52:50] + return 1 [12:52:50] + printf $'<<< deploy\n' [12:52:50] <<< deploy [12:52:50] + exit 0