树莓派官方系统换源

树莓派3B+换源

更改/etc/apt/sources.list和/etc/apt/sources.list.d/raspi.list里面的源

1、先备份原来数据

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo cp /etc/apt/sources.list.d/raspi.list /etc/apt/sources.list.d/raspi.list.bak

2、修改软件更新源,选择中科大的源,删除或修改或注释掉原来的

sudo nano /etc/apt/sources.list
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi

3、修改系统更新源

sudo nano /etc/apt/sources.list.d/raspi.list
deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ stretch main ui

4、更新软件源列表、软件版本和内核版本

sudo apt-get update ; sudo apt-get upgrade ; sudo apt-get dist-upgrade ; sudo rpi-update

你可能感兴趣的:(树莓派)