给香蕉派的树莓镜像换国内源
近几天也不知怎么啦,树莓源很不稳定,update一下都要几个小时,实数无奈,换国内源吧。
首先备份,这是一个好习惯
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
然后就可以添加新的源了,换成阿里云的
deb http://mirrors.aliyun.com/raspbian/raspbian/ jessie main contrib non-free rpi
就这么简单,然后
sudo apt-get update
发现一个测速工具,还没有试
https://github.com/martin68/apt-smart
20.04 LTS的阿里源
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
sudo apt update
秒开