github地址:https://github.com/termux/termux-app
1、换源命令
termux-change-repo
2、安装ubuntu
2.1 先安装基础件proot-distro
pkg install proot-distro
2.2 查看可安装的linux系统
proot-distro list
2.3 安装ubuntu
proot-distro install ubuntu
2.4 安装完成后,进入 linux(ubuntu)环境
proot-distro login ubuntu
查看系统版本
cat /etc/os-release
2.5 删除linux(ubuntu)环境
proot-distro remove ubuntu
2.6 重新安装linux(ubuntu)环境
proot-distro reset ubuntu
2.7 修改/etc/apt/sources.list(ubuntu 24.04 (noble))
echo -e " deb https://mirrors.aliyun.com/ubuntu/ noble main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu/ noble main restricted universe multiverse deb https://mirrors.aliyun.com/ubuntu/ noble-security main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu/ noble-security main restricted universe multiverse deb https://mirrors.aliyun.com/ubuntu/ noble-updates main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu/ noble-updates main restricted universe multiverse # deb https://mirrors.aliyun.com/ubuntu/ noble-proposed main restricted universe multiverse # deb-src https://mirrors.aliyun.com/ubuntu/ noble-proposed main restricted universe multiverse deb https://mirrors.aliyun.com/ubuntu/ noble-backports main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu/ noble-backports main restricted universe multiverse " | tee /etc/apt/sources.list
2.8 更新包信息
apt update & apt upgrade -y
总结
以上为个人经验,希望能给大家一个参考,也希望大家多多支持代码网。
发表评论