作者 adminz 发布于 2020-01-22 修改于

树莓派

 

raspbian-buster

更改apt软件源

http://mirrors.ustc.edu.cn/help/raspbian.html

//更改apt源
$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
$ sudo nano /etc/apt/sources.list

//编辑sources.list,用#注释原来的内容,添加如下内容

deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi
#deb-src http://mirrors.ustc.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi

 更改系统源

//更改系统源
$ sudo cp /etc/apt/sources.list.d/raspi.list /etc/apt/sources.list.d/raspi.list.bak
$ sudo nano /etc/apt/sources.list.d/raspi.list

//编辑raspi.list,用#注释原来的内容,添加如下内容

deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ buster main ui
#deb-src http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ buster main ui

 

更新软件包索引

sudo apt-get update

出现错误,由于没有公钥,无法验证下列签名: NO_PUBKEY 3D5919B448457EE0

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3D5919B448457EE0   #改成自己报错的公钥

再次运行 sudo apt-get update

出错:

更换阿里源

修改 /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

修改 /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 -y

 

失败,两个源都不能用

 

安装 Scratch3

https://tech.iotcomeon.com/2019/08/tech/develop/1646/