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
相关推荐
侠客工坊3 分钟前
大模型落地移动端:解析侠客工坊端侧 Agent 的零拷贝(Zero-Copy)屏幕感知与空间映射
android·人工智能
北漂Zachary7 分钟前
Laravel7.x核心特性全解析
android
Grackers33 分钟前
Android Perfetto 系列 8:深入理解 Vsync 机制与性能分析
android
xinhuanjieyi1 小时前
php给30支NBA球队添加logo图标,做好对应关系
android·开发语言·php
小宋0011 小时前
Ubuntu Terminator(多开并行终端工具)
linux·运维·ubuntu
jian110581 小时前
Android studio会自动下载高版本的tools
android·ide·android studio
李李李li1 小时前
vmware各种版本下载链接-github
linux·ubuntu·开源软件
Trouvaille ~1 小时前
【MySQL篇】内外连接:多表关联的完整指南
android·数据库·mysql·面试·后端开发·dql·内外连接
MIXLLRED2 小时前
解决:RealSense D435 在树莓派4B(Ubuntu 22.04 + ROS2 Humble)上的权限与驱动问题完整复盘
linux·ubuntu·树莓派·realsense d400
Zender Han2 小时前
VS Code 开发 Flutter 常用快捷键和插件工具详解
android·vscode·flutter·ios