termux / proot

An chroot-like implementation using ptrace.
https://wiki.termux.com/wiki/PRoot
Other
762 stars 160 forks source link

Alpine linux: apk add ca-certificates - throw: script exited with error 127 #57

Open wharsojo opened 5 years ago

wharsojo commented 5 years ago

➜ ~ setup-alpine [] Download: alpine-minirootfs-3.9.2-aarch64.tar.gz ... [] Extract file-system [] Configure linux [] Start Linux proot --link2symlink -0 -b /dev -b /sys -b /proc -b /storage -b /storage/3637-6263/Android/data/com.termux:/root/sdcard -b /storage/emulated/0:/root/internal -b /data/data/com.termux/files/home/.mytermux/gitea-app:/root/gitea-app -b /data/data/com.termux/files/home -r /data/data/com.termux/files/home/.mytermux/linux/alpine/linux-fs -w /root /usr/bin/env -i HOME=/root TERM=xterm-256color LANG=C.UTF-8 PATH=/usr/local/sbin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin /bin/sh --login [*] Alpine Linux is starting v3.9.2 localhost:~# uname -a Linux localhost 4.9.59-15193909 #1 SMP PREEMPT Tue Jan 22 10:19:41 KST 2019 aarch64 Linux localhost:~# apk add ca-certificates fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/aarch64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/aarch64/APKINDEX.tar.gz (1/1) Installing ca-certificates (20190108-r0) Executing busybox-1.29.3-r10.trigger ERROR: busybox-1.29.3-r10.trigger: script exited with error 127 Executing ca-certificates-20190108-r0.trigger ERROR: ca-certificates-20190108-r0.trigger: script exited with error 127

wharsojo commented 5 years ago

when run proot with: __export PROOT_VERBOSE=2__

root info: vpid 4: translate("/" + "usr/share/ca-certificates/mozilla") proot info: vpid 4: -> "/data/data/com.termux/files/home/.mytermux/linux/alpine/linux-fs/usr/share/ca-certificates/mozilla" proot info: vpid 4: translate("/" + "usr/share/ca-certificates") proot info: vpid 4: -> "/data/data/com.termux/files/home/.mytermux/linux/alpine/linux-fs/usr/share/ca-certificates" proot info: vpid 4: translate("/" + "etc/ca-certificates/update.d") proot info: vpid 4: -> "/data/data/com.termux/files/home/.mytermux/linux/alpine/linux-fs/etc/ca-certificates/update.d" proot info: vpid 4: translate("/" + "etc/ca-certificates") proot info: vpid 4: -> "/data/data/com.termux/files/home/.mytermux/linux/alpine/linux-fs/etc/ca-certificates" proot info: vpid 4: translate("/" + "usr/local/share/ca-certificates") proot info: vpid 4: -> "/data/data/com.termux/files/home/.mytermux/linux/alpine/linux-fs/usr/local/share/ca-certificates" Executing busybox-1.29.3-r10.trigger proot info: vpid 4: translate("/" + "var/cache/misc/busybox-1.29.3-r10.trigger") proot info: vpid 4: -> "/data/data/com.termux/files/home/.mytermux/linux/alpine/linux-fs/var/cache/misc/busybox-1.29.3-r10.trigger" proot info: vpid 5: pid 15026 proot info: vpid 5: translate("/" + ".") proot info: vpid 5: -> "/data/data/com.termux/files/home/.mytermux/linux/alpine/linux-fs/." proot info: vpid 5: exited with status 127 ERROR: busybox-1.29.3-r10.trigger: script exited with error 127

wharsojo commented 5 years ago

proot version (5.1.107-20).