Ubuntu12.04 (precise) image source/Local Source Creation

Source: Internet
Author: User

Why do I need to create a local installation source for ubuntu12.04?

Sometimes the server system cannot be connected to the Internet.

Some people will say why not download all the software packages that they will install?

This is the case with the postmaster. In fact, this is also the case, but only when this is done will you find that there are many problems-install dependencies!

Lack of installation dependencies is a headache!

Just like a new house that can accommodate people, but what should I do if I eat, drink, and sleep?

The same is true for the newly installed ubuntu12.04, but it is not enough for some people!

So I came up with a solution. It may be silly to download all the ubuntu12.04 software installation packages!

In this way, the installation software package can be downloaded anytime and anywhere even if there is no network. Haha.


The procedure is as follows:

1. Install apt-mirror in ubuntu12.04 when connected

Apt-Get install apt-mirror

Apt-Get install apache2 # do not install

2. Modify the mirror. list file

Run sudo gedit/etc/APT/mirror. List

############# Config ################### set base_path/var/www/ apt-mirror # Set the download address # Set base_path/var/spool/apt-mirror # Set base_path $ base_path/mirror # Set skel_path $ base_path/skel # Set var_path $ base_path/ var # Set cleanscript $ var_path/clean. shset defaultarch amd64 # download only the amd64 package # Set defaultarch <running Host Architecture> # Set post1__script $ var_path/postmirror. sh # Set run_postmirror 0 set nthreads 5 # enable 5 threads to download SET _ Tilde 0 ############## end config ###### ######## download only the amd64 package deb-amd64 http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse extends universe # Deb http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe # Deb http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse extends universe # Deb http://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe # Deb http://mirror.bjtu.edu.cn/ubuntu/ precise-Updates main multiverse restricted universeclean http://mirror.bjtu.edu.cn/ubuntu


Previously, only precise is downloaded, which requires about 43 GB of storage space.

If you want to download precise-backports precise-Proposed precise-security precise-updates, it is estimated that 75 GB space is required.

If the download is incomplete, you can run sudo apt-mirror on the next boot and then download it.

After the paste master is downloaded



3. reference the local installation Source

Run sudo gedit/etc/APT/source. List and add

Deb http: // localhost/apt-mirror/mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universe

Run sudo apt-Get update to update the installation source.

If other computers in the LAN want to access your software source, modify the source. list file of their computer and

Replace it with the address of your computer in the LAN. The premise is that apache2 is installed, and computers in the LAN can access your webpage.







Ubuntu12.04 (precise) image source/Local Source Creation

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.