根据搜索结果,Termux 中文输入有这些解决方案:
最简单的方法:切换键盘模式
- 安装 Gboard(Google 输入法)
- 在 Termux 中,按住屏幕底部的快捷键条(ESC、CTRL 那些软按键),向左滑动
- 当快捷键条变成空白条时,就能输入中文了
或者用 proot-distro 安装 Ubuntu:
pkg install proot-distro
proot-distro install ubuntu
proot-distro login ubuntu
然后在 Ubuntu 里:
apt install language-pack-zh-hans
locale-gen zh_CN.UTF-8
关于 locales 找不到的问题: 新版本 Termux 已经内置了 locales,不需要单独安装。试试直接运行:
locale-gen zh_CN.UTF-8
export LANG=zh_CN.UTF-8
Warning: CPU doesn't support 32-bit instructions, some software may not work.
这是因为你的设备是 64 位 CPU(ARM64),而某些软件包依赖 32 位库。
解决方法:忽略警告 - 大部分软件在 64 位模式下仍能正常工作如果某些软件确实需要 32 位支持,可以尝试:dpkg --add-architecture armhf