2

Raspberry Pi 使用科大镜像源

 2 years ago
source link: https://xusiwei.github.io/post/2016/raspberry-pi-use-ustc-mirror/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Raspberry Pi 使用科大镜像源

2016年3月26日

科大开源镜像站提供了raspbian的软件包镜像,国内的用户可以选择改用科大镜像站作为更新源。

科大镜像站官方已经提供了一份帮助文档,用于指导用户如何使用科大镜像更新raspbian。 但这份文档是基于 wheezy 的,最新的jessie版可以参考本文。

修改之前,最好先备份原始的配置文件。例如,使用如下命令将两个源配置文件拷贝到HOME目录。

cp /etc/apt/sources.list ~
cp /etc/apt/sources.d/raspi.list ~

或者直接在原来配置文件的基础上修改,但将原有的配置全部注释掉(使用#注释)。

修改 source.list

更新后的/etc/apt/sources.list

#deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi

# use ustc mirror:
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ jessie main contrib non-free rpi

实际修改是,将mirrordirector.raspbian.org替换为mirrors.ustc.edu.cn/raspbian/

修改 raspi.list

更新后的/etc/apt/raspi.list

#deb http://archive.raspberrypi.org/debian/ jessie main ui
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.org/debian/ jessie main ui

# use ustc mirror:
deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ jessie main ui

实际修改是,将archive.raspberrypi.org替换为mirrors.ustc.edu.cn/archive.raspberrypi.org


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK