proot icon indicating copy to clipboard operation
proot copied to clipboard

[Bug]: proot error on device with EROFS (Enhanced Read-Only File System)

Open agisnrynt opened this issue 3 years ago • 1 comments

Problem description

I'm having trouble installing the Ubuntu distro using the proot-distro command. I'm using a pixel 3a device with a pixel experience ROM. Previously I didn't have any problems when trying to install it, but after I updated using the latest version of Pixel Experience ROM, I got this problem

[°] Checking integrity, please wait... [°] Extracting rootfs, please wait... proot error: execve("/data/data/com.termux/files/usr/bin/tar"): Function not implemented proot info: possible causes:

  • the program is a script but its interpreter (eg. /bin/sh) was not found;
  • the program is an ELF but its interpreter (eg. ld-linux.so) was not found;
  • the program is a foreign binary but qemu was not specified;
  • qemu does not work correctly (if specified);
  • the loader was not found or doesn't work. fatal error: see proot --help. [*] Writing '/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu/etc/profile'... /data/data/com.termux/files/usr/bin/proot-distro: line 375: /data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu/etc/profile: No such file or directory

System information

  • Termux application version: 0.118.0+be66cff
  • Android OS version: Android 13
  • Device model: Pixel 3a with Pixel Experience ROM

agisnrynt avatar Dec 19 '22 12:12 agisnrynt

Looks like error happened early in proot operation, most likely kernel in your ROM is buggy

You can try running

PROOT_NO_SECCOMP=1 PROOT_ASSUME_NEW_SECCOMP=1 proot-distro install ubuntu

and see if installation works that way, but other than that it looks like proot cannot work on such device (another thing that can be checked is if strace works on that device)

michalbednarski avatar Dec 23 '22 16:12 michalbednarski