【树莓派】raspbian下载软件源设置

树莓派官网镜像文件的下载源默认是外网的是一个下载源,导致下载心仪的软件时候网速受限,由此在这里记录一下各个软件源的网址与设置方式
PS:一共需要更改2个地方。

目录

一、 素材准备
二、 具体操作

素材准备

1.树莓派
2.鼠标键盘小手手⁄(⁄ ⁄•⁄ω⁄•⁄ ⁄)⁄
PS:本人的树莓派是Stretch,所以下面的图示也仅仅是Stretch的图示。

具体操作

1、树莓派基金会提供的源

/etc/apt/sources.list.d/raspi.list里的软件源是树莓派基金会单独(非Raspbian开发者)提供/维护的软件源,主要包括raspi-config、minecraftpi、树莓派桌面环境、内核固件驱动等少量软件。
终端命令:

sudo nano /etc/apt/sources.list.d/raspi.lis

Stretch(三选其一即可)

中科大
deb https://mirrors.ustc.edu.cn/archive.raspberrypi.org/ stretch main ui
清华
deb https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ stretch main ui
默认官方源
deb http://archive.raspberrypi.org/debian/ stretch main ui    

Jessie(三选其一即可)

中科大
deb https://mirrors.ustc.edu.cn/archive.raspberrypi.org/ jessie main ui
清华
deb https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ jessie main ui
默认官方源
deb http://archive.raspberrypi.org/debian/ jessie main ui       

树莓派设置完之后图示:
在这里插入图片描述
PS:这里我的树莓派多了一行:

deb-src https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ stretch main ui

原因是因为这行代码是默认把软件的源码一并下载到树莓派当中,喜欢的小伙伴可以添加上去,如果不添加也是没有所谓的。
PSS:下面的同理

2、Raspbian源

raspbian这个源是由独立开发者维护的,与树莓派基金会并无直接联系。国内源比较多,选择一个与自己延迟最小或连接速度最好或物理距离最短的即可。
终端命令:

sudo nano /etc/apt/sources.list

Stretch(选择其中一个即可,注意大小写及目录)

中科大
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi 
清华
deb https://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
大连东软
deb http://mirrors.neusoft.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
重庆大学
deb http://mirrors.cqu.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
浙江大学
deb http://mirrors.zju.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
阿里云
deb http://mirrors.aliyun.com/raspbian/raspbian/ stretch main contrib non-free rpi 
搜狐
deb http://mirrors.sohu.com/raspbian/raspbian/ stretch main contrib non-free rpi 
元智大学(中国台湾)
deb http://ftp.cse.yzu.edu.tw/Linux/raspbian/raspbian/ stretch main contrib non-free rpi 
新加坡国立大学
deb http://mirror.nus.edu.sg/raspbian/raspbian/ stretch main contrib non-free rpi
北陆先端科学技术大学院大学(日本知名镜像站,日常出口带宽2g)
deb http://ftp.jaist.ac.jp/raspbian/ stretch main contrib non-free rpi
牛津大学
deb http://mirror.ox.ac.uk/sites/archive.raspbian.org/archive/raspbian/  stretch main contrib non-free rpi
美国Berkely大学
deb http://mirrors.ocf.berkeley.edu/raspbian/raspbian/ stretch main contrib non-free rpi
美国俄克拉荷马大学
deb http://reflection.oss.ou.edu/raspbian/raspbian/ stretch main contrib non-free rpi
南非知名软件源
deb http://mirror.liquidtelecom.com/raspbian/raspbian/ stretch main contrib non-free rpi 
默认源(带重定向by mirrorbrain)
deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi
官方源
deb https://archive.raspbian.org/raspbian/ stretch main contrib non-free rpi

Jessie(选择其中一个即可,注意大小写及目录)

扫描二维码关注公众号,回复: 5099061 查看本文章
中科大
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ jessie main contrib non-free rpi 
清华
deb https://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ jessie main contrib non-free rpi
大连东软
deb http://mirrors.neusoft.edu.cn/raspbian/raspbian/ jessie main contrib non-free rpi
重庆大学
deb http://mirrors.cqu.edu.cn/raspbian/raspbian/ jessie main contrib non-free rpi
浙江大学
deb http://mirrors.zju.edu.cn/raspbian/raspbian/ jessie main contrib non-free rpi
阿里云
deb http://mirrors.aliyun.com/raspbian/raspbian/ jessie main contrib non-free rpi 
搜狐
deb http://mirrors.sohu.com/raspbian/raspbian/ jessie main contrib non-free rpi 
元智大学(中国台湾)
deb http://ftp.cse.yzu.edu.tw/Linux/raspbian/raspbian/ jessie main contrib non-free rpi 
新加坡国立大学
deb http://mirror.nus.edu.sg/raspbian/raspbian/ jessie main contrib non-free rpi
北陆先端科学技术大学院大学(日本知名镜像站,日常出口带宽2g)
deb http://ftp.jaist.ac.jp/raspbian/ jessie main contrib non-free rpi 
牛津大学
deb http://mirror.ox.ac.uk/sites/archive.raspbian.org/archive/raspbian/  jessie main contrib non-free rpi 
美国Berkely大学
deb http://mirrors.ocf.berkeley.edu/raspbian/raspbian/ jessie main contrib non-free rpi
美国俄克拉荷马大学
deb http://reflection.oss.ou.edu/raspbian/raspbian/ jessie main contrib non-free rpi
南非知名软件源
deb http://mirror.liquidtelecom.com/raspbian/raspbian/ jessie main contrib non-free rpi 
默认源(带重定向by mirrorbrain)
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
官方源
deb https://archive.raspbian.org/raspbian/ jessie main contrib no![在这里插入图片描述](https://img-blog.csdnimg.cn/20190128090933185.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80MjgxMDg0NA==,size_16,color_FFFFFF,t_70)n-free rpi

树莓派设置完之后图示:
在这里插入图片描述
PS:这里我的树莓派多了一行:(解释在上一步)

deb-src http://mirror.tuna.tsinghua.edu.cn/raspberrypi/ stretch main ui
3、更新本地软件索引

终端命令:

sudo apt-get update

完结撒花✿✿ヽ(°▽°)ノ✿

参考资料:https://www.jianshu.com/p/67b9e6ebf8a0

猜你喜欢

转载自blog.csdn.net/weixin_42810844/article/details/86672293