Merge pull request #126 from YadominJinta/master

简化Termux使用帮助
This commit is contained in:
Yuxiang Zhang 2019-05-12 23:38:41 +08:00 committed by GitHub
commit 92372c99f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,35 +30,8 @@ Termux 是运行在 Android 上的 terminal。不需要root运行于内部存
使用
```
apt edit-sources
``` bash
sed -i 's@https://termux.net@https://mirrors.tuna.tsinghua.edu.cn/termux@' $PREFIX/etc/apt/sources.list
pkg up
```
如果提示
```
$ apt edit-sources E: Sub-process editor returned an error code (100)
```
则需要设置一下`$EDITOR`:
```
export EDITOR=vi
apt edit-sources
```
以 32位 ARM 平台为例,打开你常用的文本编辑器,替换成如下内容
```
# The termux repository mirror from TUNA:
deb [arch=all,arm] https://mirrors.tuna.tsinghua.edu.cn/termux stable main
```
或通过 http 访问(不建议):
```
# The termux repository mirror from TUNA:
deb [arch=all,arm] http://mirrors.tuna.tsinghua.edu.cn/termux stable main
```
如果您用的是 64位 ARM 平台,请用 aarch64 替换 arm ;如果是 Intel 平台,则用 i686 / x86_64 分别表示 32位 和 64 位。