文件位置:/etc/apt/sources.list
、/etc/apt/sources.list.d/armbian.list
备份配置文件cp -a /etc/apt/sources.list /etc/apt/sources.list.bak
修改sources.list
文件更换源
执行apt-get install apt-transport-https ca-certificates
安装https源,之后再执行apt-get update更新索引
原版自带
deb http://httpredir.debian.org/debian buster main contrib non-free
deb http://httpredir.debian.org/debian buster-updates main contrib non-free
deb http://httpredir.debian.org/debian buster-backports main contrib non-free
deb http://security.debian.org/ buster/updates main contrib non-free
Sh
复制
中科大
deb http://mirrors.ustc.edu.cn/debian stretch main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stretch-updates main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stretch-backports main contrib non-free
deb http://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free
Sh
复制
清华大学
deb https://mirrors.tuna.tsinghua.edu.cn/debian stretch main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian stretch-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian stretch-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ stretch/updates main contrib non-free
Sh
复制
阿里云
deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib
deb http://mirrors.aliyun.com/debian-security stretch/updates main
deb-src http://mirrors.aliyun.com/debian-security stretch/updates main
deb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
Sh
复制
华为
deb https://repo.huaweicloud.com/debian stretch main contrib non-free
deb https://repo.huaweicloud.com/debian stretch-updates main contrib non-free
deb https://repo.huaweicloud.com/debian stretch-backports main contrib non-free
deb https://repo.huaweicloud.com/debian-security/ stretch/updates main contrib non-free
Sh
复制
转自感谢:https://www.iyuu.cn/archives/440/