Ubuntu Apt-mirror Server

Source: Internet
Author: User

To facilitate the installation of Ubuntu software Intranet, decided to set up a apt-mirror server, record:


Apt-mirror Download the Deb file to the local server from the source specified in the sources.list, first install the Apt-mirror

Apt-get Install Apt-mirror


After the installation is complete, compile the configuration file/etc/apt/mirror.list

############# config ################## #set base_path/var/spool/apt-mirror#set mirror_path $base _path/mirrorset Skel _path $base _path/skelset var_path $base _path/varset cleanscript $var _path/clean.sh#set defaultarch <running hos T architecture> #set postmirror_script $var _path/postmirror.sh#set run_postmirror 0set nthreads 20set _tilde 0###### ######## End config ############# #deb http://archive.ubuntu.com/ubuntu lucid Mainclean Http://archive.ubuntu.com/ubuntu


Since the download process may be long, start screen

Screen

Apt-mirror

Ctrl + A D




This article is from the "Moagan" blog, make sure to keep this source http://brucemj.blog.51cto.com/3319384/1599374

Ubuntu Apt-mirror Server

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.