"Essays" Use Apt-spy to update your Debian source

Source: Internet
Author: User

Debian is the most convenient, of course, with the Apt-get intsall command to install the software. Use Apt-get what is most important, naturally is the source of download.

Debian version comes with the source is certainly not the fastest, considering the location of the individual, speed, and so on, the first thing to do after downloading the Debian installation is to change a faster source.

The general update source is found online, and then changes the contents of the/etc/apt/source.list file. 163 of the source speed has been good, I have been using, but when a change in the environment, I found that the speed is significantly less than before, then how to find a faster source?

Debian provides the Apt-spy command to find the fastest source for you.

At first, Debian does not have the Apt-spy command installed by default. So the first step is to install the Apt-spy command.

Apt-get Install Apt-spy

Then use the Apt-spy command to find the source:

apt-spy-d stable-a asia-t 5

which

"-D" is used to specify the release version. Including unstable stable oldstable, etc.

"-a" is used to specify the area. For example: Asia, Europe, North-america, etc., if you want to test all servers, you can use all.

"-T" to specify the connection time-out threshold, the threshold value in seconds, setting a smaller threshold can effectively improve the test speed, ignoring the slow server.

Here's what you'll see:

  

If the configured connection time is exceeded, the connection rate is automatically skipped and if the connection is successful.

When the speed is complete, the source found will be placed in the/etc/apt/sources.list.d/apt-spy.list, you only need to copy the contents of Apt-spy.list to Source.list. Do not finish backing up the original Source.list file.

Last Apt-get Update

Complete!

"Essays" Use Apt-spy to update your Debian source

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.