卓泰科技 发表于 2016-12-21 10:53:52

【Joytag 香蕉派】BananaPi /RaspberryPi Raspbian系统使用中国软件源

https://img1.steemit.com/0x0/http://www-banana--pi-org-cn-static.smartgslb.com/images/bpi-images/M3/m32.jpg
使用过BananaPi /RaspberryPiRaspbian系统的都有这样的体验,
就是更新系统以及安装软件的时候特别的慢。
为何?
因为Raspbian 系统内置的软件源在国外
更新点东西,跨越千山万水,不慢才怪。
那有啥办法加速呢,最简单的做法莫过于使用国内的镜像软件源喽。

官网的镜像列表

http://www.raspbian.org/RaspbianMirrors

国内镜像列表

我把其中国内的部分抓出来,贴在这里方便大家


MIRRORDEB/DEB-SRC ADDRESS
Tsinghua University Network Administratorshttp://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/
Dalian Neusoft University of Informationhttp://mirrors.neusoft.edu.cn/raspbian/raspbian
Cohesion Network Security Studio (CNSS)http://raspbian.cnssuestc.org/raspbian/ rsync://raspbian.cnssuestc.org/raspbian
Unique Studio of Huazhong University of Science and Technology(http|rsync)://mirrors.hustunique.com/raspbian/raspbian
University of Science and Technology of China(http|rsync)://mirrors.ustc.edu.cn/raspbian/raspbian/
SUN YAT-SEN Universityhttp://mirror.sysu.edu.cn/raspbian/
Zhejiang Universityhttp://mirrors.zju.edu.cn/raspbian/raspbian/
Open Source Software Association of Chinese Academy of Scienceshttp://mirrors.opencas.cn/raspbian/raspbian/
Chongqing Universityhttp://mirrors.cqu.edu.cn/Raspbian/raspbian/
官网备注清华大学的: Unreachable as of 15-may-2015
但我发现它还可用呢

如何使用国内的镜像软件源
sudo vi /etc/apt/sources.list


把类似这样的
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi


前边的部分改成你要用的软件源地址即可:
比如我使用neusoft的源,改成下边的样子就行啦
deb http://mirrors.neusoft.edu.cn/raspbian/raspbian jessie main contrib non-free rpi


别忘了
sudo apt-get update
sudo apt-get upgrade

补充说明

本文适用于使用Raspbian系统 的BananaPi /RaspberryPi .
其它使用Raspbian系统的单板机,香橙派之类的应该都可以。
更多详情请参考:http://www.raspbian.org/RaspbianMirrors
页: [1]
查看完整版本: 【Joytag 香蕉派】BananaPi /RaspberryPi Raspbian系统使用中国软件源