Apt-spy automatically find and update the fastest Debian software source tutorial

Source: Internet
Author: User
Tags aliyun

April 14, 2016, Aliyun's Debian source hangs. The Aliyun host system that caused WENWU cannot update, and the Web service software cannot be installed. So I tried to modify the Sources.list file. The following is a summary of Wenwu, using the Apt-spy command, to automatically find and update the fastest source of Debian software.

First: Install Apt-spy, command as follows:

Apt-get Install Apt-spy

Second: Move and back up the oldest sources.list file, because this bird will back up sources.list every time. Executing the command multiple times will overwrite the first file.

Mv/etc/apt/sources.list/etc/apt/sources.list.bak

Third: Update the mirrored list file with the following command:

Apt-spy Update

Four: Find Asia's fastest stable version of the image and generate sources.list files, or use the-o parameter to specify the write file

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

The-d parameter represents the required release version, stable on behalf of the stable version, testing on behalf of the beta, unstable is not stable meaning, is the development version. Production server generally choose stable version of it;

-a parameter followed by the region, the people certainly choose Asia;

The-t parameter represents the delay time, and the number 5 represents less than 5ms can be considered ....

Related Article

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.