https://www.jianshu.com/p/f41bc63d4246
https://raw.githubusercontent.com/Neo-Oli/termux-ubuntu/master/ubuntu.sh
chroot是个啥呀?这和虚拟Ubuntu啥子关系哦?
https://www.ibm.com/developerworks/cn/linux/l-cn-chroot/
那为啥我即使执行chroot命令,指定到当前目录,会提示
chroot: failed to run command ‘/bin/bash’: No such file or directory
因为当前目录下没有./bin/bash文件
那我自己mkdir,并且复制了bash过来,为啥子还是上面的错误信息?现在不是有了bash了么???
是因为chroot的错误信息具有误导性(而上面IBM那篇文章中出错信息就比较准确),即使bash没执行成功也会提示文件不存在!
https://unix.stackexchange.com/questions/128046/chroot-failed-to-run-command-bin-bash-no-such-file-or-directory
要拷贝/lib、/lib64文件夹过来,bash依赖它,动态编译!
记得sudo cp -a
termux中安装Ubuntu,首先安装proot,然后下载执行以下脚本:
https://github.com/MFDGaming/ubuntu-in-termux/blob/master/ubuntu.sh
脚本会去下载:http://cdimage.ubuntu.com/ubuntu-base/releases/18.04/release/ubuntu-base-18.04-base-arm64.tar.gz