Closed elvisisvan closed 9 months ago
Unreproducible.
Provide this information:
ubuntu.sh
tar --version
Likely the issue is some custom version of tar
. PRoot Distro supports only GNU tar as it relies on its behavior and features. No bsdtar, busybox tar, toybox tar supported.
I have no issues with everything up-to-date:
Notice there no tar
warning.
For custom rootfs the TARBALL_STRIP_OPT
always should be specified in plugin and should correspond to how many subdirectory levels should be skipped.
Unreproducible.
Provide this information:
- Content of
ubuntu.sh
- Output of
tar --version
cat ubuntu.sh
:
# This is a default distribution plug-in.
# Do not modify this file as your changes will be overwritten on next update.
# If you want customize installation, please make a copy.
DISTRO_NAME="Ubuntu"
DISTRO_COMMENT="Standard release (mantic). Not available for x86 32-bit (i686) CPUs."
TARBALL_URL['aarch64']="https://github.com/termux/proot-distro/releases/download/v4.5.0/ubuntu-aarch64-pd-v4.5.0.tar.xz"
TARBALL_SHA256['aarch64']="78f6e74531c6e7c61d6b90ea9b7e25738c14f2f4f2bb07cb1614414ef06017d5"
TARBALL_URL['arm']="https://github.com/termux/proot-distro/releases/download/v4.5.0/ubuntu-arm-pd-v4.5.0.tar.xz"
TARBALL_SHA256['arm']="3af5171713631aa2f672602f0099d22e242a9fe19df910924dbf5e93497496c8"
TARBALL_URL['x86_64']="https://github.com/termux/proot-distro/releases/download/v4.5.0/ubuntu-x86_64-pd-v4.5.0.tar.xz"
TARBALL_SHA256['x86_64']="5a5212f5389fb805030c4db2dcde99590136291bb9f44aad62b4665b66f66669"
distro_setup() {
# Configure en_US.UTF-8 locale.
sed -i -E 's/#[[:space:]]?(en_US.UTF-8[[:space:]]+UTF-8)/\1/g' ./etc/locale.gen
run_proot_cmd DEBIAN_FRONTEND=noninteractive dpkg-reconfigure locales
}
tar --version
:
tar (GNU tar) 1.35
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
Likely the issue is some custom version of
tar
. PRoot Distro supports only GNU tar as it relies on its behavior and features. No bsdtar, busybox tar, toybox tar supported.I have no issues with everything up-to-date:
Notice there no
tar
warning.For custom rootfs the
TARBALL_STRIP_OPT
always should be specified in plugin and should correspond to how many subdirectory levels should be skipped.
what's your version of the tar
package?
Submit full trace log:
PROOT_DISTRO_FORCE_NO_COLORS=1 bash -x proot-distro i ubuntu |& tee log.txt
what's your version of the tar package?
tar (GNU tar) 1.35
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
And of course I have Termux env up-to-date and the latest original version of proot-distro
.
Submit full trace log:
PROOT_DISTRO_FORCE_NO_COLORS=1 bash -x proot-distro i ubuntu |& tee log.txt
what's your version of the tar package?
tar (GNU tar) 1.35 Copyright (C) 2023 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by John Gilmore and Jay Fenlason.
And of course I have Termux env up-to-date and the latest original version of
proot-distro
.
PROOT_DISTRO_FORCE_NO_COLORS=1 bash -x proot-distro i ubuntu |& tee proot-log.txt
:
+ PROGRAM_VERSION=4.6.0
+ set -e -u
+++ realpath proot-distro
++ basename /data/data/com.termux/files/home/proot-distro
+ PROGRAM_NAME=proot-distro
+ DISTRO_PLUGINS_DIR=/data/data/com.termux/files/usr/etc/proot-distro
+ RUNTIME_DIR=/data/data/com.termux/files/usr/var/lib/proot-distro
+ DOWNLOAD_CACHE_DIR=/data/data/com.termux/files/usr/var/lib/proot-distro/dlcache
+ INSTALLED_ROOTFS_DIR=/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs
+ DEFAULT_PRIMARY_NAMESERVER=8.8.8.8
+ DEFAULT_SECONDARY_NAMESERVER=8.8.4.4
+ DEFAULT_PATH_ENV=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/data/data/com.termux/files/usr/bin:/system/bin:/system/xbin
+ DEFAULT_FAKE_KERNEL_VERSION=6.2.1-PRoot-Distro
+ : QEMU
++ command -v tput
+ '[' -n /data/data/com.termux/files/usr/bin/tput ']'
++ tput colors
+ '[' 256 -ge 8 ']'
+ '[' -z 1 ']'
+ RED=
+ BRED=
+ GREEN=
+ YELLOW=
+ BYELLOW=
+ IYELLOW=
+ BLUE=
+ MAGENTA=
+ CYAN=
+ BCYAN=
+ ICYAN=
+ RST=
+ unset LD_PRELOAD
+ umask 0022
+ for i in awk basename bzip2 cat chmod cp curl cut du find grep gzip head id mkdir proot rm sed tar xargs xz
++ command -v awk
+ '[' -z /bin/awk ']'
+ for i in awk basename bzip2 cat chmod cp curl cut du find grep gzip head id mkdir proot rm sed tar xargs xz
++ command -v basename
+ '[' -z /bin/basename ']'
+ for i in awk basename bzip2 cat chmod cp curl cut du find grep gzip head id mkdir proot rm sed tar xargs xz
++ command -v bzip2
+ '[' -z /bin/bzip2 ']'
+ for i in awk basename bzip2 cat chmod cp curl cut du find grep gzip head id mkdir proot rm sed tar xargs xz
++ command -v cat
+ '[' -z /bin/cat ']'
+ for i in awk basename bzip2 cat chmod cp curl cut du find grep gzip head id mkdir proot rm sed tar xargs xz
++ command -v chmod
+ '[' -z /bin/chmod ']'
+ for i in awk basename bzip2 cat chmod cp curl cut du find grep gzip head id mkdir proot rm sed tar xargs xz
++ command -v cp
+ '[' -z /bin/cp ']'
+ for i in awk basename bzip2 cat chmod cp curl cut du find grep gzip head id mkdir proot rm sed tar xargs xz
++ command -v curl
+ '[' -z /data/data/com.termux/files/usr/bin/curl ']'
+ for i in awk basename bzip2 cat chmod cp curl cut du find grep gzip head id mkdir proot rm sed tar xargs xz
++ command -v cut
+ '[' -z /bin/cut ']'
+ for i in awk basename bzip2 cat chmod cp curl cut du find grep gzip head id mkdir proot rm sed tar xargs xz
++ command -v du
+ '[' -z /bin/du ']'
+ for i in awk basename bzip2 cat chmod cp curl cut du find grep gzip head id mkdir proot rm sed tar xargs xz
++ command -v find
+ '[' -z /bin/find ']'
+ for i in awk basename bzip2 cat chmod cp curl cut du find grep gzip head id mkdir proot rm sed tar xargs xz
++ command -v grep
+ '[' -z /bin/grep ']'
+ for i in awk basename bzip2 cat chmod cp curl cut du find grep gzip head id mkdir proot rm sed tar xargs xz
++ command -v gzip
+ '[' -z /bin/gzip ']'
+ for i in awk basename bzip2 cat chmod cp curl cut du find grep gzip head id mkdir proot rm sed tar xargs xz
++ command -v head
+ '[' -z /bin/head ']'
+ for i in awk basename bzip2 cat chmod cp curl cut du find grep gzip head id mkdir proot rm sed tar xargs xz
++ command -v id
+ '[' -z /bin/id ']'
+ for i in awk basename bzip2 cat chmod cp curl cut du find grep gzip head id mkdir proot rm sed tar xargs xz
++ command -v mkdir
+ '[' -z /bin/mkdir ']'
+ for i in awk basename bzip2 cat chmod cp curl cut du find grep gzip head id mkdir proot rm sed tar xargs xz
++ command -v proot
+ '[' -z /data/data/com.termux/files/usr/bin/proot ']'
+ for i in awk basename bzip2 cat chmod cp curl cut du find grep gzip head id mkdir proot rm sed tar xargs xz
++ command -v rm
+ '[' -z /bin/rm ']'
+ for i in awk basename bzip2 cat chmod cp curl cut du find grep gzip head id mkdir proot rm sed tar xargs xz
++ command -v sed
+ '[' -z /bin/sed ']'
+ for i in awk basename bzip2 cat chmod cp curl cut du find grep gzip head id mkdir proot rm sed tar xargs xz
++ command -v tar
+ '[' -z /bin/tar ']'
+ for i in awk basename bzip2 cat chmod cp curl cut du find grep gzip head id mkdir proot rm sed tar xargs xz
++ command -v xargs
+ '[' -z /bin/xargs ']'
+ for i in awk basename bzip2 cat chmod cp curl cut du find grep gzip head id mkdir proot rm sed tar xargs xz
++ command -v xz
+ '[' -z /data/data/com.termux/files/usr/bin/xz ']'
+ unset i
++ id -u
+ '[' 10240 = 0 ']'
++ grep TracerPid /proc/25101/status
++ cut -d ' ' -f 2
+ TRACER_PID=0
+ '[' 0 '!=' 0 ']'
+ unset TRACER_PID
+ trap 'echo -e "\\r${BLUE}[${RED}!${BLUE}] ${CYAN}Exiting immediately as requested.${RST}"; exit 1;' HUP INT TERM
+ case "$(uname -m)" in
++ uname -m
++ uname -m
+ DEVICE_CPU_ARCH=aarch64
+ DISTRO_ARCH=aarch64
+ '[' -x /data/data/com.termux/files/usr/bin/dpkg ']'
++ /data/data/com.termux/files/usr/bin/dpkg --print-architecture
+ '[' aarch64 '!=' aarch64 ']'
+ declare -A TARBALL_URL TARBALL_SHA256
+ declare -A SUPPORTED_DISTRIBUTIONS
+ declare -A SUPPORTED_DISTRIBUTIONS_COMMENTS
+ read -r filename
++ find /data/data/com.termux/files/usr/etc/proot-distro -maxdepth 1 -type f -iname '*.sh'
++ . /data/data/com.termux/files/usr/etc/proot-distro/alpine.sh
+++ DISTRO_NAME='Alpine Linux'
+++ DISTRO_COMMENT='Rolling release branch (edge).'
+++ TARBALL_URL['aarch64']=https://github.com/termux/proot-distro/releases/download/v3.18.1/alpine-aarch64-pd-v3.18.1-r2.tar.xz
+++ TARBALL_SHA256['aarch64']=4aac49ac656db392526ee6468546af3f367942183cc3bf4bbc1d61698e0c1bee
+++ TARBALL_URL['arm']=https://github.com/termux/proot-distro/releases/download/v3.18.1/alpine-arm-pd-v3.18.1-r2.tar.xz
+++ TARBALL_SHA256['arm']=a0be4ab4c53d820612a212bd04b6f844e31c384a453980f84c57252b92ebc7a4
+++ TARBALL_URL['i686']=https://github.com/termux/proot-distro/releases/download/v3.18.1/alpine-i686-pd-v3.18.1-r2.tar.xz
+++ TARBALL_SHA256['i686']=17c9cd83206c85e50b0832a06eec2d41d738ddba2583356c93f1fae15fbd7523
+++ TARBALL_URL['x86_64']=https://github.com/termux/proot-distro/releases/download/v3.18.1/alpine-x86_64-pd-v3.18.1-r2.tar.xz
+++ TARBALL_SHA256['x86_64']=48e41f8126c2c1524482afe89f845523d66dba6e9e881e0515bad12f05057283
++ echo 'Alpine Linux'
+ distro_name='Alpine Linux'
++ . /data/data/com.termux/files/usr/etc/proot-distro/alpine.sh
+++ DISTRO_NAME='Alpine Linux'
+++ DISTRO_COMMENT='Rolling release branch (edge).'
+++ TARBALL_URL['aarch64']=https://github.com/termux/proot-distro/releases/download/v3.18.1/alpine-aarch64-pd-v3.18.1-r2.tar.xz
+++ TARBALL_SHA256['aarch64']=4aac49ac656db392526ee6468546af3f367942183cc3bf4bbc1d61698e0c1bee
+++ TARBALL_URL['arm']=https://github.com/termux/proot-distro/releases/download/v3.18.1/alpine-arm-pd-v3.18.1-r2.tar.xz
+++ TARBALL_SHA256['arm']=a0be4ab4c53d820612a212bd04b6f844e31c384a453980f84c57252b92ebc7a4
+++ TARBALL_URL['i686']=https://github.com/termux/proot-distro/releases/download/v3.18.1/alpine-i686-pd-v3.18.1-r2.tar.xz
+++ TARBALL_SHA256['i686']=17c9cd83206c85e50b0832a06eec2d41d738ddba2583356c93f1fae15fbd7523
+++ TARBALL_URL['x86_64']=https://github.com/termux/proot-distro/releases/download/v3.18.1/alpine-x86_64-pd-v3.18.1-r2.tar.xz
+++ TARBALL_SHA256['x86_64']=48e41f8126c2c1524482afe89f845523d66dba6e9e881e0515bad12f05057283
++ echo 'Rolling release branch (edge).'
+ distro_comment='Rolling release branch (edge).'
+ distro_alias=/data/data/com.termux/files/usr/etc/proot-distro/alpine.sh
+ distro_alias=/data/data/com.termux/files/usr/etc/proot-distro/alpine
++ basename /data/data/com.termux/files/usr/etc/proot-distro/alpine
+ distro_alias=alpine
+ '[' -z 'Alpine Linux' ']'
+ SUPPORTED_DISTRIBUTIONS["$distro_alias"]='Alpine Linux'
+ '[' -n 'Rolling release branch (edge).' ']'
+ SUPPORTED_DISTRIBUTIONS_COMMENTS["$distro_alias"]='Rolling release branch (edge).'
+ read -r filename
++ . /data/data/com.termux/files/usr/etc/proot-distro/fedora38.sh
+++ DISTRO_NAME='Fedora 38'
+++ DISTRO_COMMENT='Version 38 - custom version defined by elvis'
+++ TARBALL_URL['aarch64']=https://mirror.23m.com/fedora/linux/releases/38/Container/aarch64/images/Fedora-Container-Base-38-1.6.aarch64.tar.xz
+++ TARBALL_SHA256['aarch64']=55600f9db2dad6682466ef7f6df507f44667ee5a1a74789d22928556f32f41f6
+++ TARBALL_URL['x86_64']=https://github.com/termux/proot-distro/releases/download/v4.0.2/fedora-x86_64-pd-v4.0.2.tar.xz
+++ TARBALL_SHA256['x86_64']=b23bd177486b27b9252f93c8a421e9d0092219fe3efeb3536f170e97d6dc604c
++ echo 'Fedora 38'
+ distro_name='Fedora 38'
++ . /data/data/com.termux/files/usr/etc/proot-distro/fedora38.sh
+++ DISTRO_NAME='Fedora 38'
+++ DISTRO_COMMENT='Version 38 - custom version defined by elvis'
+++ TARBALL_URL['aarch64']=https://mirror.23m.com/fedora/linux/releases/38/Container/aarch64/images/Fedora-Container-Base-38-1.6.aarch64.tar.xz
+++ TARBALL_SHA256['aarch64']=55600f9db2dad6682466ef7f6df507f44667ee5a1a74789d22928556f32f41f6
+++ TARBALL_URL['x86_64']=https://github.com/termux/proot-distro/releases/download/v4.0.2/fedora-x86_64-pd-v4.0.2.tar.xz
+++ TARBALL_SHA256['x86_64']=b23bd177486b27b9252f93c8a421e9d0092219fe3efeb3536f170e97d6dc604c
++ echo 'Version 38 - custom version defined by elvis'
+ distro_comment='Version 38 - custom version defined by elvis'
+ distro_alias=/data/data/com.termux/files/usr/etc/proot-distro/fedora38.sh
+ distro_alias=/data/data/com.termux/files/usr/etc/proot-distro/fedora38
++ basename /data/data/com.termux/files/usr/etc/proot-distro/fedora38
+ distro_alias=fedora38
+ '[' -z 'Fedora 38' ']'
+ SUPPORTED_DISTRIBUTIONS["$distro_alias"]='Fedora 38'
+ '[' -n 'Version 38 - custom version defined by elvis' ']'
+ SUPPORTED_DISTRIBUTIONS_COMMENTS["$distro_alias"]='Version 38 - custom version defined by elvis'
+ read -r filename
++ . /data/data/com.termux/files/usr/etc/proot-distro/manjaro.sh
+++ DISTRO_NAME=Manjaro
+++ DISTRO_COMMENT='Currently available only for AArch64.'
+++ TARBALL_URL['aarch64']=https://github.com/termux/proot-distro/releases/download/v3.18.1/manjaro-aarch64-pd-v3.18.1.tar.xz
+++ TARBALL_SHA256['aarch64']=6d6595ab9650a1836efe9dd23e0b7b321cdaf01b15ed95413036f53f6a25f495
++ echo Manjaro
+ distro_name=Manjaro
++ . /data/data/com.termux/files/usr/etc/proot-distro/manjaro.sh
+++ DISTRO_NAME=Manjaro
+++ DISTRO_COMMENT='Currently available only for AArch64.'
+++ TARBALL_URL['aarch64']=https://github.com/termux/proot-distro/releases/download/v3.18.1/manjaro-aarch64-pd-v3.18.1.tar.xz
+++ TARBALL_SHA256['aarch64']=6d6595ab9650a1836efe9dd23e0b7b321cdaf01b15ed95413036f53f6a25f495
++ echo 'Currently available only for AArch64.'
+ distro_comment='Currently available only for AArch64.'
+ distro_alias=/data/data/com.termux/files/usr/etc/proot-distro/manjaro.sh
+ distro_alias=/data/data/com.termux/files/usr/etc/proot-distro/manjaro
++ basename /data/data/com.termux/files/usr/etc/proot-distro/manjaro
+ distro_alias=manjaro
+ '[' -z Manjaro ']'
+ SUPPORTED_DISTRIBUTIONS["$distro_alias"]=Manjaro
+ '[' -n 'Currently available only for AArch64.' ']'
+ SUPPORTED_DISTRIBUTIONS_COMMENTS["$distro_alias"]='Currently available only for AArch64.'
+ read -r filename
++ . /data/data/com.termux/files/usr/etc/proot-distro/opensuse.sh
+++ DISTRO_NAME=OpenSUSE
+++ DISTRO_COMMENT='Rolling release (Tumbleweed).'
+++ TARBALL_URL['aarch64']=https://github.com/termux/proot-distro/releases/download/v3.18.1/opensuse-aarch64-pd-v3.18.1.tar.xz
+++ TARBALL_SHA256['aarch64']=586bcfb765abdfcbc22a3124f666e2edc2c70ded060092d2adf4a7c71fbad5ea
+++ TARBALL_URL['arm']=https://github.com/termux/proot-distro/releases/download/v3.18.1/opensuse-arm-pd-v3.18.1.tar.xz
+++ TARBALL_SHA256['arm']=cfa8fdca2b734fdf3b9dd5ef3b3213609f8e692c6f82270acb858af1ba5e6b5a
+++ TARBALL_URL['i686']=https://github.com/termux/proot-distro/releases/download/v3.18.1/opensuse-i686-pd-v3.18.1.tar.xz
+++ TARBALL_SHA256['i686']=971a6346af4e4f6e8e91344662f96af52b50dc7a62ab62e8d6d3c21ea11f7c75
+++ TARBALL_URL['x86_64']=https://github.com/termux/proot-distro/releases/download/v3.18.1/opensuse-x86_64-pd-v3.18.1.tar.xz
+++ TARBALL_SHA256['x86_64']=5454b5defcbacb6327c6acc6193022b1281d6995661f7c4ebdc2bae8b895f77e
++ echo OpenSUSE
+ distro_name=OpenSUSE
++ . /data/data/com.termux/files/usr/etc/proot-distro/opensuse.sh
+++ DISTRO_NAME=OpenSUSE
+++ DISTRO_COMMENT='Rolling release (Tumbleweed).'
+++ TARBALL_URL['aarch64']=https://github.com/termux/proot-distro/releases/download/v3.18.1/opensuse-aarch64-pd-v3.18.1.tar.xz
+++ TARBALL_SHA256['aarch64']=586bcfb765abdfcbc22a3124f666e2edc2c70ded060092d2adf4a7c71fbad5ea
+++ TARBALL_URL['arm']=https://github.com/termux/proot-distro/releases/download/v3.18.1/opensuse-arm-pd-v3.18.1.tar.xz
+++ TARBALL_SHA256['arm']=cfa8fdca2b734fdf3b9dd5ef3b3213609f8e692c6f82270acb858af1ba5e6b5a
+++ TARBALL_URL['i686']=https://github.com/termux/proot-distro/releases/download/v3.18.1/opensuse-i686-pd-v3.18.1.tar.xz
+++ TARBALL_SHA256['i686']=971a6346af4e4f6e8e91344662f96af52b50dc7a62ab62e8d6d3c21ea11f7c75
+++ TARBALL_URL['x86_64']=https://github.com/termux/proot-distro/releases/download/v3.18.1/opensuse-x86_64-pd-v3.18.1.tar.xz
+++ TARBALL_SHA256['x86_64']=5454b5defcbacb6327c6acc6193022b1281d6995661f7c4ebdc2bae8b895f77e
++ echo 'Rolling release (Tumbleweed).'
+ distro_comment='Rolling release (Tumbleweed).'
+ distro_alias=/data/data/com.termux/files/usr/etc/proot-distro/opensuse.sh
+ distro_alias=/data/data/com.termux/files/usr/etc/proot-distro/opensuse
++ basename /data/data/com.termux/files/usr/etc/proot-distro/opensuse
+ distro_alias=opensuse
+ '[' -z OpenSUSE ']'
+ SUPPORTED_DISTRIBUTIONS["$distro_alias"]=OpenSUSE
+ '[' -n 'Rolling release (Tumbleweed).' ']'
+ SUPPORTED_DISTRIBUTIONS_COMMENTS["$distro_alias"]='Rolling release (Tumbleweed).'
+ read -r filename
++ . /data/data/com.termux/files/usr/etc/proot-distro/ubuntu.sh
+++ DISTRO_NAME=Ubuntu
+++ DISTRO_COMMENT='Standard release (mantic). Not available for x86 32-bit (i686) CPUs.'
+++ TARBALL_URL['aarch64']=https://github.com/termux/proot-distro/releases/download/v4.5.0/ubuntu-aarch64-pd-v4.5.0.tar.xz
+++ TARBALL_SHA256['aarch64']=78f6e74531c6e7c61d6b90ea9b7e25738c14f2f4f2bb07cb1614414ef06017d5
+++ TARBALL_URL['arm']=https://github.com/termux/proot-distro/releases/download/v4.5.0/ubuntu-arm-pd-v4.5.0.tar.xz
+++ TARBALL_SHA256['arm']=3af5171713631aa2f672602f0099d22e242a9fe19df910924dbf5e93497496c8
+++ TARBALL_URL['x86_64']=https://github.com/termux/proot-distro/releases/download/v4.5.0/ubuntu-x86_64-pd-v4.5.0.tar.xz
+++ TARBALL_SHA256['x86_64']=5a5212f5389fb805030c4db2dcde99590136291bb9f44aad62b4665b66f66669
++ echo Ubuntu
+ distro_name=Ubuntu
++ . /data/data/com.termux/files/usr/etc/proot-distro/ubuntu.sh
+++ DISTRO_NAME=Ubuntu
+++ DISTRO_COMMENT='Standard release (mantic). Not available for x86 32-bit (i686) CPUs.'
+++ TARBALL_URL['aarch64']=https://github.com/termux/proot-distro/releases/download/v4.5.0/ubuntu-aarch64-pd-v4.5.0.tar.xz
+++ TARBALL_SHA256['aarch64']=78f6e74531c6e7c61d6b90ea9b7e25738c14f2f4f2bb07cb1614414ef06017d5
+++ TARBALL_URL['arm']=https://github.com/termux/proot-distro/releases/download/v4.5.0/ubuntu-arm-pd-v4.5.0.tar.xz
+++ TARBALL_SHA256['arm']=3af5171713631aa2f672602f0099d22e242a9fe19df910924dbf5e93497496c8
+++ TARBALL_URL['x86_64']=https://github.com/termux/proot-distro/releases/download/v4.5.0/ubuntu-x86_64-pd-v4.5.0.tar.xz
+++ TARBALL_SHA256['x86_64']=5a5212f5389fb805030c4db2dcde99590136291bb9f44aad62b4665b66f66669
++ echo 'Standard release (mantic). Not available for x86 32-bit (i686) CPUs.'
+ distro_comment='Standard release (mantic). Not available for x86 32-bit (i686) CPUs.'
+ distro_alias=/data/data/com.termux/files/usr/etc/proot-distro/ubuntu.sh
+ distro_alias=/data/data/com.termux/files/usr/etc/proot-distro/ubuntu
++ basename /data/data/com.termux/files/usr/etc/proot-distro/ubuntu
+ distro_alias=ubuntu
+ '[' -z Ubuntu ']'
+ SUPPORTED_DISTRIBUTIONS["$distro_alias"]=Ubuntu
+ '[' -n 'Standard release (mantic). Not available for x86 32-bit (i686) CPUs.' ']'
+ SUPPORTED_DISTRIBUTIONS_COMMENTS["$distro_alias"]='Standard release (mantic). Not available for x86 32-bit (i686) CPUs.'
+ read -r filename
++ . /data/data/com.termux/files/usr/etc/proot-distro/artix.sh
+++ DISTRO_NAME='Artix Linux'
+++ DISTRO_COMMENT='Currently available only for AArch64.'
+++ TARBALL_URL['aarch64']=https://github.com/termux/proot-distro/releases/download/v3.18.1/artix-aarch64-pd-v3.18.1.tar.xz
+++ TARBALL_SHA256['aarch64']=9801031864da6bc9dc69293695797f8aba7866c273bb7403f95c4e70be987936
++ echo 'Artix Linux'
+ distro_name='Artix Linux'
++ . /data/data/com.termux/files/usr/etc/proot-distro/artix.sh
+++ DISTRO_NAME='Artix Linux'
+++ DISTRO_COMMENT='Currently available only for AArch64.'
+++ TARBALL_URL['aarch64']=https://github.com/termux/proot-distro/releases/download/v3.18.1/artix-aarch64-pd-v3.18.1.tar.xz
+++ TARBALL_SHA256['aarch64']=9801031864da6bc9dc69293695797f8aba7866c273bb7403f95c4e70be987936
++ echo 'Currently available only for AArch64.'
+ distro_comment='Currently available only for AArch64.'
+ distro_alias=/data/data/com.termux/files/usr/etc/proot-distro/artix.sh
+ distro_alias=/data/data/com.termux/files/usr/etc/proot-distro/artix
++ basename /data/data/com.termux/files/usr/etc/proot-distro/artix
+ distro_alias=artix
+ '[' -z 'Artix Linux' ']'
+ SUPPORTED_DISTRIBUTIONS["$distro_alias"]='Artix Linux'
+ '[' -n 'Currently available only for AArch64.' ']'
+ SUPPORTED_DISTRIBUTIONS_COMMENTS["$distro_alias"]='Currently available only for AArch64.'
+ read -r filename
++ . /data/data/com.termux/files/usr/etc/proot-distro/archlinux.sh
+++ DISTRO_NAME='Arch Linux'
+++ DISTRO_COMMENT='Currently available only AArch64 and ARM ports.'
+++ TARBALL_URL['aarch64']=https://github.com/termux/proot-distro/releases/download/v4.5.0/archlinux-aarch64-pd-v4.5.0.tar.xz
+++ TARBALL_SHA256['aarch64']=fd4756ae5ecad0bf7bbd8eb8d3d76cd013ee74a0a41f4f92ec082aba5f346269
+++ TARBALL_URL['arm']=https://github.com/termux/proot-distro/releases/download/v4.5.0/archlinux-arm-pd-v4.5.0.tar.xz
+++ TARBALL_SHA256['arm']=73c3ee3b5fbe31fffa39587ad501862e7a173304ab235eb90ee9712967e6ce4b
++ echo 'Arch Linux'
+ distro_name='Arch Linux'
++ . /data/data/com.termux/files/usr/etc/proot-distro/archlinux.sh
+++ DISTRO_NAME='Arch Linux'
+++ DISTRO_COMMENT='Currently available only AArch64 and ARM ports.'
+++ TARBALL_URL['aarch64']=https://github.com/termux/proot-distro/releases/download/v4.5.0/archlinux-aarch64-pd-v4.5.0.tar.xz
+++ TARBALL_SHA256['aarch64']=fd4756ae5ecad0bf7bbd8eb8d3d76cd013ee74a0a41f4f92ec082aba5f346269
+++ TARBALL_URL['arm']=https://github.com/termux/proot-distro/releases/download/v4.5.0/archlinux-arm-pd-v4.5.0.tar.xz
+++ TARBALL_SHA256['arm']=73c3ee3b5fbe31fffa39587ad501862e7a173304ab235eb90ee9712967e6ce4b
++ echo 'Currently available only AArch64 and ARM ports.'
+ distro_comment='Currently available only AArch64 and ARM ports.'
+ distro_alias=/data/data/com.termux/files/usr/etc/proot-distro/archlinux.sh
+ distro_alias=/data/data/com.termux/files/usr/etc/proot-distro/archlinux
++ basename /data/data/com.termux/files/usr/etc/proot-distro/archlinux
+ distro_alias=archlinux
+ '[' -z 'Arch Linux' ']'
+ SUPPORTED_DISTRIBUTIONS["$distro_alias"]='Arch Linux'
+ '[' -n 'Currently available only AArch64 and ARM ports.' ']'
+ SUPPORTED_DISTRIBUTIONS_COMMENTS["$distro_alias"]='Currently available only AArch64 and ARM ports.'
+ read -r filename
++ . /data/data/com.termux/files/usr/etc/proot-distro/pardus.sh
+++ DISTRO_NAME='Pardus (yirmibir)'
+++ TARBALL_URL['aarch64']=https://github.com/termux/proot-distro/releases/download/v3.10.0/pardus-aarch64-pd-v3.10.0.tar.xz
+++ TARBALL_SHA256['aarch64']=85c2f29793025462e0cc4b4cb00080d79104313901c53edf8e0126308a24720f
+++ TARBALL_URL['i686']=https://github.com/termux/proot-distro/releases/download/v3.10.0/pardus-i686-pd-v3.10.0.tar.xz
+++ TARBALL_SHA256['i686']=f056d830dc689dadd31ba6bf7dc9a818874fbe3b1ef07356d894528c310c8851
+++ TARBALL_URL['x86_64']=https://github.com/termux/proot-distro/releases/download/v3.10.0/pardus-x86_64-pd-v3.10.0.tar.xz
+++ TARBALL_SHA256['x86_64']=032f7648fc7daab4e62c9b6b021bce5ab292cb1cd934e7686aed79604ef04408
++ echo 'Pardus (yirmibir)'
+ distro_name='Pardus (yirmibir)'
++ . /data/data/com.termux/files/usr/etc/proot-distro/pardus.sh
+++ DISTRO_NAME='Pardus (yirmibir)'
+++ TARBALL_URL['aarch64']=https://github.com/termux/proot-distro/releases/download/v3.10.0/pardus-aarch64-pd-v3.10.0.tar.xz
+++ TARBALL_SHA256['aarch64']=85c2f29793025462e0cc4b4cb00080d79104313901c53edf8e0126308a24720f
+++ TARBALL_URL['i686']=https://github.com/termux/proot-distro/releases/download/v3.10.0/pardus-i686-pd-v3.10.0.tar.xz
+++ TARBALL_SHA256['i686']=f056d830dc689dadd31ba6bf7dc9a818874fbe3b1ef07356d894528c310c8851
+++ TARBALL_URL['x86_64']=https://github.com/termux/proot-distro/releases/download/v3.10.0/pardus-x86_64-pd-v3.10.0.tar.xz
+++ TARBALL_SHA256['x86_64']=032f7648fc7daab4e62c9b6b021bce5ab292cb1cd934e7686aed79604ef04408
++ echo ''
+ distro_comment=
+ distro_alias=/data/data/com.termux/files/usr/etc/proot-distro/pardus.sh
+ distro_alias=/data/data/com.termux/files/usr/etc/proot-distro/pardus
++ basename /data/data/com.termux/files/usr/etc/proot-distro/pardus
+ distro_alias=pardus
+ '[' -z 'Pardus (yirmibir)' ']'
+ SUPPORTED_DISTRIBUTIONS["$distro_alias"]='Pardus (yirmibir)'
+ '[' -n '' ']'
+ read -r filename
++ . /data/data/com.termux/files/usr/etc/proot-distro/fedora.sh
+++ DISTRO_NAME=Fedora
+++ DISTRO_COMMENT='Version 39. Supports only 64-bit CPUs.'
+++ TARBALL_URL['aarch64']=https://github.com/termux/proot-distro/releases/download/v4.0.2/fedora-aarch64-pd-v4.0.2.tar.xz
+++ TARBALL_SHA256['aarch64']=339777a5ab14212b7541d1289aef33540c88a9a247035ba05144bd8e58903b84
+++ TARBALL_URL['x86_64']=https://github.com/termux/proot-distro/releases/download/v4.0.2/fedora-x86_64-pd-v4.0.2.tar.xz
+++ TARBALL_SHA256['x86_64']=b23bd177486b27b9252f93c8a421e9d0092219fe3efeb3536f170e97d6dc604c
++ echo Fedora
+ distro_name=Fedora
++ . /data/data/com.termux/files/usr/etc/proot-distro/fedora.sh
+++ DISTRO_NAME=Fedora
+++ DISTRO_COMMENT='Version 39. Supports only 64-bit CPUs.'
+++ TARBALL_URL['aarch64']=https://github.com/termux/proot-distro/releases/download/v4.0.2/fedora-aarch64-pd-v4.0.2.tar.xz
+++ TARBALL_SHA256['aarch64']=339777a5ab14212b7541d1289aef33540c88a9a247035ba05144bd8e58903b84
+++ TARBALL_URL['x86_64']=https://github.com/termux/proot-distro/releases/download/v4.0.2/fedora-x86_64-pd-v4.0.2.tar.xz
+++ TARBALL_SHA256['x86_64']=b23bd177486b27b9252f93c8a421e9d0092219fe3efeb3536f170e97d6dc604c
++ echo 'Version 39. Supports only 64-bit CPUs.'
+ distro_comment='Version 39. Supports only 64-bit CPUs.'
+ distro_alias=/data/data/com.termux/files/usr/etc/proot-distro/fedora.sh
+ distro_alias=/data/data/com.termux/files/usr/etc/proot-distro/fedora
++ basename /data/data/com.termux/files/usr/etc/proot-distro/fedora
+ distro_alias=fedora
+ '[' -z Fedora ']'
+ SUPPORTED_DISTRIBUTIONS["$distro_alias"]=Fedora
+ '[' -n 'Version 39. Supports only 64-bit CPUs.' ']'
+ SUPPORTED_DISTRIBUTIONS_COMMENTS["$distro_alias"]='Version 39. Supports only 64-bit CPUs.'
+ read -r filename
++ . /data/data/com.termux/files/usr/etc/proot-distro/deepin.sh
+++ DISTRO_NAME=deepin
+++ DISTRO_COMMENT='Supports only 64-bit CPUs.'
+++ TARBALL_URL['aarch64']=https://github.com/termux/proot-distro/releases/download/v4.3.1/deepin-aarch64-pd-v4.3.1-2.tar.xz
+++ TARBALL_SHA256['aarch64']=00136de01343b61e2d8ab47b5439842ff2c32380a657a0892c2a2475d9d01e84
+++ TARBALL_URL['x86_64']=https://github.com/termux/proot-distro/releases/download/v4.3.1/deepin-x86_64-pd-v4.3.1-2.tar.xz
+++ TARBALL_SHA256['x86_64']=3b5c398a59b92a53c123e6b7265d2f43278bdbf46e4bf384da541511ec04ad7b
++ echo deepin
+ distro_name=deepin
++ . /data/data/com.termux/files/usr/etc/proot-distro/deepin.sh
+++ DISTRO_NAME=deepin
+++ DISTRO_COMMENT='Supports only 64-bit CPUs.'
+++ TARBALL_URL['aarch64']=https://github.com/termux/proot-distro/releases/download/v4.3.1/deepin-aarch64-pd-v4.3.1-2.tar.xz
+++ TARBALL_SHA256['aarch64']=00136de01343b61e2d8ab47b5439842ff2c32380a657a0892c2a2475d9d01e84
+++ TARBALL_URL['x86_64']=https://github.com/termux/proot-distro/releases/download/v4.3.1/deepin-x86_64-pd-v4.3.1-2.tar.xz
+++ TARBALL_SHA256['x86_64']=3b5c398a59b92a53c123e6b7265d2f43278bdbf46e4bf384da541511ec04ad7b
++ echo 'Supports only 64-bit CPUs.'
+ distro_comment='Supports only 64-bit CPUs.'
+ distro_alias=/data/data/com.termux/files/usr/etc/proot-distro/deepin.sh
+ distro_alias=/data/data/com.termux/files/usr/etc/proot-distro/deepin
++ basename /data/data/com.termux/files/usr/etc/proot-distro/deepin
+ distro_alias=deepin
+ '[' -z deepin ']'
+ SUPPORTED_DISTRIBUTIONS["$distro_alias"]=deepin
+ '[' -n 'Supports only 64-bit CPUs.' ']'
+ SUPPORTED_DISTRIBUTIONS_COMMENTS["$distro_alias"]='Supports only 64-bit CPUs.'
+ read -r filename
++ . /data/data/com.termux/files/usr/etc/proot-distro/debian.sh
+++ DISTRO_NAME=Debian
+++ DISTRO_COMMENT='A stable release (bookworm).'
+++ TARBALL_URL['aarch64']=https://github.com/termux/proot-distro/releases/download/v4.5.0/debian-aarch64-pd-v4.5.0.tar.xz
+++ TARBALL_SHA256['aarch64']=bd675876f420c1c774649360041d7c4c268dc37d587afedfa6abe37580088cfa
+++ TARBALL_URL['arm']=https://github.com/termux/proot-distro/releases/download/v4.5.0/debian-arm-pd-v4.5.0.tar.xz
+++ TARBALL_SHA256['arm']=579cd4b32eea89729e9231783a919df667fe28606c413b7550889c8c8968fa41
+++ TARBALL_URL['i686']=https://github.com/termux/proot-distro/releases/download/v4.5.0/debian-i686-pd-v4.5.0.tar.xz
+++ TARBALL_SHA256['i686']=8309a33dea0c2002154aa9b62845ed376ac443fdc73c0f979dfc5d657a90c3df
+++ TARBALL_URL['x86_64']=https://github.com/termux/proot-distro/releases/download/v4.5.0/debian-x86_64-pd-v4.5.0.tar.xz
+++ TARBALL_SHA256['x86_64']=c5320c114a1e9d4caa86642f9b9f4c3933788f0382250cfbad9e03bd57a9337d
++ echo Debian
+ distro_name=Debian
++ . /data/data/com.termux/files/usr/etc/proot-distro/debian.sh
+++ DISTRO_NAME=Debian
+++ DISTRO_COMMENT='A stable release (bookworm).'
+++ TARBALL_URL['aarch64']=https://github.com/termux/proot-distro/releases/download/v4.5.0/debian-aarch64-pd-v4.5.0.tar.xz
+++ TARBALL_SHA256['aarch64']=bd675876f420c1c774649360041d7c4c268dc37d587afedfa6abe37580088cfa
+++ TARBALL_URL['arm']=https://github.com/termux/proot-distro/releases/download/v4.5.0/debian-arm-pd-v4.5.0.tar.xz
+++ TARBALL_SHA256['arm']=579cd4b32eea89729e9231783a919df667fe28606c413b7550889c8c8968fa41
+++ TARBALL_URL['i686']=https://github.com/termux/proot-distro/releases/download/v4.5.0/debian-i686-pd-v4.5.0.tar.xz
+++ TARBALL_SHA256['i686']=8309a33dea0c2002154aa9b62845ed376ac443fdc73c0f979dfc5d657a90c3df
+++ TARBALL_URL['x86_64']=https://github.com/termux/proot-distro/releases/download/v4.5.0/debian-x86_64-pd-v4.5.0.tar.xz
+++ TARBALL_SHA256['x86_64']=c5320c114a1e9d4caa86642f9b9f4c3933788f0382250cfbad9e03bd57a9337d
++ echo 'A stable release (bookworm).'
+ distro_comment='A stable release (bookworm).'
+ distro_alias=/data/data/com.termux/files/usr/etc/proot-distro/debian.sh
+ distro_alias=/data/data/com.termux/files/usr/etc/proot-distro/debian
++ basename /data/data/com.termux/files/usr/etc/proot-distro/debian
+ distro_alias=debian
+ '[' -z Debian ']'
+ SUPPORTED_DISTRIBUTIONS["$distro_alias"]=Debian
+ '[' -n 'A stable release (bookworm).' ']'
+ SUPPORTED_DISTRIBUTIONS_COMMENTS["$distro_alias"]='A stable release (bookworm).'
+ read -r filename
++ . /data/data/com.termux/files/usr/etc/proot-distro/void.sh
+++ DISTRO_NAME='Void Linux'
+++ TARBALL_URL['aarch64']=https://github.com/termux/proot-distro/releases/download/v3.18.1/void-aarch64-pd-v3.18.1.tar.xz
+++ TARBALL_SHA256['aarch64']=a2f17acfc49e6f1a6f2d121cb6f69e5d64ff3bc642364939acd5eba5738c4467
+++ TARBALL_URL['arm']=https://github.com/termux/proot-distro/releases/download/v3.18.1/void-arm-pd-v3.18.1.tar.xz
+++ TARBALL_SHA256['arm']=aa2d01e8e383ea65374ae70f6ad47e63ea93ab44c4c6580cb138f7fae354dbae
+++ TARBALL_URL['i686']=https://github.com/termux/proot-distro/releases/download/v3.18.1/void-i686-pd-v3.18.1.tar.xz
+++ TARBALL_SHA256['i686']=5dd0d58ee4abde72e68137c10d5b0a6866a9ec2d88d9f834bc56864cfc96c662
+++ TARBALL_URL['x86_64']=https://github.com/termux/proot-distro/releases/download/v3.18.1/void-x86_64-pd-v3.18.1.tar.xz
+++ TARBALL_SHA256['x86_64']=c08229efd5a7dfca6f496e774d52a9c8cbbbb3f19189c2482343872159ec6325
++ echo 'Void Linux'
+ distro_name='Void Linux'
++ . /data/data/com.termux/files/usr/etc/proot-distro/void.sh
+++ DISTRO_NAME='Void Linux'
+++ TARBALL_URL['aarch64']=https://github.com/termux/proot-distro/releases/download/v3.18.1/void-aarch64-pd-v3.18.1.tar.xz
+++ TARBALL_SHA256['aarch64']=a2f17acfc49e6f1a6f2d121cb6f69e5d64ff3bc642364939acd5eba5738c4467
+++ TARBALL_URL['arm']=https://github.com/termux/proot-distro/releases/download/v3.18.1/void-arm-pd-v3.18.1.tar.xz
+++ TARBALL_SHA256['arm']=aa2d01e8e383ea65374ae70f6ad47e63ea93ab44c4c6580cb138f7fae354dbae
+++ TARBALL_URL['i686']=https://github.com/termux/proot-distro/releases/download/v3.18.1/void-i686-pd-v3.18.1.tar.xz
+++ TARBALL_SHA256['i686']=5dd0d58ee4abde72e68137c10d5b0a6866a9ec2d88d9f834bc56864cfc96c662
+++ TARBALL_URL['x86_64']=https://github.com/termux/proot-distro/releases/download/v3.18.1/void-x86_64-pd-v3.18.1.tar.xz
+++ TARBALL_SHA256['x86_64']=c08229efd5a7dfca6f496e774d52a9c8cbbbb3f19189c2482343872159ec6325
++ echo ''
+ distro_comment=
+ distro_alias=/data/data/com.termux/files/usr/etc/proot-distro/void.sh
+ distro_alias=/data/data/com.termux/files/usr/etc/proot-distro/void
++ basename /data/data/com.termux/files/usr/etc/proot-distro/void
+ distro_alias=void
+ '[' -z 'Void Linux' ']'
+ SUPPORTED_DISTRIBUTIONS["$distro_alias"]='Void Linux'
+ '[' -n '' ']'
+ read -r filename
+ unset distro_name distro_alias
+ '[' 2 -ge 1 ']'
+ case "$1" in
+ shift 1
+ command_install ubuntu
+ local distro_name
+ local override_alias
+ local distro_plugin_script
+ (( 1 >= 1 ))
+ case "$1" in
+ '[' -z '' ']'
+ '[' -z ubuntu ']'
+ distro_name=ubuntu
+ shift 1
+ (( 0 >= 1 ))
+ '[' -z ubuntu ']'
+ '[' -z x ']'
+ grep -qiP '(kali|parrot|nethunter|blackarch)'
+ grep -qiP '^nh$'
+ '[' -n '' ']'
+ distro_plugin_script=/data/data/com.termux/files/usr/etc/proot-distro/ubuntu.sh
+ '[' '!' -f /data/data/com.termux/files/usr/etc/proot-distro/ubuntu.sh ']'
+ '[' -d /data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu ']'
+ '[' -f /data/data/com.termux/files/usr/etc/proot-distro/ubuntu.sh ']'
+ grep -q 'tar (GNU tar)' /proc/self/fd/63
++ tar --version
++ head -n 1
+ msg '[*] Installing Ubuntu...'
+ echo -e '[*] Installing Ubuntu...'
[*] Installing Ubuntu...
+ trap 'echo -e "\r\e[2K[!] Exiting due to failure."; chmod -R u+rwx "/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu"; rm -rf "/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu"; [ -e "/data/data/com.termux/files/usr/etc/proot-distro/ubuntu.override.sh" ] && rm -f "/data/data/com.termux/files/usr/etc/proot-distro/ubuntu.override.sh"; exit 1;' EXIT
+ trap 'trap - EXIT; echo -e "\r\e[2K[!] Exiting immediately as requested."; chmod -R u+rwx "/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu"; rm -rf "/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu"; [ -e "/data/data/com.termux/files/usr/etc/proot-distro/ubuntu.override.sh" ] && rm -f "/data/data/com.termux/files/usr/etc/proot-distro/ubuntu.override.sh"; exit 1;' HUP INT TERM
+ msg '[*] Creating directory '\''/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu'\''...'
+ echo -e '[*] Creating directory '\''/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu'\''...'
[*] Creating directory '/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu'...
+ mkdir -p /data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu
+ export PROOT_L2S_DIR=/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu/.l2s
+ PROOT_L2S_DIR=/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu/.l2s
+ '[' '!' -d /data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu/.l2s ']'
+ echo -e '[*] Creating directory '\''/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu/.l2s'\''...'
[*] Creating directory '/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu/.l2s'...
+ mkdir -p /data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu/.l2s
+ TARBALL_URL["aarch64"]=
+ TARBALL_URL["arm"]=
+ TARBALL_URL["i686"]=
+ TARBALL_URL["x86_64"]=
+ TARBALL_SHA256["aarch64"]=
+ TARBALL_SHA256["arm"]=
+ TARBALL_SHA256["i686"]=
+ TARBALL_SHA256["x86_64"]=
+ TARBALL_STRIP_OPT=1
+ source /data/data/com.termux/files/usr/etc/proot-distro/ubuntu.sh
++ DISTRO_NAME=Ubuntu
++ DISTRO_COMMENT='Standard release (mantic). Not available for x86 32-bit (i686) CPUs.'
++ TARBALL_URL['aarch64']=https://github.com/termux/proot-distro/releases/download/v4.5.0/ubuntu-aarch64-pd-v4.5.0.tar.xz
++ TARBALL_SHA256['aarch64']=78f6e74531c6e7c61d6b90ea9b7e25738c14f2f4f2bb07cb1614414ef06017d5
++ TARBALL_URL['arm']=https://github.com/termux/proot-distro/releases/download/v4.5.0/ubuntu-arm-pd-v4.5.0.tar.xz
++ TARBALL_SHA256['arm']=3af5171713631aa2f672602f0099d22e242a9fe19df910924dbf5e93497496c8
++ TARBALL_URL['x86_64']=https://github.com/termux/proot-distro/releases/download/v4.5.0/ubuntu-x86_64-pd-v4.5.0.tar.xz
++ TARBALL_SHA256['x86_64']=5a5212f5389fb805030c4db2dcde99590136291bb9f44aad62b4665b66f66669
+ '[' -z https://github.com/termux/proot-distro/releases/download/v4.5.0/ubuntu-aarch64-pd-v4.5.0.tar.xz ']'
+ grep -qP '^[0-9a-fA-F]{64}$'
+ '[' '!' -d /data/data/com.termux/files/usr/var/lib/proot-distro/dlcache ']'
+ local tarball_name
++ basename https://github.com/termux/proot-distro/releases/download/v4.5.0/ubuntu-aarch64-pd-v4.5.0.tar.xz
+ tarball_name=ubuntu-aarch64-pd-v4.5.0.tar.xz
+ '[' '!' -f /data/data/com.termux/files/usr/var/lib/proot-distro/dlcache/ubuntu-aarch64-pd-v4.5.0.tar.xz ']'
+ msg '[*] Using cached rootfs tarball...'
+ echo -e '[*] Using cached rootfs tarball...'
[*] Using cached rootfs tarball...
+ '[' -n 78f6e74531c6e7c61d6b90ea9b7e25738c14f2f4f2bb07cb1614414ef06017d5 ']'
+ msg '[*] Checking integrity, please wait...'
+ echo -e '[*] Checking integrity, please wait...'
[*] Checking integrity, please wait...
+ local actual_sha256
++ sha256sum /data/data/com.termux/files/usr/var/lib/proot-distro/dlcache/ubuntu-aarch64-pd-v4.5.0.tar.xz
++ awk '{ print $1}'
+ actual_sha256=78f6e74531c6e7c61d6b90ea9b7e25738c14f2f4f2bb07cb1614414ef06017d5
+ '[' 78f6e74531c6e7c61d6b90ea9b7e25738c14f2f4f2bb07cb1614414ef06017d5 '!=' 78f6e74531c6e7c61d6b90ea9b7e25738c14f2f4f2bb07cb1614414ef06017d5 ']'
+ msg '[*] Extracting rootfs, please wait...'
+ echo -e '[*] Extracting rootfs, please wait...'
[*] Extracting rootfs, please wait...
+ set +e
+ proot --link2symlink tar -C /data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu --warning=no-unknown-keyword --delay-directory-restore --preserve-permissions --strip=1 -xf /data/data/com.termux/files/usr/var/lib/proot-distro/dlcache/ubuntu-aarch64-pd-v4.5.0.tar.xz --exclude=dev
+ grep -v /linkerconfig/
tar: Unknown option 'warning=no-unknown-keyword' (see "tar --help")
+ set -e
+ '[' '!' -e /data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu/etc ']'
+ msg
+ echo -e
+ msg 'Error: the rootfs of distribution '\''ubuntu'\'' has unexpected structure (no /etc directory). Make sure that variable TARBALL_STRIP_OPT specified in distribution plug-in is correct.'
+ echo -e 'Error: the rootfs of distribution '\''ubuntu'\'' has unexpected structure (no /etc directory). Make sure that variable TARBALL_STRIP_OPT specified in distribution plug-in is correct.'
Error: the rootfs of distribution 'ubuntu' has unexpected structure (no /etc directory). Make sure that variable TARBALL_STRIP_OPT specified in distribution plug-in is correct.
+ msg
+ echo -e
+ return 1
+ echo -e '\r\e[2K[!] Exiting due to failure.'
[2K[!] Exiting due to failure.
+ chmod -R u+rwx /data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu
+ rm -rf /data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu
+ '[' -e /data/data/com.termux/files/usr/etc/proot-distro/ubuntu.override.sh ']'
+ exit 1
Ok, now try to do this:
rm -rf ${PREFIX}/var/lib/proot-distro/installed-rootfs/ubuntu
mkdir -p ${PREFIX}/var/lib/proot-distro/installed-rootfs/ubuntu
proot --link2symlink tar -C ${PREFIX}/var/lib/proot-distro/installed-rootfs/ubuntu --warning=no-unknown-keyword --delay-directory-restore --preserve-permissions --strip=1 -xf ${PREFIX}/var/lib/proot-distro/dlcache/ubuntu-aarch64-pd-v4.5.0.tar.xz --exclude=dev
ls ${PREFIX}/var/lib/proot-distro/installed-rootfs/ubuntu
Also:
proot --link2symlink
before tar
commandproot --link2symlink tar --version
proot --link2symlink tar -C ${PREFIX}/var/lib/proot-distro/installed-rootfs/ubuntu --warning=no-unknown-keyword --delay-directory-restore --preserve-permissions --strip=1 -xf ${PREFIX}/var/lib/proot-distro/dlcache/ubuntu-aarch64-pd-v4.5.0.tar.xz --exclude=dev
2 first commands executed without problem but the 3rd one returns this error:
tar: Unknown option 'warning=no-unknown-keyword' (see "tar --help")
how could this be?! my tar
package version is the same as yours 1.35;
i tried removing the warning=no-unknown-keyword
part:
proot --link2symlink tar -C ${PREFIX}/var/lib/proot-distro/installed-rootfs/ubuntu --delay-directory-restore --preserve-permissions --strip=1 -xf ${PREFIX}/var/lib/proot-distro/dlcache/ubuntu-aarch64-pd-v4.5.0.tar.xz --exclude=dev
and got this: tar: Unknown option 'delay-directory-restore' (see "tar --help")
should i uninstall and reinstall tar
?
btw here's the output of termux-info
...if it helps:
Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=22846
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://packages-cf.termux.dev/apt/termux-main stable main
# root-repo (sources.list.d/root.list)
deb https://packages-cf.termux.dev/apt/termux-root root stable
# x11-repo (sources.list.d/x11.list)
deb https://packages-cf.termux.dev/apt/termux-x11 x11 main
Updatable packages:
lsof/stable 4.99.3 aarch64 [upgradable from: 4.99.2]
termux-tools version:
1.39.6
Android version:
13
Kernel build information:
Linux localhost 5.10.157-android13-4-00003-g776d0a76f6aa-ab10208116 #1 SMP PREEMPT Thu May 25 12:11:12 UTC 2023 aarch64 Android
Device manufacturer:
Google
Device model:
Pixel 6a
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.api versionCode:51
com.termux.styling versionCode:31
Would like to see output of:
dpkg --verify tar
tar --help
Yes, you can reinstall tar.
Note that message tar: Unknown option 'delay-directory-restore'
does not correspond to the invalid option output of genuine GNU tar.
The correct output look like this, if --delay-directory-restore
would not be supported:
tar: unrecognized option '--delay-directory-restore'
Try 'tar --help' or 'tar --usage' for more information.
Identified the problem: you are using tar from toybox. It returns the error message exactly like yours. How you managed to get GNU tar output in tar --version
is still a question.
Make sure your PATH
is correct and /data/data/com.termux/files/usr/bin
is the first component.
Proper PATH
will be manually set in the next version of proot-distro and it would not depend on current value of environment variable.
dpkg --verify tar
returns nothing
tar --help
:
Usage: tar [OPTION...] [FILE]...
GNU 'tar' saves many files together into a single tape or disk archive, and can
restore individual files from the archive.
Examples:
tar -cf archive.tar foo bar # Create archive.tar from files foo and bar.
tar -tvf archive.tar # List all files in archive.tar verbosely.
tar -xf archive.tar # Extract all files from archive.tar.
Main operation mode:
-A, --catenate, --concatenate append tar files to an archive
-c, --create create a new archive
--delete delete from the archive (not on mag tapes!)
-d, --diff, --compare find differences between archive and file system
-r, --append append files to the end of an archive
--test-label test the archive volume label and exit
-t, --list list the contents of an archive
-u, --update only append files newer than copy in archive
-x, --extract, --get extract files from an archive
Operation modifiers:
--check-device check device numbers when creating incremental
archives (default)
-g, --listed-incremental=FILE handle new GNU-format incremental backup
-G, --incremental handle old GNU-format incremental backup
--hole-detection=TYPE technique to detect holes
--ignore-failed-read do not exit with nonzero on unreadable files
--level=NUMBER dump level for created listed-incremental archive
--no-check-device do not check device numbers when creating
incremental archives
--no-seek archive is not seekable
-n, --seek archive is seekable
--occurrence[=NUMBER] process only the NUMBERth occurrence of each file
in the archive; this option is valid only in
conjunction with one of the subcommands --delete,
--diff, --extract or --list and when a list of
files is given either on the command line or via
the -T option; NUMBER defaults to 1
--sparse-version=MAJOR[.MINOR]
set version of the sparse format to use (implies
--sparse)
-S, --sparse handle sparse files efficiently
Local file name selection:
--add-file=FILE add given FILE to the archive (useful if its name
starts with a dash)
-C, --directory=DIR change to directory DIR
--exclude=PATTERN exclude files, given as a PATTERN
--exclude-backups exclude backup and lock files
--exclude-caches exclude contents of directories containing
CACHEDIR.TAG, except for the tag file itself
--exclude-caches-all exclude directories containing CACHEDIR.TAG
--exclude-caches-under exclude everything under directories containing
CACHEDIR.TAG
--exclude-ignore=FILE read exclude patterns for each directory from
FILE, if it exists
--exclude-ignore-recursive=FILE
read exclude patterns for each directory and its
subdirectories from FILE, if it exists
--exclude-tag=FILE exclude contents of directories containing FILE,
except for FILE itself
--exclude-tag-all=FILE exclude directories containing FILE
--exclude-tag-under=FILE exclude everything under directories
containing FILE
--exclude-vcs exclude version control system directories
--exclude-vcs-ignores read exclude patterns from the VCS ignore files
--no-null disable the effect of the previous --null option
--no-recursion avoid descending automatically in directories
--no-unquote do not unquote input file or member names
--no-verbatim-files-from -T treats file names starting with dash as
options (default)
--null -T reads null-terminated names; implies
--verbatim-files-from
--recursion recurse into directories (default)
-T, --files-from=FILE get names to extract or create from FILE
--unquote unquote input file or member names (default)
--verbatim-files-from -T reads file names verbatim (no escape or option
handling)
-X, --exclude-from=FILE exclude patterns listed in FILE
File name matching options (affect both exclude and include patterns):
--anchored patterns match file name start
--ignore-case ignore case
--no-anchored patterns match after any '/' (default for
exclusion)
--no-ignore-case case sensitive matching (default)
--no-wildcards verbatim string matching
--no-wildcards-match-slash wildcards do not match '/'
--wildcards use wildcards (default for exclusion)
--wildcards-match-slash wildcards match '/' (default for exclusion)
Overwrite control:
--keep-directory-symlink preserve existing symlinks to directories when
extracting
--keep-newer-files don't replace existing files that are newer than
their archive copies
-k, --keep-old-files don't replace existing files when extracting,
treat them as errors
--no-overwrite-dir preserve metadata of existing directories
--one-top-level[=DIR] create a subdirectory to avoid having loose files
extracted
--overwrite overwrite existing files when extracting
--overwrite-dir overwrite metadata of existing directories when
extracting (default)
--recursive-unlink empty hierarchies prior to extracting directory
--remove-files remove files after adding them to the archive
--skip-old-files don't replace existing files when extracting,
silently skip over them
-U, --unlink-first remove each file prior to extracting over it
-W, --verify attempt to verify the archive after writing it
Select output stream:
--ignore-command-error ignore exit codes of children
--no-ignore-command-error treat non-zero exit codes of children as
error
-O, --to-stdout extract files to standard output
--to-command=COMMAND pipe extracted files to another program
Handling of file attributes:
--atime-preserve[=METHOD] preserve access times on dumped files, either
by restoring the times after reading
(METHOD='replace'; default) or by not setting the
times in the first place (METHOD='system')
--clamp-mtime only set time when the file is more recent than
what was given with --mtime
--delay-directory-restore delay setting modification times and
permissions of extracted directories until the end
of extraction
--group=NAME force NAME as group for added files
--group-map=FILE use FILE to map file owner GIDs and names
--mode=CHANGES force (symbolic) mode CHANGES for added files
--mtime=DATE-OR-FILE set mtime for added files from DATE-OR-FILE
-m, --touch don't extract file modified time
--no-delay-directory-restore
cancel the effect of --delay-directory-restore
option
--no-same-owner extract files as yourself (default for ordinary
users)
--no-same-permissions apply the user's umask when extracting permissions
from the archive (default for ordinary users)
--numeric-owner always use numbers for user/group names
--owner=NAME force NAME as owner for added files
--owner-map=FILE use FILE to map file owner UIDs and names
-p, --preserve-permissions, --same-permissions
extract information about file permissions
(default for superuser)
--same-owner try extracting files with the same ownership as
exists in the archive (default for superuser)
--sort=ORDER directory sorting order: none (default), name or
inode
-s, --preserve-order, --same-order
member arguments are listed in the same order as
the files in the archive
Handling of extended file attributes:
--acls Enable the POSIX ACLs support
--no-acls Disable the POSIX ACLs support
--no-selinux Disable the SELinux context support
--no-xattrs Disable extended attributes support
--selinux Enable the SELinux context support
--xattrs Enable extended attributes support
--xattrs-exclude=MASK specify the exclude pattern for xattr keys
--xattrs-include=MASK specify the include pattern for xattr keys
Device selection and switching:
--force-local archive file is local even if it has a colon
-f, --file=ARCHIVE use archive file or device ARCHIVE
-F, --info-script=NAME, --new-volume-script=NAME
run script at end of each tape (implies -M)
-L, --tape-length=NUMBER change tape after writing NUMBER x 1024 bytes
-M, --multi-volume create/list/extract multi-volume archive
--rmt-command=COMMAND use given rmt COMMAND instead of rmt
--rsh-command=COMMAND use remote COMMAND instead of rsh
--volno-file=FILE use/update the volume number in FILE
Device blocking:
-b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record
-B, --read-full-records reblock as we read (for 4.2BSD pipes)
-i, --ignore-zeros ignore zeroed blocks in archive (means EOF)
--record-size=NUMBER NUMBER of bytes per record, multiple of 512
Archive format selection:
-H, --format=FORMAT create archive of the given format
FORMAT is one of the following:
gnu GNU tar 1.13.x format
oldgnu GNU format as per tar <= 1.12
pax POSIX 1003.1-2001 (pax) format
posix same as pax
ustar POSIX 1003.1-1988 (ustar) format
v7 old V7 tar format
--old-archive, --portability
same as --format=v7
--pax-option=keyword[[:]=value][,keyword[[:]=value]]...
control pax keywords
--posix same as --format=posix
-V, --label=TEXT create archive with volume name TEXT; at
list/extract time, use TEXT as a globbing pattern
for volume name
Compression options:
-a, --auto-compress use archive suffix to determine the compression
program
-I, --use-compress-program=PROG
filter through PROG (must accept -d)
-j, --bzip2 filter the archive through bzip2
-J, --xz filter the archive through xz
--lzip filter the archive through lzip
--lzma filter the archive through lzma
--lzop filter the archive through lzop
--no-auto-compress do not use archive suffix to determine the
compression program
--zstd filter the archive through zstd
-z, --gzip, --gunzip, --ungzip filter the archive through gzip
-Z, --compress, --uncompress filter the archive through compress
Local file selection:
--backup[=CONTROL] backup before removal, choose version CONTROL
--hard-dereference follow hard links; archive and dump the files they
refer to
-h, --dereference follow symlinks; archive and dump the files they
point to
-K, --starting-file=MEMBER-NAME
begin at member MEMBER-NAME when reading the
archive
--newer-mtime=DATE compare date and time when data changed only
-N, --newer=DATE-OR-FILE, --after-date=DATE-OR-FILE
only store files newer than DATE-OR-FILE
--one-file-system stay in local file system when creating archive
-P, --absolute-names don't strip leading '/'s from file names
--suffix=STRING backup before removal, override usual suffix ('~'
unless overridden by environment variable
SIMPLE_BACKUP_SUFFIX)
File name transformations:
--strip-components=NUMBER strip NUMBER leading components from file
names on extraction
--transform=EXPRESSION, --xform=EXPRESSION
use sed replace EXPRESSION to transform file
names
Informative output:
--checkpoint[=NUMBER] display progress messages every NUMBERth record
(default 10)
--checkpoint-action=ACTION execute ACTION on each checkpoint
--full-time print file time to its full resolution
--index-file=FILE send verbose output to FILE
-l, --check-links print a message if not all links are dumped
--no-quote-chars=STRING disable quoting for characters from STRING
--quote-chars=STRING additionally quote characters from STRING
--quoting-style=STYLE set name quoting style; see below for valid STYLE
values
-R, --block-number show block number within archive with each message
--show-defaults show tar defaults
--show-omitted-dirs when listing or extracting, list each directory
that does not match search criteria
--show-snapshot-field-ranges
show valid ranges for snapshot-file fields
--show-transformed-names, --show-stored-names
show file or archive names after transformation
--totals[=SIGNAL] print total bytes after processing the archive;
with an argument - print total bytes when this
SIGNAL is delivered; Allowed signals are: SIGHUP,
SIGQUIT, SIGINT, SIGUSR1 and SIGUSR2; the names
without SIG prefix are also accepted
--utc print file modification times in UTC
-v, --verbose verbosely list files processed
--warning=KEYWORD warning control
-w, --interactive, --confirmation
ask for confirmation for every action
Compatibility options:
-o when creating, same as --old-archive; when
extracting, same as --no-same-owner
Other options:
-?, --help give this help list
--restrict disable use of some potentially harmful options
--usage give a short usage message
--version print program version
Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.
The backup suffix is '~', unless set with --suffix or SIMPLE_BACKUP_SUFFIX.
The version control may be set with --backup or VERSION_CONTROL, values are:
none, off never make backups
t, numbered make numbered backups
nil, existing numbered if numbered backups exist, simple otherwise
never, simple always make simple backups
Valid arguments for the --quoting-style option are:
literal
shell
shell-always
shell-escape
shell-escape-always
c
c-maybe
escape
locale
clocale
*This* tar defaults to:
--format=gnu -f- -b20 --quoting-style=escape
--rmt-command=/data/data/com.termux/files/usr/libexec/rmt
Identified the problem: you are using tar from toybox. It returns the error message exactly like yours. How you managed to get GNU tar output in
tar --version
is still a question.Make sure your
PATH
is correct and/data/data/com.termux/files/usr/bin
is the first component.Proper
PATH
will be manually set in the next version of proot-distro and it would not depend on current value of environment variable.
this is the output of echo $PATH | tr ":" "\n"
:
/usr/bin
/usr/local/bin
/usr/bin
/bin
/usr/bin
/usr/local/bin
/usr/bin
/bin
/data/data/com.termux/files/home/.local/bin
/data/data/com.termux/files/home/bin
/data/data/com.termux/files/usr/bin
is this how you suggested it should be?
Your PATH is messed up.
Should be exactly:
/data/data/com.termux/files/usr/bin
Or otherwise /data/data/com.termux/files/usr/bin
should be the first component.
If /bin
would be before Termux path, Android utilities will be picked. On Android /bin
is a symlink to /system/bin
.
Try:
export PATH=/data/data/com.termux/files/usr/bin
rm -rf ${PREFIX}/var/lib/proot-distro/installed-rootfs/ubuntu
proot-distro install ubuntu
proot-distro login ubuntu
goddamn it worked! thanks mate :D
Problem description
Device model: Google Pixel 6a Android version: 13 (TQ3A.230901.001) Termux version: 0.118.0 package version: 4.6.0
as title says, when run
proot-distro i fedora
andproot-distro i ubuntu
terminal returns nearly the same output, same error:"Error: the rootfs of distribution 'fedora' has unexpected structure (no /etc directory). Make sure that variable TARBALL_STRIP_OPT specified in distribution plug-in is correct."
"Error: the rootfs of distribution 'ubuntu' has unexpected structure (no /etc directory). Make sure that variable TARBALL_STRIP_OPT specified in distribution plug-in is correct."
What steps will reproduce the bug?
proot-distro i fedora
proot-distro i ubuntu
What is the expected behavior?
successfully install either fedora or ubuntu distro