欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

【raspberry】树莓派raspbian系统换源

程序员文章站 2022-06-01 14:49:47
...
//更改apt源
$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
$ sudo echo "" > /etc/apt/sources.list
$ 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 apt-get update		//更新软件包索引
$ sudo apt-get upgrade		//更新软件包(可选)
//更改系统源
$ sudo cp /etc/apt/sources.list.d/raspi.list /etc/apt/sources.list.d/raspi.list.bak
$ sudo echo "" > /etc/apt/sources.list.d/raspi.list 
$ sudo nano /etc/apt/sources.list.d/raspi.list		//编辑raspi.list添加如下内容

deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/ buster main ui
相关标签: 树莓派 树莓派