As the Linux system comes with the image source in foreign countries, domestic users download or update software will be slow, sometimes very slow, so some domestic institutions, such as universities, research institutes, in China built Linux image source server for domestic Linux users, and we want to use these sources, You need to change the update source configuration file for your Linux system. Next, describe the procedure for updating the source.
1. First of all, we need to find the domestic mirror source path
I chose the mirror source of Tsinghua University, the link is as follows:
Tsinghua Mirroring Source
Open the link as shown below:Follow the instructions in the figure. You can also search for other mirror sources yourself.
2. Back up the built-in update source configuration file
Open the terminal and switch to the administrator. (Modifying the configuration file requires a high permission. If you do not switch, you can add sudo before each command/etc/aptDirectory, findsources.listFile, backup, as shown below:You can also use the command:cp /etc/apt/sources.list /etc/apt/sources.list.backup, you do not need to switch directories.
3. Modify the sources.list configuration file
Enter the command:gedit sources.listOpen the file, delete all the contents of the file, and paste in the update source path.
After pasting, the picture is as follows:Save and exit.
4. Update the source
Enter the following command: apt update (apt-get update)
Start updating source
Update completeI used 1 minute 1 second, this step depending on the speed of the network, the consumption of time is also different, sometimes very slow, to wait patiently until the “finished”.