In order to improve the software installation, upgrade the speed, we need to send raspberry or other linux systems Software Park, into a domestic mirror address (this example uses USTC mirror source).
1, to distinguish the current system Codename
1 lsb_release -c
Note: versions: / jessie / wheezy / squeeze / stretch / buster
1 stretch
2, modify /etc/apt/sources.list, after which the contents of the comment, in the following was added (available modified nano, vim, etc. editor):
1 deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi 2 deb-src http://mirrors.ustc.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
Or at the command line:
1 sudo sed -i 's#://mirrordirector.raspbian.org#s://mirrors.ustc.edu.cn/raspbian#g' /etc/apt/sources.list 2 sudo sed -i 's#://archive.raspberrypi.org/debian#s://mirrors.ustc.edu.cn/archive.raspberrypi.org#g' /etc/apt/sources.list.d/raspi.lis
3, modify /etc/apt/sources.list.d/raspi.list, after which the contents of the comment, add the following:
1 deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/ stretch main ui 2 deb-src http://mirrors.ustc.edu.cn/archive.raspberrypi.org/ stretch main ui
4, check for an upgrade installation package:
1 sudo apt-get update
5, the installation package update:
1 sudo apt-get -y upgrade