当前位置: 代码网 > 服务器>服务器>Linux > Termux安装Ubuntu全过程

Termux安装Ubuntu全过程

2026年04月16日 Linux 我要评论
github地址:https://github.com/termux/termux-app1、换源命令termux-change-repo2、安装ubuntu2.1 先安装基础件proot-distr

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

总结

以上为个人经验,希望能给大家一个参考,也希望大家多多支持代码网。

(0)

相关文章:

版权声明:本文内容由互联网用户贡献,该文观点仅代表作者本人。本站仅提供信息存储服务,不拥有所有权,不承担相关法律责任。 如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 2386932994@qq.com 举报,一经查实将立刻删除。

发表评论

验证码:
Copyright © 2017-2026  代码网 保留所有权利. 粤ICP备2024248653号
站长QQ:2386932994 | 联系邮箱:2386932994@qq.com