Ali Open Source Mirror provides a Raspbian package image, domestic users can choose to use the Ari as an update source. The latest Jessie version can refer to this article.
Specific approach
Before you modify, it is a good idea to back up the original configuration file. For example, use the following command to copy two source configuration files to the home directory.
Cp/etc/apt/sources.list ~
Cp/etc/apt/sources.list.d/raspi.list ~
or modify it directly on the basis of the original configuration file, but comment out all the original configuration (using the # Annotation).
Modify Sources.list
Updated/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.aliyun.com/raspbian/raspbian/jessie main contrib Non-free RPI
The actual modification is to replace the mirrordirector.raspbian.org with the mirrors.aliyun.com/raspbian/.
Modify Raspi.list
Updated/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.aliyun.com/debian/jessie main UI
The actual modification is to replace the archive.raspberrypi.org with the mirrors.aliyun.com.
Update
After you have replaced the software source, you need to update
sudo apt-get update
More mirror sources
#大连东软信息学院 (Northern users)
#deb http://mirrors.neusoft.edu.cn/raspbian/raspbian/wheezy Main contrib non-free RPI
#deb-src http://mirrors.neusoft.edu.cn/raspbian/raspbian/wheezy main contrib non-free RPI
#中国科学技术大学
#deb http://mirrors.ustc.edu.cn/raspbian/raspbian/wheezy Main contrib non-free RPI
#deb-src http://mirrors.ustc.edu.cn/raspbian/raspbian/wheezy main contrib non-free RPI
#清华大学
#deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/wheezy Main contrib non-free RPI
#deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/wheezy main contrib non-free RPI
#重庆大学 (Midwest users)
#deb http://mirrors.cqu.edu.cn/raspbian/raspbian/wheezy Main contrib non-free RPI
#deb-src http://mirrors.cqu.edu.cn/raspbian/raspbian/wheezy main contrib non-free RPI
#前面几个都是教育网的
#搜狐
#deb http://mirrors.sohu.com/raspbian/raspbian/wheezy Main contrib non-free RPI
#deb-src http://mirrors.sohu.com/raspbian/raspbian/wheezy main contrib non-free RPI