Termux安装Ubuntu全过程
更新时间:2026年04月16日 09:27:18 作者:道之极万物灭
文章介绍了在Termux中使用proot-distro安装Ubuntu的方法,包括换源、安装基础件、查看与安装不同Linux系统、进入Linux环境查看系统版本、删除与重新安装Linux环境以及修改sources.list和更新包信息等步骤
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
总结
以上为个人经验,希望能给大家一个参考,也希望大家多多支持脚本之家。
相关文章
Linux系统下通过jar包进程号查询jar程序占用端口的常用方法
在Linux系统中,如果你已经知道了Java应用程序的进程ID(PID),你可以使用多种方法来查找该进程所占用的端口号;判断方法可以使用两个方法结果是否一致,以下是几种常用的方法,需要的朋友可以参考下2024-10-10
详解如何在 CentOS 7 上安装和安全配置 MariaDB 10
这篇文章主要介绍了详解如何在 CentOS 7 上安装和安全配置 MariaDB 10,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧2017-03-03


最新评论