Preface
The Raspberry Pi official has provided an image list: Http://www.raspbian.org/RaspbianMirrors, but because of the server in foreign countries, we install and update the software is always not satisfactory speed, and sometimes a time-out connection caused the installation failure.
So there are some mirror stations, such as Ali Open source image, NetEase open source image, China University of Science and technology open source image, and so on, the purpose of building an open source image is to promote the value of free software, improve the free software community culture, promote free software in the domestic application. Body
We edit the/etc/apt/sources.list file to change our source image source backup source files
sudo cp/etc/apt/sources.list/etc/apt/sources.list.bak #备份为 sources.list.bak Modify source.list file
We recommend using the Nano Editor to modify this file, and it is easier to get started than the VI editor and to be prompted throughout the process. ① Modifying source files for Wheezy (Legacy) Systems
sudo nano/etc/apt/sources.list #编辑sources. list file
Go to the edit screen, delete the original content or use the # comment out the original source, add the source content below
Deb Http://mirrors.aliyun.com/raspbian/raspbian/wheezy main Non-free contrib
DEB-SRC Http://mirrors.aliyun.com/raspbian/raspbian/wheezy main Non-free contrib
Then save the file with Ctrl+o carriage return, ctrl+x exit the editor ② Modify the source file for the Jessie (new) system
sudo nano/etc/apt/sources.list #编辑sources. list file
Enter the edit screen, delete the original content or use the # comment out the original source, add the following source content
Deb/http Mirrors.aliyun.com/raspbian/raspbian/jessie Main contrib non-free RPI
Deb-src Http://mirrors.aliyun.com/raspbian /raspbian/jessie Main contrib non-free RPI
then save the file with Ctrl+o carriage return, ctrl+x exit editor