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