切换ubuntu apt-source 到国内镜像源
# 使用默认国内源 (aliyun)
curl -sSL https://github.com/cao7113/capt/raw/master/install.sh | bash
# 使用指定镜像源 (依赖share中的缓存文件存在)
curl -sSL https://github.com/cao7113/capt/raw/master/install.sh | bash -s aliyun
备份了原来的文件,所以在/et/apt/中将备份文件恢复即可 todo 通过脚本自动切回!
man sources.list https://help.ubuntu.com/community/Repositories/CommandLine#what https://wiki.debian.org/SourcesList 注意:修改后要apt-get update