Quickly build Ubuntu update source server and build ubuntu update

Source: Internet
Author: User

Quickly build Ubuntu update source server and build ubuntu update

In corporate schools, a local Ubuntu source server is often required.

You can set it through the following simple steps.


1. Server Configuration

Here we use a PC with ubuntu as the server.

 

1.1. Install the corresponding software package

$ Sudo apt-get install apache2

$ Sudo apt-get install apt-mirror

 

1.2. Execute apt-mirror

The entire repo is very large. We can make some modifications to mirror. list and select only a part of the software package.

As follows:

Deb http://archive.ubuntu.com/ubuntu precise main restricted universe

Then execute:

$ Sudo apt-mirror

 

1.4. Create the ubuntu directory

$ Cd/var/www

$ Sudo ln-s/var/spool/apt-mirror/skel/archive.ubuntu.com/ubuntu

 

1.5. Restart the http service

$ Sudo service apache2 restart

In this way, the server is configured.

 

2. Client Configuration

Similarly, the client needs to be connected to the server we have configured, and the client needs to be adjusted accordingly.


2.1. Modify/etc/apt/souces. list

Comment out all other repository and append the following two rows:

Deb http: // 192.168.1.2/ubuntu/precise main restricted universe

Deb-src http: // 192.168.1.2/ubuntu/precise main restricted universe

192.168.1.2 is the IP address of the server.


2.2. Update the corresponding information

Sudo apt-get update

 


Which of the following is the ubuntu software source update?

All sources in China work at a high speed. If you are in a school, we recommend that you use the university source.

Why should I select a domestic server for the ubuntu Software Updater?

The domestic server has low latency, fast response, and fast download speed. If you use the default ubuntu source update, it will cause you to vomit blood slowly. We recommend that you add the source after installing the first thing in Ubuntu, we recommend that you add a 163 source. There are many sources on Ubuntu wiki.

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.