Android终端模拟器Termux上使用Ubuntu

Termux 上安装各种 Linux 系统是通过 proot-distro 工具来实现的,所以先安装一下 proot-distro 工具。

shell 复制代码
~ $ pkg install proot-distro 

查看Termux支持安装那些Linux

shell 复制代码
~ $ proot-distro list

Supported distributions:

  * Alpine Linux

    Alias: alpine
    Installed: no
    Comment: Rolling release branch (edge).

  * Arch Linux

    Alias: archlinux
    Installed: no
    Comment: Currently available only AArch64 and ARM ports.

  * Artix Linux

    Alias: artix
    Installed: no
    Comment: Currently available only for AArch64.

  * Debian

    Alias: debian
    Installed: no
    Comment: A stable release (bookworm).

  * deepin

    Alias: deepin
    Installed: no
    Comment: Supports only 64-bit CPUs.

  * Fedora

    Alias: fedora
    Installed: no
    Comment: Version 39. Supports only 64-bit CPUs.

  * Manjaro

    Alias: manjaro
    Installed: no
    Comment: Currently available only for AArch64.

  * OpenSUSE

    Alias: opensuse
    Installed: no
    Comment: Rolling release (Tumbleweed).

  * Pardus (yirmibir)

    Alias: pardus
    Installed: no

  * Ubuntu

    Alias: ubuntu
    Installed: no
    Comment: Standard release (mantic). Not available for x86 32-bit (i686) CPUs.

  * Void Linux

    Alias: void
    Installed: no

Install selected one with: proot-distro install <alias>

这里我们选择安装 Ubuntu 系统

shell 复制代码
~ $ proot-distro install ubuntu

安装完成后,登录 Ubuntu 系统

shell 复制代码
~ $ proot-distro login ubuntu
root@localhost:~# 

查看一下 Ubuntu 版本

shell 复制代码
root@localhost:~# cat /etc/os-release 
PRETTY_NAME="Ubuntu 23.10"
NAME="Ubuntu"
VERSION_ID="23.10"
VERSION="23.10 (Mantic Minotaur)"
VERSION_CODENAME=mantic
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=mantic
LOGO=ubuntu-logo

最后提一句,安装过程如果出现下面的错误

shell 复制代码
CANNOT LINK EXECUTABLE "curl": library "libssl.so.1.1" not found: needed by /data/data/com.termux/files/usr/lib/libssh2.so in namespace (default)

可以执行一下完整的升级操作,再安装

shell 复制代码
apt full-upgrade
相关推荐
努力努力再努力wz22 分钟前
【MySQL 进阶系列】拒绝滥用root:从 mysql.user 到权限校验,带你彻底理解用户管理与授权机制!
android·c语言·开发语言·数据结构·数据库·c++·mysql
HaiXCoder38 分钟前
AndroidAutoSize 框架原理分析与核心问题
android
fengci.1 小时前
CTF+随机困难题目
android·开发语言·前端·学习·php
Le_ee2 小时前
SWPUCTF 2025 秋季新生赛wp2
android
良木生香2 小时前
【Linux系统编程】Linux基础指令(1)---一文带你了解Linux的基础指令
linux·运维·服务器·ubuntu·机器学习·系统架构·centos
pengyu3 小时前
【Kotlin 协程修仙录 · 金丹境 · 初阶】 | 并发艺术:async/await 与并发组合的优雅之道
android·kotlin
沐言人生4 小时前
ReactNative 源码分析3——ReactActivity之初始化RN应用
android·react native
YaBingSec4 小时前
网络安全靶场WP:Grafana 任意文件读取漏洞(CVE-2021-43798)
android·笔记·安全·web安全·ssh·grafana
YF02115 小时前
彻底解决Android非SDK接口绕过限制的深度实践
android·google·app
zhangrelay5 小时前
三分钟云课实践速通--C/C++程序设计--
linux·c语言·c++·笔记·学习·ubuntu