proot icon indicating copy to clipboard operation
proot copied to clipboard

Issues with unshare call

Open gboddin opened this issue 9 years ago • 1 comments

Here is how I can now reproduce (I still have to learn CARE ;)) :

This is also happening when you try to proot -0 cdebootstrap-static (without the qemu layer)

P: Validating sysvinit
qemu: Unsupported syscall: 337
E: Failed to unshare: Function not implemented
git clone https://github.com/gboddin/debprootstrap.git -b 0.3.1 debprootstrap
cd debprootstrap
wget http://static.proot.me/proot-x86_64&&chmod +x ./proot-x86_64
mkdir ubuntu-armhf.bundle
curl -sS https://cloud-images.ubuntu.com/daily/server/trusty/current/trusty-server-cloudimg-armhf-root.tar.gz|tar -xzC ubuntu-armhf.bundle
./proot-x86_64 -S ubuntu-armhf.bundle -w /root -q qemu-arm "apt-get install binutils-multiarch" 
./proot-x86_64 -v 3 -S ubuntu-armhf.bundle -b .:/debprootstrap  -w /root -q "qemu-arm -strace" "apt-get update && apt-get install binutils-multiarch && /debprootstrap/debprootstrap armhf wheezy" 1> debprootstrap-armhf.log 2> strace-armhf.log

The 2 log files are there if needed :

  • http://debproot.siwhine.net/debprootstrap/debprootstrap-armhf.log
  • http://debproot.siwhine.net/debprootstrap/strace-armhf.log

gboddin avatar Feb 28 '15 15:02 gboddin

qemu: Unsupported syscall: 26
proot error: ptrace(TRACEME): Function not implemented
proot error: execve("/usr/bin/apt-get"): 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`.
qemu: Unsupported syscall: 26
proot error: can't chmod '/tmp/proot-7296-crCE6z': No such file or directory
-------
build/usr/bin/apt-get: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=47b9e46f9f41b94029daaf0720f424e1feb9cb9e, stripped
-----
qemu-arm -version 
qemu-arm version 2.1.2 (Debian 1:2.1+dfsg-11), Copyright (c) 2003-2008 Fabrice Bellard

Another one. This one is on arch amel (not armhf) Links are back up

gboddin avatar Mar 09 '15 19:03 gboddin