Termux換源
圖形化界面修改
termux-change-repo
在圖形界面引導下,使用自帶方向鍵可上下移動。
第一步使用空格選擇需要更換的倉庫,之后在第二步選擇 TUNA/BFSU 鏡像源。確認無誤后回車,鏡像源會自動完成更換。
命令行修改
使用如下命令行替換官方源為 TUNA 鏡像源
sed -i 's@^\(deb.*stable main\)$@#\1\ndeb https://mirrors.tuna.tsinghua.edu.cn/termux/apt/termux-main stable main@' $PREFIX/etc/apt/sources.list
apt update && apt upgrade

手動修改
編輯 $PREFIX/etc/apt/sources.list
修改為如下內容
# The termux repository mirror from TUNA:
deb https://mirrors.tuna.tsinghua.edu.cn/termux/apt/termux-main stable main
請使用內置或安裝在 Termux 里的文本編輯器,例如 vi
/ vim
/ nano
等,不要使用 RE 管理器等其他具有 ROOT 權限的外部 APP 來修改 Termux 的文件
社區(qū)源
鏡像站還提供了如下社區(qū)維護的源,如需使用請自行添加:
https://mirrors.tuna.tsinghua.edu.cn/termux/apt/termux-x11
https://mirrors.tuna.tsinghua.edu.cn/termux/apt/termux-root
警告
鏡像僅適用于 Android 7.0 (API 24) 及以上版本,舊版本系統(tǒng)使用本鏡像可能導致程序錯誤。
標簽:Termux