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-mark hold raspberrypi-bootloader //锁住内核和驱动
sudo apt-get update
sudo apt-get upgrade -y