Ubuntumirror available source

Source: Internet
Author: User
1: Add the following line to/etc/apt/sources. listdebhttp: // sources ##########

1: Add the following rows to/etc/apt/sources. list
Deb http://apt-mirror.sourceforge.net/apt-mirror/

2: apt-get update

3: apt-get install apt-mirror

4: Modify/etc/apt/mirror. list as needed to add the source closest to you.

############# Config ##################
#
# Set base_path/var/spool/apt-mirror
#
# If you change the base path you must create the directories below with write privlages
#
# Set pai_path $ base_path/mirror
# Set skel_path $ base_path/skel
# Set var_path $ base_path/var
# Set cleanscript $ var_path/clean. sh
# Set defaultarch
Set nthreads 20
Set _ tilde 0
#
############ End config ##############

Deb http://debian.cn99.com/debian/ etch main contrib non-free
Deb-src http://debian.cn99.com/debian/ etch main contrib non-free

Deb http://security.debian.org/etch/updates main contrib non-free
Deb-src http://security.debian.org/etch/updates main contrib non-free

# Deb http://archive.Ubuntu.com/ubuntu hard main restricted universe multiverse
# Deb http://archive.ubuntu.com/ubuntu hard-updates main restricted universe multiverse
# Deb http://archive.ubuntu.com/ubuntu hard-backports main restricted universe multiverse
# Deb http://archive.ubuntu.com/ubuntu hard-security main restricted universe multiverse
# Deb http://archive.ubuntu.com/ubuntu hard-proposed main restricted universe multiverse
#
# Deb-src http://archive.ubuntu.com/ubuntu hard main restricted universe multiverse
# Deb-src http://archive.ubuntu.com/ubuntu hard-updates main restricted universe multiverse
# Deb-src http://archive.ubuntu.com/ubuntu hard-backports main restricted universe multiverse
# Deb-src http://archive.ubuntu.com/ubuntu hard-security main restricted universe multiverse
# Deb-src http://archive.ubuntu.com/ubuntu hard-proposed main restricted universe multiverse

Clean http://debian.cn99.com/debian/

#
# Deb cdrom: [Debian GNU/Linux 4.0 r0 _ Etch _-Official i386 NETINST Binary-1 20070407-]/etch contrib main

5. Obtain the source information
Su apt-mirror-c apt-mirror
An error may be reported:
"
Jumping :~ # Su apt-mirror-c apt-mirror
Downloading 30 index files using 20 threads...
Begin time: Fri Aug 29 11:38:38 2008
[20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]...
End time: Fri Aug 29 11:40:49 2008

Proceed indexes: [Ssh: debian.cn99.com/debian//dists/etch/main/source/sources.gz: No such file or directory
Apt-mirror: can't open index in proceed_index_gz at/usr/bin/apt-mirror line 382.

"
To/var/spool/apt-mirror/skel/labels. If no, run it again.
Su apt-mirror-c apt-mirror
Until there is.

The correct output should be:
Jumping: # su apt-mirror-c apt-mirror
Downloading 30 index files using 20 threads...
Begin time: Fri Aug 29 11:53:32 2008
[20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]...
End time: Fri Aug 29 11:54:27 2008

Proceed indexes: [SSPP]

30.1 GiB will be downloaded into archive.
Downloading 51528 archive files using 20 threads...
Begin time: Fri Aug 29 11:54:33 2008
[20]...

6. Deploy apache and provide it to other users (refer to articles on the Internet)

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.