Raspberry Pi replacement software source
Before using the Raspberry Pi, one important thing is to switch the software source. The software source is the application installation package warehouse of the operating system. Many software will be included in this warehouse. Most of the Raspberry Pi software is through the software source. Download and install in the warehouse.
By default, the source address of the Raspberry Pi software is http://archive.raspbian.org/, located in Europe. Access in the country is very slow, often only a few kilobytes of download per second, so we Before playing Raspberry Pi, it is strongly recommended to replace it with a domestic software source
Software source mirror website
Open the following website http://www.raspbian.org/RaspbianMirrors , slide down to find Asia-China, we can see there are many
I chose the source of Tsinghua http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/
Update software mirror source
To update the software source of the Raspberry Pi, two files need to be modified:
- /etc/apt/sources.list
- /etc/apt/sources.list.d/raspi.list
The nano command is used here, the instructions for using the nano command https://man.linuxde.net/nano
Modify the sources.list file
sudo nano /etc/apt/sources.list
#将清华软源拷贝到文件中
deb http://mirror.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi
deb-src http://mirror.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi
Sources.list modified effect
Modify the raspi.list file
sudo nano /etc/apt/sources.list.d/raspi.list
#将清华软源拷贝到文件中
deb http://mirror.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui
raspi.list modified effect
Restart the Raspberry Pi
After the above steps are completed, execute the following command to restart the Raspberry Pi
sudo reboot
Update software and system
After restarting, you can update the software and system with the following commands
sudo apt-get update
sudo apt-get upgrade