How To Create A Local Debian/Ubuntu Mirror With apt-mirror - Page 3

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Submitted by falko (Contact Author) (Forums) on Tue, 2007-01-02 17:48. ::

9 Configure Your Client Computers To Use The Local Mirror

Now that our local mirror is ready to be used, all we have to do is tell our Debian Sarge and Ubuntu Edgy Eft systems in our local network to use it.

 

9.1 Debian Sarge

On Debian Sarge systems, you can replace the main contrib non-free repository in /etc/apt/sources.list like this:

vi /etc/apt/sources.list

[...]
deb http://192.168.0.100/debian sarge main contrib non-free
[...]

Instead of sarge you could also use stable:

[...]
deb http://192.168.0.100/debian stable main contrib non-free
[...]

Afterwards, run

apt-get update

 

9.2 Ubuntu Edgy Eft

On Ubuntu Edgy Eft systems, you can replace the main restricted universe repository in /etc/apt/sources.list like this:

vi /etc/apt/sources.list

[...]
deb http://192.168.0.100/ubuntu/ edgy main restricted universe
[...]

Afterwards, run

apt-get update

 

9.3 Fresh Installation

If you install a fresh Debian Sarge or Ubuntu Edgy Eft system, specify your local mirror like this when the installer asks you which repository you'd like to use:

Afterwards the installer will use your local mirror to install the system:

 

10 Links


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by BobSongs (registered user) on Sat, 2008-03-08 23:20.

Wow. This is extensive. I've only got one question (not asking for help, just clarification).

When downloading, say, for Ubuntu's Gutsy repositories (this one was designed for Edgy, but it's all the same) does apt-sources download all the architectures (i386, amd64, powerpc and sparc) as well?

I don't see any text that just calls for a single one such as just i386.

Submitted by Anonymous (not registered) on Fri, 2008-10-17 17:31.

add this to you /etc/apt/mirrors.list

set defaultarch  i386

Submitted by CyberCowboy (not registered) on Tue, 2009-10-20 22:08.
How would you do multiple architectures, for me specifically I need x64 and i386
Submitted by AtesComp (not registered) on Mon, 2009-12-14 18:12.

You use "deb-i386" and "deb-amd64" instead of just "deb" at the beginning of each mirror line.  Examples:

deb-i386 http://us.archive.ubuntu.com/ubuntu karmic main restricted universe multiverse
deb-amd64 http://us.archive.ubuntu.com/ubuntu karmic main restricted universe multiverse
Submitted by Dan (not registered) on Wed, 2010-05-12 02:55.

I had a question.  My apt repository is located at

/var/spool/apt-mirror/mirror/ftp.us.debian.org/debian/pool

and it contains contrib main and non-free packages

 The thing I cannot figure out is I am working with a pool and not a specific dist.

How would I setup my Debian lenny clients to pull in my needed packages since the examples above seem to be for a specific distro if you understand what I mean?

The pool is confusing me.

Thanks,

Dan

Submitted by Anonymous (not registered) on Sat, 2010-07-31 09:45.

When you specify a dist, that tells is what packages list to read (arranged by dist and architecture).

 These package list tell it what packages to read from the pool.  Apt-mirror will only download the specified packages, but have a browse around one of the primary mirrors.  It is logically laid out, and explains a lot about the working of apt.

 So, pool/ contains all the packages, and dists/ contains lists of packages.

Sponsored Links: Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com

One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com

One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com

One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com

One number. one voicemail. Seize the lead with Sprint. Learn more

AT&T Synaptic Compute as a Service. Boost your power on demand.

Trial: IBM Cognos Express Reporting, Analysis & Planning

Learn benefits of Simpana software.
View the Gartner Video

Sprint 4G - The Ultimate Mobile Broadband
Click here

SAP-Business Objects Crystal Reports Server
Complete reporting without hidden costs. Free Trial