Change the domestic image source for raspberry pie

Before modifying, back up the configuration file.

cp /etc/apt/sources.list

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

Modify/etc/opt/sources.list or modify the original file directly to comment out all the original configurations (use # to comment).

$ sudo nano /etc/apt/sources.list

use # Comment out the content of the original document and replace it with the following:

#Kedayuan

deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi

deb-src http://mirrors.ustc.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi

Edit with administrator privileges (via sudo) /etc/apt/sources.list.d/raspi.list File. Reference command behavior:

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

use # Comment out the content of the original document and replace it with the following:

#Kedayuan

deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ stretch main ui

deb-src http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ stretch main ui

 

In addition, some domestic image addresses are provided:

University of Science and Technology of China
Raspbian  http://mirrors.ustc.edu.cn/raspbian/raspbian/

Alibaba Cloud
Raspbian  http://mirrors.aliyun.com/raspbian/raspbian/

Tsinghua University
Raspbian  http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/

Huazhong University of Science and Technology
Raspbian  http://mirrors.hustunique.com/raspbian/raspbian/
Arch Linux ARM  http://mirrors.hustunique.com/archlinuxarm/

South China Agricultural University (South China user)
Raspbian  http://mirrors.scau.edu.cn/raspbian/

Dalian Neusoft Information Institute Source (northern users)
Raspbian  http://mirrors.neusoft.edu.cn/raspbian/raspbian/

Chongqing University Source (Midwest users)
Raspbian  http://mirrors.cqu.edu.cn/Raspbian/raspbian/

Sun Yat-sen University Jumped to University of Science and Technology of China
Raspbian  http://mirror.sysu.edu.cn/raspbian/raspbian/

National University of Singapore
Raspbian  http://mirror.nus.edu.sg/raspbian/raspbian

Oxford
Raspbian  http://mirror.ox.ac.uk/sites/archive.raspbian.org/archive/raspbian/

KAIST University, Korea
Raspbian  http://ftp.kaist.ac.kr/raspbian/raspbian/

 

be careful: At the end of the web address raspbian It is necessary to repeat twice. Because Raspbian's warehouse contains other codes besides APT software source. The APT software source is not in the root directory of the warehouse, but in the raspbian/ Subdirectory.

After editing the mirror station, use the sudo apt-get update Command, update the software source list, and check whether your edits are correct.

use HTTPS It can effectively avoid cache hijacking by domestic operators, but it needs to be installed in advance apt-transport-https

course

Raspberry pie to build TensorFlow

2018-5-26 8:52:45

course

Summary of software installation and uninstallation commands on Raspberry Pie

2018-5-26 9:23:02

0 replies A Author M administrators
    There is no discussion yet. Tell me your opinion
search