How to use the apt-get speed-up method with Ubuntu as the domestic software source
This article mainly introduces how to use the domestic software source for Ubuntu apt-get speed-up method, the article introduces in great detail, has a certain reference value, interested friends must read it!
By default, apt-get connects to http://us.archive.ubuntu.com/. If you look at the domain name, you can see that this is an American server. Of course, it is very slow to connect to the servers in the United States in our great Chinese LAN.
This software source can be modified through / etc/apt/sources.list, and the good software source found can be put into this file to install the software from the new software source. I used to use it before I looked everywhere, but today I found that it is not so troublesome to replace us.archive with cn.archive to use Chinese software sources.
The replacement method for using vi:
Vi / etc/apt/sources.list
After opening, enter the following commands in turn:
:% s/us.archive/cn.archive/g
Enter
: wq
Enter (exit vi)
Then type apt-get update to update the configuration file you just modified. It will be very fast to install the software later.
The source of http://cn.archive.ubuntu.com/ is maintained by SOHU. Sohu has another domain name (mirrors.sohu.com). In addition, NetEase also provides mirroring service (mirrors.163.com). The modification method is the same, but it is not as easy as this to change us to cn directly.
The above is all the contents of this article entitled "how to use domestic software sources to speed up apt-get for Ubuntu". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!