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
相关推荐
teacher伟大光荣且正确3 小时前
Qt Creator 配置 Android 编译环境
android·开发语言·qt
ChironW4 小时前
Ubuntu 24.04 LTS系统上配置国内时间同步
linux·运维·服务器·ubuntu
飞猿_SIR6 小时前
Android Exoplayer 实现多个音视频文件混合播放以及音轨切换
android·音视频
不摆烂选手6 小时前
Linux 阻塞和非阻塞 I/O 简明指南
linux·驱动开发·ubuntu·正点原子imx6ull学习笔记
HumoChen997 小时前
GZip+Base64压缩字符串在ios上解压报错问题解决(安卓、PC模拟器正常)
android·小程序·uniapp·base64·gzip
SweerItTer7 小时前
由镜像源配置错误导致的软件包依赖问题
linux·vscode·ubuntu
jie188945758668 小时前
ubuntu----100,常用命令2
数据库·ubuntu
季柳东8 小时前
在虚拟机Ubuntu18.04中安装NS2教程及应用
linux·运维·ubuntu
jie188945758669 小时前
ubuntu---100条常用命令
ubuntu
Jerry&Louis9 小时前
【Ubuntu】neovim & Lazyvim安装与卸载
linux·ubuntu