LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-29-2003, 05:35 PM   #1
dbkluck
Member
 
Registered: Jun 2003
Location: Washington DC
Distribution: debian sid
Posts: 78

Rep: Reputation: 15
apt mirror preference


good evening all. i have my apt set up with both ftp.us.debian.org and a local (faster) mirror. problem is, apt nearly always ignores the faster mirror and just downloads from debian.org. i can get it to work by commenting those out of my sources.list, but i'd still like to keep them there as a backup in case something isn't synched yet at the time i happen to update. is there any (simple, he added hopefully) way to tell apt to try the local mirror first, and only go to debian.org if it fails?
 
Old 10-29-2003, 06:44 PM   #2
Strike
Member
 
Registered: Jun 2001
Location: Houston, TX, USA
Distribution: Debian
Posts: 569

Rep: Reputation: 31
if it actually fails, it should try the next mirror ... if it's just slow, it won't
 
Old 10-30-2003, 02:24 PM   #3
dbkluck
Member
 
Registered: Jun 2003
Location: Washington DC
Distribution: debian sid
Posts: 78

Original Poster
Rep: Reputation: 15
right, i know, that's why i want to make the first one it tries the local mirror instead of the national. any ideas how to do that? is it just matter of switching the order of the lines in sources.list? or is there a fancier way to do it?
 
Old 10-30-2003, 02:45 PM   #4
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
The ordering of sources.list is meaningfull.
 
Old 10-31-2003, 09:15 AM   #5
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Yeah I think it searches the mirrors in order of appearance in sources.list.
 
Old 10-31-2003, 12:01 PM   #6
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Re: apt mirror preference

Quote:
Originally posted by dbkluck
good evening all. i have my apt set up with both ftp.us.debian.org and a local (faster) mirror. problem is, apt nearly always ignores the faster mirror and just downloads from debian.org. i can get it to work by commenting those out of my sources.list, but i'd still like to keep them there as a backup in case something isn't synched yet at the time i happen to update. is there any (simple, he added hopefully) way to tell apt to try the local mirror first, and only go to debian.org if it fails?
http://apt-proxy.sourceforge.net/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What's a good apt-get mirror for PPC ?! TheHushedCaskeT Linux - Software 1 04-11-2005 09:36 AM
Setting up apt-get mirror for classroom training dearroz Fedora 1 10-28-2004 02:34 PM
add apt-get mirror johntramp Debian 3 04-22-2004 09:05 AM
How to choose a good mirror for apt-get/Synaptic Eugene Linux - General 6 12-08-2003 11:17 AM
APT questions -- file on the mirror, not in the cache... MatthewSabin Linux - Software 6 06-14-2003 11:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration