termux初次使用遇到的问题

1.vim使用命令esc进入命令模式,:q没反应

使用ctrl+z退出

2.修改镜像

使用

apt edit-sources

如果提示

$ 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 位

猜你喜欢

转载自blog.csdn.net/u012106529/article/details/82806899