用termux proot安装ubuntu。
安装
~ $ proot-distro install ubuntu
[*] Installing Ubuntu (24.04)...
[*] 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/.l2s'...
[*] Downloading rootfs tarball...
[*] URL: https://github.com/termux/proot-distro/releases/download/v4.17.3/ubuntu-noble-aarch64-pd-v4.17.3.tar.xz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 24.3M 100 24.3M 0 0 121k 0 0:03:24 0:03:24 --:--:-- 125k
[*] Checking integrity, please wait...
[*] Extracting rootfs, please wait...
[*] Writing file '/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu/etc/environment'...
[*] Updating PATH in '/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu/etc/bash.bashrc' if needed...
[*] Updating PATH in '/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu/etc/profile' if needed...
[*] Updating PATH in '/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu/etc/login.defs' if needed...
[*] Creating file '/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu/etc/resolv.conf'...
[*] Creating file '/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu/etc/hosts'...
[*] Registering Android-specific UIDs and GIDs...
[*] Running distribution-specific configuration steps...
Generating locales (this might take a while)...
en_US.UTF-8... done
Generation complete.
[*] Finished.
Log in with: proot-distro login ubuntu