树莓派Buster系统切换阿里云源https

sudo vim /etc/apt/sources.list

删掉之前的所有内容,写上如下内容:

deb https://mirrors.aliyun.com/raspbian/raspbian/ buster main non-free contrib
deb-src https://mirrors.aliyun.com/raspbian/raspbian/ buster main non-free contrib

sudo vim  /etc/apt/sources.list.d/raspi.list

删掉之前的所有内容,写上如下内容:

deb https://mirrors.aliyun.com/raspbian/raspbian/ buster main
deb-src https://mirrors.aliyun.com/raspbian/raspbian/ buster main

然后执行命令生效:

sudo apt-get update && apt-get upgrade -y

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注