LinuxQuestions.org
Help answer threads with 0 replies.
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 04-12-2007, 08:02 AM   #1
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
Multiple Repositories


My ISP runs a Debian Mirror, however it is sometimes not completly up to date for all updates on amd64. However, it is much faster to use my ISP's mirror (mirror.eftel.com) rather than the local official debian mirror (ftp.wa.au.debian.org), and traffic from my ISP's mirror is free.

Is it possible to set up apt so that it will first check my ISP's mirror, and if the package is there then download it from there, otherwise go to the official mirror? This way, if the package is on the ISP mirror then I can get it fast, but if not I can at least get it.

My sources.list file is:
Code:
# Debian Unstable - EFTel mirror
deb http://mirror.eftel.com/debian sid main contrib non-free
deb-src http://mirror.eftel.com/debian sid main contrib non-free

# Debian Unstable - Official Mirror
deb http://ftp.wa.au.debian.org/debian sid main contrib non-free
deb-src http://ftp.wa.au.debian.org/debian sid main contrib non-free
As you can see, I use Debian SID.

At the moment, all package downloads come from the official mirror even though there is a copy on the ISP mirror.

Does anyone have any ideas?
Thanks in advance
--Ian
 
Old 04-12-2007, 03:33 PM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
that may be due to package versions, as you said your local mirror isn't always up to date. You can check that theory by using apt-cache policy.

apt-cache policy <packagename>

That should return what version of the package is installed and what versions are available on the different mirrors.


You can use apt pinning to set priorities on the repositories..

A partial fix for this is to pin each source at a different priority. Eg,
Quote:
/etc/apt/preferences


Package: *
Pin: origin mirror.eftel.com
Pin-Priority: 620

Package: *
Pin: origin ftp.wa.au.debian.org
Pin-Priority: 610
reference: http://www.argon.org/~roderick/apt-pinning.html
 
Old 04-13-2007, 02:43 PM   #3
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Original Poster
Rep: Reputation: 62
Thanks. I will give this a go later today after work.

I will also be slapping the sys admin at EFTel around the ears to get his mirror up to date

--Ian
 
  


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
AWK/SED Multiple pattern matching over multiple lines issue GigerMalmensteen Programming 15 12-03-2006 05:08 PM
setting up grub in a multiple hard drive multiple OS environment svenwinkle Linux - Desktop 2 10-07-2006 07:50 PM
Multiple apt repositories ? frochet Debian 3 12-23-2004 03:29 AM
Need an advice for: Multiple Disks&Multiple Penguins and a XP :) thesappho Linux - Newbie 1 12-15-2003 03:13 PM

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

All times are GMT -5. The time now is 09:51 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