树莓派配置国内源


在配置树莓派的时候,使用官方源有时下载速度特别慢,因此需要换成国内源。我尝试换过中科大源和清华园。总体感觉比较玄学,官方源,科大源,清华源在下载的时候都或多或少的存在一个问题,在此记录一下树莓派的配置国内源过程,下次稍微少点麻烦。

1.需要用到的地址

科大镜像网站:http://mirrors.ustc.edu.cn/help/raspbian.html

清华镜像网站:https://mirrors.tuna.tsinghua.edu.cn/help/raspbian/

2.配置国内源:

sudo nano /etc/apt/sources.list              #打开文件

将文件内容用以下内容替换,换上科大源

deb https://mirrors.ustc.edu.cn/debian/ buster main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian buster main contrib non-free
deb https://mirrors.ustc.edu.cn/debian/ buster-updates main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian buster-updates main contrib non-free
deb https://mirrors.ustc.edu.cn/debian-security buster/updates main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian-security/ buster/updates main non-free contrib

#将文件内容用以下内容替换,换上清华源(针对aarch64用户)
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free

更新

 sudo apt-get update
 sudo apt-get upgrade                        #更新


扫描二维码,在手机上阅读

HTML 链接标签的target属性

修复树莓派鼠标移动缓慢迟滞问题

评 论
更换验证码