树莓派更换阿里云源

sudo nano /etc/apt/sources.list

将原有内容用#注释掉
添加:

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

然后编辑:

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

将原有内容用#注释掉
添加:

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

最后更新

sudo apt-get update
sudo apt-get upgrade

你可能感兴趣的:(树莓派更换阿里云源)