官方历史仓库:https://archive.org/details/termux-repositories-legacy
对于Android5.0 6.0使用旧版Termux的一个解决方案,所有东西均可在官方历史仓库中找到。
由于Github的限制,此仓库的文件不是完整的所有文件,排除的详细文件请查看.gitignore。
如果你是本地搭建,可在官方历史仓库中下载termux-repositories-legacy-24.12.2019.tar文件并解压所缺失的文件即可。
在TermuxApp中进行以下步骤
sources.list
mv $PREFIX/etc/apt/sources.list $PREFIX/etc/apt/sources.list.bakgame.list
mv $PREFIX/etc/apt/sources.list.d/game.list $PREFIX/etc/apt/sources.list.d/game.list.bakscience.list
mv $PREFIX/etc/apt/sources.list.d/science.list $PREFIX/etc/apt/sources.list.d/science.list.bakecho "deb https://bzi-han.github.io/TermuxLegacy/termux-repositories-legacy/webroot/termux-packages stable main" > $PREFIX/etc/apt/sources.list.d/termux-legacy-main.listecho "deb https://bzi-han.github.io/TermuxLegacy/termux-repositories-legacy/webroot/game-packages-21 games stable" > $PREFIX/etc/apt/sources.list.d/termux-legacy-game.listecho "deb https://bzi-han.github.io/TermuxLegacy/termux-repositories-legacy/webroot/science-packages-21 science stable" > $PREFIX/etc/apt/sources.list.d/termux-legacy-science.listecho "deb https://bzi-han.github.io/TermuxLegacy/termux-repositories-legacy/webroot/termux-root-packages-21 root stable" > $PREFIX/etc/apt/sources.list.d/termux-legacy-root.listapt-get update && apt-get upgrade -y如果你有办法把termux-usage-legacy-repositories.sh移动到/data/data/com.termux/files/home或者已经有wget工具的情况下可以选择以下步骤(以wget为例)
/data/data/com.termux/files/home
wget https://bzi-han.github.io/TermuxLegacy/termux-usage-legacy-repositories.shchmod +x ./termux-usage-legacy-repositories.sh./termux-usage-legacy-repositories.shapt-get update && apt-get upgrade -y将此仓库clone或者下载到本地,使用任意的http服务器以仓库的目录为根目录启动服务即可。
以python3为例,在仓库目录执行python -m http.server即可启动一个简易的http服务器,服务地址一般为http://ip:8000。
服务启动好后按照上面的步骤进行即可,但需将https://bzi-han.github.io/TermuxLegacy替换成你的服务地址,例如:http://192.168.1.1:8000。
如果你使用的是termux-usage-legacy-repositories.sh脚本,则需要将baseUrl的值改为你的服务地址,然后按照上面的步骤进行,例如:sed -i 's/https:\/\/bzi-han.github.io\/TermuxLegacy/http:\/\/192.168.1.1:8000/g' ./termux-usage-legacy-repositories.sh
termux-v0.79-offline-bootstraps-noroot.apk属于直接安装就能使用的修改版,修改内容为虚拟环境的apt配置,将其默认的仓库地址设置为此仓库来实现。
相关的具体内容: