Reposted: Select the best mirror release site to join the Source.list file: NetSelect, NetSelect-Apt

xiaoxiao2021-03-06  38

A new user often asks questions: "Which debian mirror release site will join a source.list file?". There are many ways to choose the mirror release site, experts may write a script to test the ping time of different sites, but there is a ready-made program to help you: NetSelect. Install NetSelect: # apt-get install netselect without parameters running it when it is running it. When running it, add a mirror host list with space separation, which will return a host name in a score and a list. This score is derived by evaluating ping time and hops number (a number of forwarding hosts through the forwarding host through the target host), which is expected to be counter-specific than the mirror site (the smaller the value). The returned host name is the lowest score in the list (see the list of the host score). See the example: # Netselect ftp.debian.org http.us.debian.org ftp.at.debian.org download.unesp.br ftp.debian.org.br 365 ftp.debian.org.br # it represented In all hosts listed in NetSelect, ftp.debian.org.br is the fastest hosting host, which scores 365. (Note !! This is the test result on my computer, the different network node network speed will be great, so this score does not necessarily apply to other computers) Now the fastest connection speed of the NetSelect is the fastest mirror site to add / ETC / APT / SOURCES.LIST file (see /etc/apt/sources.list file, section 2.1) Enter package management, chapter 3. Note: Mirror site list is usually included in the file http://www.debian.org/ Mirror / mirrors_full. Starting from version 0.3, the NetSelect package contains the NetSelect-Apt script that automatically completes the above operation. Simply use the publisher tree as a parameter (default as a stable), the Sources.list file generates the fastest MAIN and NON-US mirror site list and saves in the current directory. The following example generates a Sources.List # ls Sources.list on the list of stable releases mirror sites, Sources.list: file de Directory Not Found # netselect-apt stable (...) # ls -l sources.list source. List # Remember: Sources.list is generated in the current directory, you must move it to the / etc / apt directory. Directory.

转载请注明原文地址:https://www.9cbs.com/read-55651.html

New Post(0)