Ubuntu domestic switching mirror source, to enhance the speed of apt-get

Verbatim https://www.dazhuanlan.com/2019/08/25/5d6228d8dd6fb/


Find a suitable system image source configuration

Bloggers used here is a mirror source Tsinghua University, you can enter mirroring the official website of Tsinghua University , to choose their own system, copy the appropriate configuration text.

Modify the configuration file from the command line

First, enter /etc/aptthe directory, in order to prevent novice mistakes, the original document to configure a backup, and then opened with vim or gedit tools sources.listdocument, the original contents removed, replaced with a new configuration content. All commands are as follows:

1
2
3
cd /etc/apt
sudo cp sources.list sources.list.old
sudo vim sources.list

Update source, validate the configuration

1
sudo apt-get update

Then use apt-getthe time will find the speed has been significantly improved.

Guess you like

Origin www.cnblogs.com/petewell/p/11408016.html