mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
commit
c0af790de6
|
|
@ -28,10 +28,22 @@ Termux 是运行在 Android 上的 terminal。不需要root,运行于内部存
|
|||
如何使用 Termux 镜像
|
||||
------------------
|
||||
|
||||
使用
|
||||
### 自动替换
|
||||
|
||||
使用如下命令自动替换官方源为 TUNA 镜像源
|
||||
|
||||
``` bash
|
||||
sed -i 's@https://termux.net@https://mirrors.tuna.tsinghua.edu.cn/termux@' $PREFIX/etc/apt/sources.list
|
||||
sed -i 's@^\(deb.*stable main\)$@#\1\ndeb https://mirrors.tuna.tsinghua.edu.cn/termux stable main@' $PREFIX/etc/apt/sources.list
|
||||
pkg up
|
||||
```
|
||||
|
||||
### 手动修改
|
||||
|
||||
编辑 `$PREFIX/etc/apt/sources.list` 修改为如下内容
|
||||
|
||||
```
|
||||
# The termux repository mirror from TUNA:
|
||||
deb https://mirrors.tuna.tsinghua.edu.cn/termux stable main
|
||||
```
|
||||
|
||||
请使用内置或安装在 Termux 里的文本编辑器,例如 `vi` / `vim` / `nano` 等,**不要使用 RE 管理器等其他具有 ROOT 权限的外部 APP** 来修改 Termux 的文件
|
||||
Loading…
Reference in New Issue