termux 与 Anlinux换源

一. termux换源

新版termux采用

1
$ termux-change-repo

老版本termux采用

1
2
3
$ termux-change-repo
$ termux-chroot
$ vim /etc/apt/sources.list

deb https://termux.org/packages/ stable main
改为:

deb https://termux.org/packages/ stable main

deb [arch=all,aarch64] https://mirrors.tuna.tsinghua.edu.cn/termux stable main

二. termu下的ubutnu换源,可是arm64版的linux哦

1
2
$ ./start-ubuntu.sh
root@localhost:~# vim /etc/apt/sources.list

deb http://ports.ubuntu.com/ubuntu-ports bionic main restricted universe multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports bionic main restricted universe multiverse
改为:

deb http://ports.ubuntu.com/ubuntu-ports bionic main restricted universe multiverse

deb-src http://ports.ubuntu.com/ubuntu-ports bionic main restricted universe multiverse

阿里源

deb http://mirrors.aliyun.com/ubuntu-ports bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu-ports bionic main restricted universe multiverse

科大源

deb http://mirrors.ustc.edu.cn/ubuntu-ports bionic main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports bionic main restricted universe multiverse