Build local Ubuntu14.04 Source

Source: Internet
Author: User

For the company's network restrictions, you can build a local Ubuntu source within the LAN.

1, modify the source configuration, into the Sohu source (the default Ubuntu source is not as fast as some domestic source speed)

Vi/etc/apt/source.list

Deb Trusty main restricted universe Multiverse Deb Trusty-security main restricted universe multiverse Deb Trusty-updates Main restricted Universe Multiverse Deb trusty-proposed main restricted universe Multiverse Deb Trusty-backports main rest Ricted Universe Multiverse

2. Installing Apt-mirror Tools

Apt-get install-y Apt-mirror

3. Configuring the Apt-mirror tool

Vi/etc/apt/mirrors.list

Only 64 bits of binary files are downloaded here

Set Nthreads 20set _tilde 0deb trusty main restricted universe multiversedeb trusty-security main restricted universe mult Iversedeb trusty-updates main restricted universe multiversedeb trusty-proposed main restricted universe Multiversedeb tr Usty-backports main restricted universe Multiverseclean Http://mirrors.sohu.com/ubuntu

4, start the download, speed depends on the Internet (about 75G)

Apt-mirror

5. as a native source

Source path in /var/spool/apt-mirror/mirror/mirrors.sohu.com/ubuntu

VI /etc/apt/sources.list

Deb Trusty main restricted universe Multiverse Deb Trusty-security main restricted universe multiverse Deb Trusty-updates Main restricted Universe Multiverse Deb trusty-proposed main restricted universe Multiverse Deb Trusty-backports main rest Ricted Universe Multiverse

6, as a local area network source

Installing Apache2

Apt-get Install Apache2

Link the mirror directory to the root directory of the apache2 (/var/www/html/)

ln-s /var/spool/apt-mirror/mirror/mirrors.sohu.com/ubuntu /var/www/html/ubuntu

7, modify the LAN Ubuntu internal source configuration for the host IP

VI /etc/apt/sources.list

Deb Trusty main restricted universe Multiverse Deb Trusty-security main restricted universe multiverse Deb Trusty-updates Main restricted Universe Multiverse Deb trusty-proposed main restricted universe Multiverse Deb Trusty-backports main rest Ricted Universe Multiverse

This article from "Broken Million book" blog, declined reprint!

Build local Ubuntu14.04 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.