在给安卓Pixel4安装Temux时发生了一个报错,看这个意思是proot有点问题。
$ ./start.sh
proot warning: can't chdir("/root/.") in the guest rootfs: No such file or directory
proot info: default working directory is now "/"
proot error: '/usr/bin/env' not found (root = /data/data/com.termux/files/home/termux- ubuntu/ubuntu-fs, cwd = /, $PATH=(null))
fatal error: see proot --help.
查了一下,发现github上有位外国大佬解决了这个问题,copy过来解决方案:
就把冒号后面的执行一遍即可。
that repo works!!!
that help me fixed error above
Update termux: apt-get update && apt-get upgrade -y
Install wget: apt-get install wget -y
Install proot: apt-get install proot -y
Install git: apt-get install git -y
Go to HOME folder: cd ~
Download script: git clone https://github.com/MFDGaming/ubuntu-in-termux.git
Go to script folder: cd ubuntu-in-termux
Give execution permission: chmod +x ubuntu.sh
Run the script: ./ubuntu.sh -y
Now just start ubuntu: ./startubuntu.sh